La-Torreta-del-Drac/scenes/dragon_list/dragon_list_entry.gd
2025-04-09 13:59:41 +02:00

17 lines
530 B
GDScript

extends Control
class_name DragonListEntry
@export var texture_rect: TextureRect
@export var name_label: Label
@export var code_label: Label
var code_generator: CodeGenerator
@export var hat_outfits: DragonOutfit
@export var shirt_outfits: DragonOutfit
@export var shoes_outfits: DragonOutfit
func set_properties(name: String, hat: Texture2D, shirt: Texture2D, shoes: Texture2D) -> void:
name_label.text = name
code_label.text = CodeGenerator.new(hat_outfits, shirt_outfits, shoes_outfits).encrypt(hat, shirt, shoes, name)