From 6e2deea3d1b2fb4d79dac02a0d4310936c7f317c Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 24 Dec 2024 00:36:06 +0100 Subject: next commit --- ui/character_selection_item.gd | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 ui/character_selection_item.gd (limited to 'ui/character_selection_item.gd') 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() -- cgit v1.2.3