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

Renamed placeholders

- Renamed "[name]_placeholder" sprites to "bank_[name]"
- Remove pants and shirt functions
- Created bases for bottoms and tops
- Brought back most, if not all, pants and skirts
This commit is contained in:
Anthony Foxclaw 2020-06-27 13:41:21 -04:00
parent d3b5f1fc1c
commit c761b47f11
24 changed files with 164 additions and 128 deletions

View file

@ -5,6 +5,8 @@ extends Node2D
onready var character = preload("res://resources/character.tres")
onready var accessory = $Accessory
onready var underwear = $Undies
onready var bottom = $Bottom
onready var top = $Top
func _process(delta):
if character.accessory != null:
@ -12,3 +14,9 @@ func _process(delta):
if character.underwear != null:
underwear.texture = character.underwear
if character.bottom != null:
bottom.texture = character.bottom
if character.top != null:
top.texture = character.top

View file

@ -0,0 +1,6 @@
extends "res://scripts/clothing/baseClothing.gd"
onready var character = preload("res://resources/character.tres")
func _on_bottoms_pressed():
character.bottom = texture_normal

View file

@ -0,0 +1,6 @@
extends "res://scripts/clothing/baseClothing.gd"
onready var character = preload("res://resources/character.tres")
func _on_tops_pressed():
character.top = texture_normal

View file

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