TinyAdventure/ui/item_slot.gd

8 lines
157 B
GDScript
Raw Normal View History

2024-07-09 22:33:38 +02:00
class_name ItemSlot
extends PanelContainer
@onready var texture_rect:TextureRect = %TextureRect
func display(item:Item):
texture_rect.texture = item.icon