15 lines
275 B
GDScript
15 lines
275 B
GDScript
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.
|