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

Improve the variable_changed signals and their info dictionaries #2215

Conversation

Jowan-Spooner
Copy link
Collaborator

@Jowan-Spooner Jowan-Spooner commented May 4, 2024

Improved documentation and implementation of Dialogic.VAR.variable_was_set and Dialogic.VAR.variable_changed.

The variable_was_set info now will consitently contain these keys:

## `variable`  | [type String] | The name of the variable that is getting changed. [br]
## `orig_value`| [type Variant]| The value that [variable] had before. [br]
## `new_value` | [type Variant]| The value that [variable] has after the change (the result). [br]
## `value`     | [type Variant]| The value that the variable is changed by/to. [br]
## `value_str` | [type String] | Whatever has been given as the value (not interpreted, so a variable is just a string).[br]
  • slightly compatibility breaking

@Jowan-Spooner Jowan-Spooner added the Enhance ⚡ Improve a feature's workflow. label May 4, 2024
@Jowan-Spooner Jowan-Spooner merged commit 1eea283 into dialogic-godot:main May 9, 2024
2 checks passed
@Jowan-Spooner Jowan-Spooner deleted the improve-variable-signal-dicts branch July 8, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhance ⚡ Improve a feature's workflow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant