From f4e07d090cded56ebab54363f1b47f1ea45c8682 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 20 Dec 2024 11:42:22 +0100 Subject: next commit --- ui/character_selection_item.gd | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'ui/character_selection_item.gd') 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() -- cgit v1.2.3