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

Auto create config gui if no gui factory is registered #79

Merged
merged 4 commits into from
Oct 21, 2024

Conversation

Lyfts
Copy link
Member

@Lyfts Lyfts commented Oct 5, 2024

This automatically creates a config gui with every registered config for a given mod. Since that leaves no options to control which config classes appear in the ui, I did add the @Config.ExcludeFromAutoGui annotation which serves as a simple way to keep that control intact.

If no custom config gui is needed then this effectively removes the need to register a gui factory.

@Lyfts Lyfts requested a review from a team October 5, 2024 18:47
@Caedis
Copy link
Member

Caedis commented Oct 21, 2024

How has this been tested?

@Lyfts
Copy link
Member Author

Lyfts commented Oct 21, 2024

By removing the gui factory and entering the config gui in a dummy config as well as SU

Copy link
Member

@Caedis Caedis left a comment

Choose a reason for hiding this comment

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

Good change

@Dream-Master Dream-Master enabled auto-merge (squash) October 21, 2024 15:40
@Dream-Master Dream-Master merged commit 3d6099b into master Oct 21, 2024
1 check passed
@Dream-Master Dream-Master deleted the auto-config-gui branch October 21, 2024 16:00
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.

4 participants