challenge-editor/scene/game_flow_event.gd

13 lines
267 B
GDScript3
Raw Normal View History

2024-09-19 12:04:52 +08:00
extends Panel
@onready var label: Label = $Label
2024-09-22 11:48:18 +08:00
signal pressed(event_id:String)
2024-09-19 12:04:52 +08:00
var data:Dictionary
func set_data(d:Dictionary):
data=d
label.text=data.name
2024-09-20 20:20:14 +08:00
func _on_tool_button_pressed() -> void:
2024-09-22 11:48:18 +08:00
pressed.emit(data["event"])
2024-09-20 20:20:14 +08:00
pass # Replace with function body.