Files
net-gunner/scripts/cs_trap_display.gd

8 lines
171 B
GDScript

extends TextureRect
@onready var qty_label : Label = $Label
func setup(type : Trap.Type, qty : int) -> void:
texture = Trap.trap_icons[type]
qty_label.text = str(qty)