challenge-editor/scene/warehouse_tab.gd
2024-10-10 18:09:32 +08:00

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.