improve ui and bug fix
This commit was merged in pull request #30.
This commit is contained in:
@@ -2,6 +2,8 @@ extends Control
|
||||
|
||||
class_name GameMenuPage
|
||||
|
||||
func _ready() -> void:
|
||||
GameState.on_game_resumed.connect(_on_game_resumed)
|
||||
|
||||
func show_page() -> void:
|
||||
var tweens = find_children("*", "ContainerTween", true, false)
|
||||
@@ -11,4 +13,12 @@ func show_page() -> void:
|
||||
|
||||
|
||||
func hide_page() -> void:
|
||||
var tweens = find_children("*", "ContainerTween", true, false)
|
||||
for tween in tweens:
|
||||
tween.stop_tween()
|
||||
hide()
|
||||
|
||||
func _on_game_resumed() -> void:
|
||||
var tweens = find_children("*", "ContainerTween", true, false)
|
||||
for tween in tweens:
|
||||
tween.stop_tween()
|
||||
|
||||
Reference in New Issue
Block a user