21 lines
307 B
GDScript3
21 lines
307 B
GDScript3
|
extends PanelContainer
|
||
|
|
||
|
signal click
|
||
|
|
||
|
var selected:bool=false:
|
||
|
set(val):
|
||
|
selected=val
|
||
|
if selected:
|
||
|
%selected_texture.show()
|
||
|
else:
|
||
|
%selected_texture.hide()
|
||
|
|
||
|
func set_text(text:String):
|
||
|
%text.text=text
|
||
|
|
||
|
|
||
|
|
||
|
func _on_tool_button_pressed() -> void:
|
||
|
click.emit()
|
||
|
pass # Replace with function body.
|