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

Fix dialogue variables not mimicking actual narrative variables #184

Merged

Conversation

stargazing-dino
Copy link
Contributor

dialogue.variable_storage().variables() will also have declare'd variables as well now.

@stargazing-dino
Copy link
Contributor Author

Eh will look into that test later. And possibly add my own regression one

@stargazing-dino stargazing-dino marked this pull request as draft March 5, 2024 01:21
@janhohenheim
Copy link
Member

Idea sounds sound to me. I'll check the PR in detail when you're done :)

@stargazing-dino stargazing-dino force-pushed the extend_with_declarations branch from d3d2df2 to 9950c19 Compare May 17, 2024 00:48
@stargazing-dino
Copy link
Contributor Author

Heh I found out why that test was erroring:

        .declare_variable(
            Declaration::new("$external_str", Type::String).with_default_value("Hello"),
        )
        .declare_variable(Declaration::new("$external_int", Type::Boolean).with_default_value(true)) // <--
        .declare_variable(Declaration::new("$external_bool", Type::Number).with_default_value(42)) // <--

I also added a test to validate declared vars are indeed visible ^^

Other CI failures I think are unrelated

@stargazing-dino stargazing-dino marked this pull request as ready for review May 17, 2024 01:04
@janhohenheim
Copy link
Member

@stargazing-dino hehe, that one seems sneaky

@janhohenheim
Copy link
Member

Hmm, I'm missing the "merge main branch into this branch" button here and your other PR. Could you merge main so that the CI will be fixed?

@stargazing-dino
Copy link
Contributor Author

should be ready now

@janhohenheim
Copy link
Member

Thanks :)

@janhohenheim janhohenheim merged commit 9d596d1 into YarnSpinnerTool:main May 17, 2024
4 checks passed
@stargazing-dino stargazing-dino deleted the extend_with_declarations branch May 17, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants