mirror of
https://github.com/tonytins/dressupzack
synced 2025-06-26 08:34:43 -04:00
WIP: change outfits on click, no drag and drop
This commit is contained in:
parent
8a501d50b3
commit
002a35bd1b
42 changed files with 552 additions and 63 deletions
39
project/src/Clothes.gd
Normal file
39
project/src/Clothes.gd
Normal file
|
@ -0,0 +1,39 @@
|
|||
extends Node
|
||||
|
||||
onready var bottoms = load("res://assets/bottoms_placeholder.png")
|
||||
onready var tops = load("res://assets/tops_placeholder.png")
|
||||
|
||||
func change_bottoms(new_bottom):
|
||||
bottoms = new_bottom
|
||||
$Body/Bottom.texture = bottoms
|
||||
|
||||
func change_tops(new_top):
|
||||
tops = new_top
|
||||
$Body/Top.texture = tops
|
||||
|
||||
func _on_DJ_Shorts_pressed():
|
||||
change_bottoms(load("res://assets/dj_shorts.png"))
|
||||
|
||||
func _on_ZBriefs_pressed():
|
||||
change_bottoms(load("res://assets/zbriefs.png"))
|
||||
|
||||
func _on_Briefs_pressed():
|
||||
change_bottoms(load("res://assets/briefs.png"))
|
||||
|
||||
func _on_Jeans_pressed():
|
||||
change_bottoms(load("res://assets/jeans.png"))
|
||||
|
||||
func _on_Sweats_pressed():
|
||||
change_bottoms(load("res://assets/sweat_pants.png"))
|
||||
|
||||
func _on_Sweatshirt_pressed():
|
||||
change_tops(load("res://assets/old_sweatshirt.png"))
|
||||
|
||||
func _on_DJ_Shirt_pressed():
|
||||
change_tops(load("res://asssets/dj_shirt.png"))
|
||||
|
||||
func _on_Raw_pressed():
|
||||
change_tops(load("res://assets/raw_shirt.png"))
|
||||
|
||||
func _on_Atomic_pressed():
|
||||
change_tops(load("res://assets/atomic_shirt.png"))
|
Loading…
Add table
Add a link
Reference in a new issue