13 lines
267 B
GDScript
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.
|