added first theme progress and switched all files to use static typing
This commit is contained in:
parent
c9458f3627
commit
b5ace17da9
2665 changed files with 50249 additions and 476 deletions
20
ui/ui.gd
20
ui/ui.gd
|
|
@ -15,22 +15,22 @@ signal on_game_continued
|
|||
func _ready() -> void:
|
||||
main_menu.connect("on_game_continued", _on_main_menu_on_game_continued)
|
||||
main_menu.connect("on_new_game_started", _on_main_menu_on_new_game_started)
|
||||
|
||||
|
||||
ingame_controls.connect("menu_button_clicked", _on_ingame_controls_menu_button_clicked)
|
||||
ingame_controls.connect("save_button_clicked", _on_ingame_controls_save_button_clicked)
|
||||
ingame_controls.connect("save_button_released", _on_ingame_controls_save_button_released)
|
||||
ingame_controls.connect("save_timer_incremented", _on_ingame_controls_save_timer_incremented)
|
||||
ingame_controls.connect("save_timer_reached", _on_ingame_controls_save_timer_reached)
|
||||
|
||||
|
||||
pass
|
||||
|
||||
func show_main_menu(p_visible = true) -> void:
|
||||
func show_main_menu(p_visible: bool = true) -> void:
|
||||
main_menu.visible = p_visible
|
||||
|
||||
func show_ingame_controls(p_visible = true) -> void:
|
||||
|
||||
func show_ingame_controls(p_visible: bool = true) -> void:
|
||||
ingame_controls.visible = p_visible
|
||||
|
||||
func show_battle_ui(p_visible = true) -> void:
|
||||
func show_battle_ui(p_visible: bool = true) -> void:
|
||||
battle_ui.visible = p_visible
|
||||
battle_ui.update()
|
||||
|
||||
|
|
@ -41,10 +41,10 @@ func _on_ingame_controls_menu_button_clicked() -> void:
|
|||
func update() -> void:
|
||||
# Updating the player info
|
||||
ingame_menu._update_player_info()
|
||||
|
||||
|
||||
# Updating the monster list
|
||||
ingame_menu._update_monster_list()
|
||||
|
||||
ingame_menu.update()
|
||||
|
||||
|
||||
func _on_ingame_controls_save_button_clicked() -> void:
|
||||
save_ui.visible = true
|
||||
|
|
@ -52,7 +52,7 @@ func _on_ingame_controls_save_button_clicked() -> void:
|
|||
func _on_ingame_controls_save_button_released() -> void:
|
||||
save_ui.visible = false
|
||||
|
||||
func _on_ingame_controls_save_timer_incremented(value) -> void:
|
||||
func _on_ingame_controls_save_timer_incremented(value: int) -> void:
|
||||
save_ui.get_node("SavePercentage").text = str(value)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue