You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would allow for reset of settings as we know the default config is {modname}-default.toml, the default should be read only and any changes made in the GUI would generate {modname}-profile1.toml if it does not exist.
Vigilance-global should store the current config. If no config exists for the current mod add the mod default config to the file.
Goals
Below I have a constructed a possibility of how this can be achieved however feel free to alter it.
File structure
Vigilance-global.toml examle
This would allow for reset of settings as we know the default config is {modname}-default.toml, the default should be read only and any changes made in the GUI would generate {modname}-profile1.toml if it does not exist.
Vigilance-global should store the current config. If no config exists for the current mod add the mod default config to the file.
https://github.com/Sk1erLLC/Vigilance/blob/f9e04504c3b2e2ed4365f4015d65e5253c61dd8f/src/main/kotlin/club/sk1er/vigilance/gui/SettingsGui.kt#L161
The text was updated successfully, but these errors were encountered: