summaryrefslogtreecommitdiff
path: root/ui/character_selection_item.gd
diff options
context:
space:
mode:
Diffstat (limited to 'ui/character_selection_item.gd')
-rw-r--r--ui/character_selection_item.gd33
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()