challenge-editor/scene/game_flow_event.gd
2024-09-22 11:48:18 +08:00

13 lines
267 B
GDScript

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