Added icon to slot
This commit is contained in:
@@ -8,6 +8,7 @@ public partial class SlotUi : Control
|
||||
public Label nameLabel;
|
||||
public int index;
|
||||
public Label amountLabel;
|
||||
public TextureRect icon;
|
||||
|
||||
[Signal] public delegate void ClickedEventHandler(int index);
|
||||
|
||||
@@ -15,6 +16,7 @@ public partial class SlotUi : Control
|
||||
{
|
||||
nameLabel = GetNode<Label>("NameLabel");
|
||||
amountLabel = GetNode<Label>("AmountLabel");
|
||||
icon = GetNode<TextureRect>("Icon");
|
||||
}
|
||||
|
||||
public void _on_gui_input(InputEvent ev)
|
||||
|
||||
Reference in New Issue
Block a user