Inventory context

This commit is contained in:
Rendo 2025-10-16 22:05:24 +05:00
commit fed57e38df
17 changed files with 128 additions and 108 deletions

View file

@ -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)