challenge-editor/scene/game_flow_place.gd
2024-09-20 20:20:14 +08:00

15 lines
275 B
GDScript

extends TextureRect
signal pressed(da:Dictionary)
@onready var label: Label = $Label
var data:Dictionary
func set_data(da:Dictionary):
data=da
label.text=data["name"]
pass
func _on_tool_button_pressed() -> void:
pressed.emit(data)
pass # Replace with function body.