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

Fixed Choice options not saving for ConfigFile instances #366

Merged
merged 1 commit into from
May 24, 2023

Conversation

JKohlman
Copy link
Contributor

@JKohlman JKohlman commented May 23, 2023

Breaking changes

  • None

Changes made in this pull request

  • Fixed ConfigFileMetadata.HandleChoiceChanged to properly take any ChoiceChangedEventArgs<> type rather than a <T> which is defined at the class level elsewhere
  • Fixed event routing not recognizing ChoiceChangedEventArgs since the generic type param

Should resolve #316 if I'm understanding the issue correctly.

PLEASE TEST, I finished this at 1AM and need to sleep

Would appreciate feedback from @MrJumpscare

Copy link

@MrJumpscare MrJumpscare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took some tinkering on my part with building but I managed to build this PR, and everything works like a charm. Enum based and string based ChoiceAttributes work perfectly now.

Copy link
Member

@LeeTwentyThree LeeTwentyThree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works perfectly, thank you very much for this fix. Only issue I can find now is posted in #367.

@LeeTwentyThree LeeTwentyThree merged commit 6eb2138 into SubnauticaModding:master May 24, 2023
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.

ChoiceAttribute does not work as intended
3 participants