challenge-editor/scene/game_flow_place.gd

15 lines
275 B
GDScript3
Raw Permalink Normal View History

2024-09-20 20:20:14 +08:00
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.