|
@ -12,6 +12,8 @@ func _ready() -> void: |
|
|
SaveGameManager.load_complete.connect(_on_load_complete) |
|
|
SaveGameManager.load_complete.connect(_on_load_complete) |
|
|
SignalManager.pause_game.connect(_on_pause_game) |
|
|
SignalManager.pause_game.connect(_on_pause_game) |
|
|
SignalManager.resume_game.connect(_on_resume_game) |
|
|
SignalManager.resume_game.connect(_on_resume_game) |
|
|
|
|
|
SignalManager.hide_ui.connect(_on_hide_ui) |
|
|
|
|
|
SignalManager.show_ui.connect(_on_show_ui) |
|
|
|
|
|
|
|
|
resume_game() |
|
|
resume_game() |
|
|
|
|
|
|
|
@ -31,7 +33,7 @@ func hide_ui_elements() -> void: |
|
|
func show_ui_elements() -> void: |
|
|
func show_ui_elements() -> void: |
|
|
crosshair.visible = true |
|
|
crosshair.visible = true |
|
|
quick_slots.visible = true and GameSettingsManager.settings.game_options.enable_quickslots_ui |
|
|
quick_slots.visible = true and GameSettingsManager.settings.game_options.enable_quickslots_ui |
|
|
waila.visible = true |
|
|
|
|
|
|
|
|
waila.visible = true and GameSettingsManager.settings.game_options.enable_waila |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func pause_game() -> void: |
|
|
func pause_game() -> void: |
|
@ -54,3 +56,11 @@ func _on_pause_game() -> void: |
|
|
|
|
|
|
|
|
func _on_resume_game() -> void: |
|
|
func _on_resume_game() -> void: |
|
|
resume_game() |
|
|
resume_game() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _on_hide_ui() -> void: |
|
|
|
|
|
hide_menus() |
|
|
|
|
|
hide_ui_elements() |
|
|
|
|
|
|
|
|
|
|
|
func _on_show_ui() -> void: |
|
|
|
|
|
show_ui_elements() |