2024-09-19 12:04:52 +08:00
|
|
|
extends Panel
|
|
|
|
@onready var label: Label = $Label
|
2024-09-20 20:20:14 +08:00
|
|
|
signal pressed(data:Dictionary)
|
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:
|
|
|
|
pressed.emit(data)
|
|
|
|
pass # Replace with function body.
|