|
@@ -15,11 +15,16 @@ const VOID_SLIDE_ID := -1
|
|
|
@export var action_previous_slide := "ui_left"
|
|
|
@export var action_home_slide := "ui_cancel"
|
|
|
|
|
|
+@export_group("Export")
|
|
|
+@export var one_slide_per_frame := true
|
|
|
+
|
|
|
var current_id := VOID_SLIDE_ID
|
|
|
var current_slide: Slide
|
|
|
|
|
|
@onready var focus: Focus = $"../Focus"
|
|
|
@onready var slides: Array = get_children()
|
|
|
+@onready var movie_enabled: bool = OS.has_feature("movie")
|
|
|
+@onready var auto_next_slide: bool = movie_enabled and one_slide_per_frame
|
|
|
|
|
|
|
|
|
func _ready() -> void:
|
|
@@ -31,9 +36,17 @@ func _ready() -> void:
|
|
|
|
|
|
_global_slide_setup()
|
|
|
|
|
|
+ if auto_next_slide:
|
|
|
+ return
|
|
|
+
|
|
|
go_slowly_to_next_slide()
|
|
|
|
|
|
|
|
|
+func _process(_delta: float) -> void:
|
|
|
+ if auto_next_slide:
|
|
|
+ go_fast_to_next_slide()
|
|
|
+
|
|
|
+
|
|
|
func go_slowly_to_next_slide() -> void:
|
|
|
next_slide(Focus.Transit.SMOOTH)
|
|
|
|