add page flip
This commit is contained in:
14
core/game_menu/page_interactive.gd
Normal file
14
core/game_menu/page_interactive.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends Control
|
||||
|
||||
signal manage_pageflip(give_control: bool)
|
||||
|
||||
func _ready() -> void:
|
||||
manage_pageflip.connect(_on_manage_pageflip)
|
||||
|
||||
func _on_manage_pageflip(give_control: bool) -> void:
|
||||
var tweens = find_children("*", "ContainerTween", true, false)
|
||||
for tween in tweens:
|
||||
if give_control:
|
||||
tween.start_tween()
|
||||
else:
|
||||
tween.stop_tween()
|
||||
Reference in New Issue
Block a user