plant pick menu

This commit is contained in:
Rendo 2025-08-03 02:09:11 +05:00
commit 32453f2e9d
18 changed files with 121 additions and 39 deletions

View file

@ -0,0 +1,15 @@
extends Node
const SEEDPACKET_SCENE := preload("res://scenes/gui/seedpacket.tscn")
func _ready() -> void:
var plants = GameRegistry.load_resources("res://resources/")
for plant in plants:
var seedpacket = SEEDPACKET_SCENE.instantiate()
seedpacket.held_resource = plant
add_child(seedpacket)
var handler = PickableHandler.new(seedpacket)
seedpacket.set_handler(handler)

View file

@ -0,0 +1 @@
uid://crlumefuo1biu