Make slide switching a bit less verbose
This commit is contained in:
parent
63a5d26639
commit
b67f53aca6
1 changed files with 1 additions and 3 deletions
|
@ -62,10 +62,8 @@ func _process(_delta: float) -> void:
|
|||
DisplayServer.WindowMode.WINDOW_MODE_WINDOWED: DisplayServer.window_set_mode(DisplayServer.WindowMode.WINDOW_MODE_FULLSCREEN)
|
||||
_: DisplayServer.window_set_mode(DisplayServer.WindowMode.WINDOW_MODE_WINDOWED)
|
||||
if Input.is_action_just_pressed("navigate_forwards"):
|
||||
logger.diag("Navigating to next slide")
|
||||
await switch_slide(current_slide + 1)
|
||||
if Input.is_action_just_pressed("navigate_backwards"):
|
||||
logger.diag("Navigating to previous slide")
|
||||
await switch_slide(current_slide - 1)
|
||||
|
||||
# +++ slide management +++
|
||||
|
@ -106,7 +104,7 @@ func switch_slide(new_slide: int) -> PresencodeTypes.PresencodeError:
|
|||
return PresencodeTypes.PresencodeError.OK
|
||||
|
||||
func remove_all_slides() -> void:
|
||||
logger.verb("Removing all slides")
|
||||
logger.diag("Removing all slides")
|
||||
|
||||
for scene in sms.get_scene_collection_list(CoreTypes.SceneType.MAIN):
|
||||
sms.remove_scene(scene.name)
|
||||
|
|
Loading…
Reference in a new issue