diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-12-24 00:36:06 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-12-24 00:36:06 +0100 |
commit | 6e2deea3d1b2fb4d79dac02a0d4310936c7f317c (patch) | |
tree | 05590a7d9f7cecde037aad7a5487ff2c62176932 /ui/character_selection_item.gd | |
parent | 7b3f386449aeab124d84d2aff4c273e646e68763 (diff) |
next commit
Diffstat (limited to 'ui/character_selection_item.gd')
-rw-r--r-- | ui/character_selection_item.gd | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/ui/character_selection_item.gd b/ui/character_selection_item.gd deleted file mode 100644 index 59dbdf8..0000000 --- a/ui/character_selection_item.gd +++ /dev/null @@ -1,33 +0,0 @@ -class_name CharacterSelectionItem -extends Control - - -signal activated -signal selected - - -func initialize_with_info(info: CharacterInformation): - %Head.texture = load( - "%s/%s/000.png" % [ - "res://client_data/data/sprite", - Constants.FilePaths.get_player_head(info.gender, info.head), - ] - ) - - %Body.texture = load( - "%s/%s/000.png" % [ - "res://client_data/data/sprite", - Constants.FilePaths.get_player_body(info.gender, info.job), - ] - ) - - %Name.text = info.name - - -func _on_gui_input(event: InputEvent) -> void: - if event.is_pressed(): - activated.emit() - - -func _on_login_button_pressed() -> void: - selected.emit() |