viniciusgerevini / godot-clyde-dialogue

Clyde Dialogue Language Importer and interpreter for Godot.
MIT License
89 stars 11 forks source link

Include hidden options #33

Closed viniciusgerevini closed 7 months ago

viniciusgerevini commented 7 months ago

Feature request: #10

Added configuration to return options that didn't pass checks.

dialogue.configure({ "include_hidden_options": true }) # default is false

For example:

* option 1 { is_this_true }
        some dialogue
* option 2
        some other dialogue

By default, if is_this_true is false, option 1 won't be included in the options list when doing get_content. When this new configuration is enabled, all non-used options are returned. They will also contain an extra property is_visible that indicates if they are supposed to be shown or not.