This commit is contained in:
Rendo 2026-02-12 23:50:53 +05:00
commit e1e7c70147
39 changed files with 279 additions and 60 deletions

12
scenes/tool_generator.gd Normal file
View file

@ -0,0 +1,12 @@
extends Node
const dnd_button = preload("res://scenes/drag_and_drop.tscn")
func _ready() -> void:
for tool in ReactionRegistry.current_lab.tools:
var button = dnd_button.instantiate()
button.draggable = tool
button.text = tool.text
get_parent().add_element.call_deferred(button)