16 lines
248 B
GDScript
16 lines
248 B
GDScript
extends TextureRect
|
|
|
|
signal click
|
|
|
|
var data:Dictionary
|
|
|
|
func set_data(_data:Dictionary):
|
|
|
|
data=_data
|
|
%face.texture=Database.get_texture(data["texture"])
|
|
|
|
|
|
func _on_tool_button_pressed() -> void:
|
|
click.emit()
|
|
pass # Replace with function body.
|