delurbelako/scripts/gui/construction_button.gd
2025-10-16 22:05:24 +05:00

13 lines
236 B
GDScript

extends Button
class_name ConstructionButton
var prototype : Prototype:
set(value):
prototype = value
icon = prototype.preview
get:
return prototype
func _pressed() -> void:
GuiEventBus.construction_selected.emit(prototype)