Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add [aa] and [ns] commands plus more advance and skipping functionality #1460

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

Jowan-Spooner
Copy link
Collaborator

You can now

  • enable/disable skippable
  • enable/disable auto-advance
  • enable/disabled manual-advance
    using methods of the Text subsystem.

You can also use the text commands:

  • [aa=x] will enable autoadvance, but still allow manual advance and skipping. It supports both [aa=v] as well as [aa=v+x]
  • [ns=x] is kinda full auto mode right now disabling skipping and manual advance and setting an autoadvance (also allows v and v+x)
    These are reset before the next text event.

Autoadvance is no handled in the default input handler script instead of the text event. This script uses the new Dialogic.Text.can_skip(), Dialogic.Text.can_manual_advance(), Dialogic.Text.should_autoadvance() and Dialogic.Text.get_autoadvance_time().

A new Dialogic.Text.get_autoadvance_progress() method allows easily implementing an autoadvance indicator. A simple progress bar does this in the default layout scene.

You can now 
- enable/disable skippable
- enable/disable auto-advance
- enable/disabled manual-advance
using methods of the Text subsystem.  

You can also use the text commands:
- [aa=x] will enable autoadvance, but still allow manual advance and skipping. It supports both [aa=v] as well as [aa=v+x]
-  [ns=x] is kinda full auto mode right now disabling skipping and manual advance and setting an autoadvance (also allows v and v+x)
These are reset before the next text event.

Autoadvance is no handled in the default input handler script instead of the text event. This script uses the new Dialogic.Text.can_skip(), Dialogic.Text.can_manual_advance(), Dialogic.Text.should_autoadvance() and Dialogic.Text.get_autoadvance_time().

A new Dialogic.Text.get_autoadvance_progress() method allows easily implementing an autoadvance indicator. A simple progress bar does this in the default layout scene.
@Jowan-Spooner Jowan-Spooner merged commit 5d282c1 into main Mar 8, 2023
@Jowan-Spooner Jowan-Spooner deleted the autocontinue-and-noskip branch March 20, 2023 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant