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

Add config added listener #42

Open
anonymous123-code opened this issue Mar 3, 2024 · 1 comment
Open

Add config added listener #42

anonymous123-code opened this issue Mar 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@anonymous123-code
Copy link
Contributor

Make Configs observable so that you can add listeners that get called when a new config is added.

This is necessary for modmenu integration of an automatic loading screen mod:
It first stores hashmaps provided by the entrypoint in a list, meaning that those could still be mutated, until it applies config screens provided for other mods during the init of its main screen. (So when it is opened for the first time)

It should respect the hidden metadata proposed by #32

@ix0rai ix0rai added the enhancement New feature or request label Mar 3, 2024
@OroArmor
Copy link
Member

This might be more useful in the loader implementation of the config system. Not sure though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants