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

Multiple fixes (all over the place) #1586

Merged
merged 6 commits into from
May 30, 2023
Merged

Multiple fixes (all over the place) #1586

merged 6 commits into from
May 30, 2023

Conversation

Jowan-Spooner
Copy link
Collaborator

@Jowan-Spooner Jowan-Spooner commented May 30, 2023

This is an unfortunate mess. I've been working on the example projects and making changes as needed along the way. This is the result of that.

Here is a list of the most prominent changes:

Choices

  • you can now choose how/when choices are revealed. either
    • instantly when the text finished (default, because previous behaviour)
    • after a certain time (very useful if text speed is instant (0))
    • after another input
    • after an input OR a certain time

Input

  • The input handler now emits a dialogic_action signal that can be listend to
  • The input handler reference in the Text subsystem is now named input_handler (previously input_handler_node)

Textbox

The DialogText node now has three new settings: enabled, hide_when_empty and textbox_root.

  • if enabled is false, this node will ignore calls to reveal_text() and the text subsystem will ignore the node

  • if hide_when_empty() is true, the node will hide itself (without animation though) whenever set to an empty text

  • textbox root determines what node should be hidden/revealed when the textbox shows/hides. It defaults to "self", but on the default layout it is set to the Panel containing the node.

  • fixed a bug where text effects at the very end of a text event would be ignored

Other

  • Add hide_textbox setting to [await input] event
  • adds autocompletion for the wait events hide_text setting
  • Make shortcode suggestions add a space if it has settings
  • Add some static typing
  • Removed the "Special" style from the default layout, as it was in bad shape and isn't really needed

- Also adds autocompletion for the wait events hide_text setting
Not sure if it's a big improvement
# Choices
- you can now choose how/when choices are revealed. either
    - instantly when the text finished (default, because previous behaviour)
    - after a certain time (very useful if text speed is instant (0))
    - after another input
    - after an input OR a certain time

# Input
- The input handler now emits a dialogic_action signal that can be listend to
- The input handler reference in the Text subsystem is now named input_handler (previously input_handler_node)

# Textbox
The DialogText node now has three new settings: `enabled`, `hide_when_empty` and `textbox_root`. 
- if enabled is false, this node will ignore calls to `reveal_text()` and the text subsystem will ignore the node
- if hide_when_empty() is true, the node will hide itself (without animation though) whenever set to an empty text
- textbox root determines what node should be hidden/revealed when the textbox shows/hides. It defaults to "self", but on the default layout it is set to the Panel containing the node.

- fixed a bug where text effects at the very end of a text event would be ignored
@Jowan-Spooner
Copy link
Collaborator Author

Will merge this although it's messy. Hope nothing breaks

@Jowan-Spooner Jowan-Spooner merged commit 0bf78d5 into main May 30, 2023
@Jowan-Spooner Jowan-Spooner deleted the big-pr branch August 8, 2023 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant