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:
parent
c7cf3c7986
commit
d3b5f1fc1c
14 changed files with 74 additions and 34 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
extends Control
|
||||
extends TextureButton
|
||||
|
||||
|
|
|
@ -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
7
scripts/wardrobe.gd
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue