First commit 🎉
This commit is contained in:
commit
43ea213f9b
728 changed files with 37080 additions and 0 deletions
20
game/gui/components/sierra_menu/sierra_commands_container.gd
Normal file
20
game/gui/components/sierra_menu/sierra_commands_container.gd
Normal file
|
@ -0,0 +1,20 @@
|
|||
extends HBoxContainer
|
||||
|
||||
|
||||
#region Godot ######################################################################################
|
||||
func _ready() -> void:
|
||||
PopochiuUtils.e.command_selected.connect(_on_command_selected)
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Public #####################################################################################
|
||||
func _on_command_selected() -> void:
|
||||
for b in get_children():
|
||||
(b as TextureButton).set_pressed_no_signal(false)
|
||||
|
||||
(get_child(PopochiuUtils.e.current_command) as TextureButton).set_pressed_no_signal(true)
|
||||
PopochiuUtils.cursor.show_cursor(PopochiuUtils.e.get_current_command_name().to_snake_case())
|
||||
|
||||
|
||||
#endregion
|
Loading…
Add table
Add a link
Reference in a new issue