This commit is contained in:
dingo
2025-12-26 17:16:27 -05:00
parent 12955606f3
commit 04e3b88df9
10 changed files with 553 additions and 91 deletions
+9 -1
View File
@@ -18,8 +18,10 @@ extends CanvasLayer
@onready var inventory_btn = $Control/HBoxContainer/LeftPanel/MenuButtons/InventoryBtn
@onready var crafting_btn = $Control/HBoxContainer/LeftPanel/MenuButtons/CraftingBtn
@onready var stash_btn = $Control/HBoxContainer/LeftPanel/MenuButtons/StashBtn
@onready var inventory_ui = $InventoryUI
@onready var crafting_ui = $CraftingUI
@onready var stash_ui = $StashUI
var selected_tier: int = 1
@@ -30,11 +32,13 @@ func _ready():
if browse_btn:
browse_btn.pressed.connect(_on_browse_dungeons)
# Setup inventory and crafting buttons
# Setup inventory, crafting, and stash buttons
if inventory_btn:
inventory_btn.pressed.connect(_on_inventory_pressed)
if crafting_btn:
crafting_btn.pressed.connect(_on_crafting_pressed)
if stash_btn:
stash_btn.pressed.connect(_on_stash_pressed)
# Setup tier buttons
for i in range(1, 6):
@@ -119,3 +123,7 @@ func _on_inventory_pressed():
func _on_crafting_pressed():
if crafting_ui:
crafting_ui.show_crafting()
func _on_stash_pressed():
if stash_ui:
stash_ui.show_stash()