mirror of
https://github.com/Relintai/broken_seals_roguelike.git
synced 2024-11-14 10:57:19 +01:00
20 lines
622 B
GDScript3
20 lines
622 B
GDScript3
|
extends Button
|
||
|
|
||
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
||
|
func _ready():
|
||
|
get_tree().connect("connected_to_server", self, "connected_to_server")
|
||
|
get_tree().connect("server_disconnected", self, "server_disconnected")
|
||
|
|
||
|
func _exit_tree():
|
||
|
get_tree().disconnect("connected_to_server", self, "connected_to_server")
|
||
|
get_tree().disconnect("server_disconnected", self, "server_disconnected")
|
||
|
|
||
|
func connected_to_server():
|
||
|
hide()
|
||
|
|
||
|
func server_disconnected():
|
||
|
show()
|