breadwinner/scenes/ui/ui_manager.gd
Hellie-xd c5a907cec2 basic inventory system added
yeah i vibecoded it for now, it will be custom written later.
sooorrryyyy :(
2026-08-13 13:28:13 +02:00

21 lines
610 B
GDScript

extends Control
@onready var in_game_menu: Control = %InGameMenu
@onready var debug_menu: Control = %DebugMenu
@onready var inventory_menu: Control = %InventoryMenu
func toggle_debug_menu():
debug_menu.visible = !debug_menu.visible
func toggle_inventory_menu(on:bool):
inventory_menu.visible = on
func toggle_in_game_menu():
if not Console.toggled:
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