13 lines
236 B
GDScript
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)
|