1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-06-25 08:04:43 -04:00

TextureButton is now the root scene

- Due to resize issues with the grid container, TextureButton is now the root for all wardrobe items
- Brought back underwear, with the exception of the owo censor (for now)
- Remove clothing buttons are tied to wardrobe
- Game scene now properly references the wardrobe again
This commit is contained in:
Anthony Foxclaw 2020-06-27 12:06:53 -04:00
parent c7cf3c7986
commit d3b5f1fc1c
14 changed files with 74 additions and 34 deletions

View file

@ -4,7 +4,11 @@ extends Node2D
onready var character = preload("res://resources/character.tres")
onready var accessory = $Accessory
onready var underwear = $Undies
func _process(delta):
if character.accessory != null:
accessory.texture = character.accessory
if character.underwear != null:
underwear.texture = character.underwear

View file

@ -1,7 +1,6 @@
extends "res://scripts/clothing/baseClothing.gd"
onready var character = preload("res://resources/character.tres")
onready var clothing = $clothing
func _on_accessory_pressed():
character.accessory = clothing.texture_normal
character.accessory = texture_normal

View file

@ -1,2 +1,2 @@
extends Control
extends TextureButton

View file

@ -1,7 +1,6 @@
extends "res://scripts/clothing/baseClothing.gd"
onready var character = preload("res://resources/character.tres")
onready var clothing = $clothing
func _on_undies_pressed():
character.underwear = clothing.texture_normal
character.underwear = texture_normal

7
scripts/wardrobe.gd Normal file
View file

@ -0,0 +1,7 @@
extends TabContainer
onready var character = preload("res://resources/character.tres")
onready var blank_top = preload("res://sprites/clothes/tops_placeholder.png")
func _on_removeAccessory_pressed():
character.accessory = blank_top