recipie book autoloading working

This commit is contained in:
Tabby 2026-01-12 19:55:40 +11:00
parent e8c1f85a5b
commit 4f899c13f9
8 changed files with 134 additions and 10 deletions

View file

@ -4,6 +4,7 @@ class_name RecipeCard
@export var grid_container : GridContainer
var ingredient_slots : Array[ItemSlot]
@export var output_slot : ItemSlot
@export var output_label : Label
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
@ -26,3 +27,4 @@ func show_recipe(recipe : CraftRecipe):
output_slot.item = recipe.output
output_slot.update_ui()
output_slot.block_taking = true
output_label.text = recipe.output.item_name