Files
net-gunner/scripts/cs_hack_display.gd

8 lines
171 B
GDScript

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