breadwinner/scenes/ui/ui_manager.gd
Hellie-xd 0a764354ba did a shitton of refactoring.
still has bugs, but almost works like the original, but has much better
structure. still might have to change around a bit, but closing in to
the final form.
2026-08-09 03:24:28 +02:00

17 lines
459 B
GDScript

extends Control
@onready var in_game_menu: Control = %InGameMenu
@onready var debug_menu: Control = %DebugMenu
func toggle_debug_menu():
debug_menu.visible = !debug_menu.visible
func toggle_in_game_menu():
in_game_menu.visible = !in_game_menu.visible
if in_game_menu.visible:
GameState.player.ui.visible = false
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
else:
GameState.player.ui.visible = true
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED