var has_button_been_pressed = false
func _pressed():
var button = get_tree().get_root().get_node("Node/Button")
var panel = button.get_node("Panel")
if (panel.visible == true and has_button_been_pressed == true):
button.visible = false
else:
panel.visible = true
has_button_been_pressed = true