19 lines
326 B
GDScript
19 lines
326 B
GDScript
extends TextureRect
|
|
var is_selected:bool=false:
|
|
set(val):
|
|
if val!=is_selected:
|
|
if val:
|
|
%select_texture.show()
|
|
else:
|
|
%select_texture.hide()
|
|
pass
|
|
is_selected=val
|
|
|
|
var data:Dictionary={
|
|
|
|
}
|
|
signal pressed(data)
|
|
func _on_tool_button_pressed() -> void:
|
|
pressed.emit(data)
|
|
pass # Replace with function body.
|