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