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

Profiles Proposition #14

Open
1fxe opened this issue Jan 25, 2021 · 0 comments
Open

Profiles Proposition #14

1fxe opened this issue Jan 25, 2021 · 0 comments

Comments

@1fxe
Copy link

1fxe commented Jan 25, 2021

Goals

  • Users should be able to load custom settings (profiles)
  • Rename/Name profiles
  • Delete profiles
  • Reset to the default profile
  • Download profiles from url

Below I have a constructed a possibility of how this can be achieved however feel free to alter it.

File structure

./minecraft
    /config
        /Vigilance
         Vigilance-global.toml
               /{modname}
                   default.toml
                   profile1.toml
               /{modname2}
                  default.toml

Vigilance-global.toml examle

patcher = "profile1.toml"
hytilies = "default.toml"

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

@1fxe 1fxe closed this as completed Apr 3, 2021
@mew mew reopened this Apr 8, 2021
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

No branches or pull requests

2 participants