Inventory context
This commit is contained in:
parent
d413c211b5
commit
fed57e38df
17 changed files with 128 additions and 108 deletions
|
@ -1,9 +1,13 @@
|
|||
extends Button
|
||||
|
||||
@export var constructible : Prototype
|
||||
class_name ConstructionButton
|
||||
|
||||
func _ready() -> void:
|
||||
icon = constructible.preview
|
||||
var prototype : Prototype:
|
||||
set(value):
|
||||
prototype = value
|
||||
icon = prototype.preview
|
||||
get:
|
||||
return prototype
|
||||
|
||||
func _pressed() -> void:
|
||||
GuiEventBus.construction_selected.emit(constructible)
|
||||
GuiEventBus.construction_selected.emit(prototype)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue