summaryrefslogtreecommitdiff
path: root/ui/character_selection_item.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-12-20 11:42:22 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-12-20 11:42:22 +0100
commitf4e07d090cded56ebab54363f1b47f1ea45c8682 (patch)
tree616698bb4306184469b92d68d3f74dfb61d02c72 /ui/character_selection_item.gd
parent75793bd23d275d10d6a0bd8024a7e412b64557ce (diff)
next commitHEADmain
Diffstat (limited to 'ui/character_selection_item.gd')
-rw-r--r--ui/character_selection_item.gd14
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()