mirror of
https://github.com/tonytins/dressupzack
synced 2025-05-06 05:44:48 -04:00
- 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
22 lines
636 B
GDScript
22 lines
636 B
GDScript
# Anthony Wilcox licenses this file to you under the MPL license.
|
|
# See the LICENSE file in the project root for more information.
|
|
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:
|
|
accessory.texture = character.accessory
|
|
|
|
if character.underwear != null:
|
|
underwear.texture = character.underwear
|
|
|
|
if character.bottom != null:
|
|
bottom.texture = character.bottom
|
|
|
|
if character.top != null:
|
|
top.texture = character.top
|