diff options
Diffstat (limited to 'ui/character_selection_item.gd')
-rw-r--r-- | ui/character_selection_item.gd | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/ui/character_selection_item.gd b/ui/character_selection_item.gd index 67ebea7..59dbdf8 100644 --- a/ui/character_selection_item.gd +++ b/ui/character_selection_item.gd @@ -1,20 +1,22 @@ +class_name CharacterSelectionItem extends Control -signal pressed +signal activated +signal selected func initialize_with_info(info: CharacterInformation): %Head.texture = load( "%s/%s/000.png" % [ - "res://data/extracted/data/sprite", + "res://client_data/data/sprite", Constants.FilePaths.get_player_head(info.gender, info.head), ] ) %Body.texture = load( "%s/%s/000.png" % [ - "res://data/extracted/data/sprite", + "res://client_data/data/sprite", Constants.FilePaths.get_player_body(info.gender, info.job), ] ) @@ -24,4 +26,8 @@ func initialize_with_info(info: CharacterInformation): func _on_gui_input(event: InputEvent) -> void: if event.is_pressed(): - pressed.emit() + activated.emit() + + +func _on_login_button_pressed() -> void: + selected.emit() |