This commit is contained in:
m.cirafisi
2026-07-09 22:14:29 +02:00
parent f61668c626
commit 53e4afa367
10 changed files with 102 additions and 12 deletions

View File

@@ -6,9 +6,23 @@ func _ready() -> void:
manage_pageflip.connect(_on_manage_pageflip)
func _on_manage_pageflip(give_control: bool) -> void:
var tweens = find_children("*", "ContainerTween", true, false)
var tweens: Array[ContainerTween] = []
for child in find_children("*", "", true, false):
if child is ContainerTween:
tweens.append(child)
for tween in tweens:
if give_control:
tween.start_tween()
else:
tween.stop_tween()
else:
tween.start_tween()
if give_control:
on_page_closed()
else:
on_page_opened()
func on_page_opened() -> void:
pass
func on_page_closed() -> void:
pass