From 5146895cf537dd69867da612abed5b4abaf805cd Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 18 Sep 2025 12:06:59 -0300 Subject: ME ELIMINE AAAAAAAAAAAAAAAAAAAAAAAAAAAA --- scripts/GUI/InventoryMenu.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/GUI/InventoryMenu.cs') diff --git a/scripts/GUI/InventoryMenu.cs b/scripts/GUI/InventoryMenu.cs index 5bac62b..dd8e133 100644 --- a/scripts/GUI/InventoryMenu.cs +++ b/scripts/GUI/InventoryMenu.cs @@ -8,18 +8,18 @@ public partial class InventoryMenu : CanvasLayer { private static readonly PackedScene itemMenuEntryScene = GD.Load("res://scenes/GUI/item_menu_entry.tscn"); + private VBoxContainer itemsNode; + [Signal] public delegate void ItemSelectedEventHandler(ConsumableItem item); [Signal] public delegate void ItemDropEventHandler(ConsumableItem item); - private VBoxContainer ItemsNode { get; set; } - public override void _Ready() { base._Ready(); - ItemsNode = GetNode("CenterContainer/PanelContainer/VBoxContainer/Items"); + itemsNode = GetNode("CenterContainer/PanelContainer/VBoxContainer/Items"); Hide(); } @@ -55,7 +55,7 @@ public partial class InventoryMenu : CanvasLayer ItemMenuEntry itemEntry = itemMenuEntryScene.Instantiate(); - ItemsNode.AddChild(itemEntry); + itemsNode.AddChild(itemEntry); itemEntry.Initialize(item, shortcut); itemEntry.Activate += OnActivate; itemEntry.Drop += OnDrop; -- cgit v1.2.3