feat: pulling dragons from server working
This commit is contained in:
parent
50bc814367
commit
b080ab7bf4
11 changed files with 46 additions and 193 deletions
|
@ -3,15 +3,13 @@ class_name DragonListEntry
|
|||
|
||||
@export var texture_rect: TextureRect
|
||||
@export var name_label: Label
|
||||
@export var code_label: Label
|
||||
|
||||
var code_generator: CodeGenerator
|
||||
@export var origin_label: Label
|
||||
|
||||
@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)
|
||||
func set_properties(properties: DragonProperties) -> void:
|
||||
name_label.text = properties.name
|
||||
origin_label.text = properties.origin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue