diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-18 12:06:59 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-09-18 12:06:59 -0300 |
| commit | 5146895cf537dd69867da612abed5b4abaf805cd (patch) | |
| tree | 70212352a07922b58db99ba2564f76ca072af200 /scripts/GUI/InventoryMenu.cs | |
| parent | eacdd15612c70ff86f3446982c46a09272249936 (diff) | |
ME ELIMINE AAAAAAAAAAAAAAAAAAAAAAAAAAAA
Diffstat (limited to 'scripts/GUI/InventoryMenu.cs')
| -rw-r--r-- | scripts/GUI/InventoryMenu.cs | 8 |
1 files changed, 4 insertions, 4 deletions
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<PackedScene>("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<VBoxContainer>("CenterContainer/PanelContainer/VBoxContainer/Items"); + itemsNode = GetNode<VBoxContainer>("CenterContainer/PanelContainer/VBoxContainer/Items"); Hide(); } @@ -55,7 +55,7 @@ public partial class InventoryMenu : CanvasLayer ItemMenuEntry itemEntry = itemMenuEntryScene.Instantiate<ItemMenuEntry>(); - ItemsNode.AddChild(itemEntry); + itemsNode.AddChild(itemEntry); itemEntry.Initialize(item, shortcut); itemEntry.Activate += OnActivate; itemEntry.Drop += OnDrop; |
