21 lines
307 B
GDScript
21 lines
307 B
GDScript
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.
|