diff options
| author | DoKM <mcazzyman@gmail.com> | 2021-07-19 14:13:26 +0200 |
|---|---|---|
| committer | DoKM <mcazzyman@gmail.com> | 2021-07-19 14:13:26 +0200 |
| commit | 4e96c08e76dd4b3efccbfd2bf6a958c583f75b06 (patch) | |
| tree | de731dabfff29f2c5a3e08f6063508e5b598a7e8 /src/main/java/io/github/moulberry/notenoughupdates/options | |
| parent | 24884d3c6ad4c048ea9d7f4eb0d1ac92e3871202 (diff) | |
| download | notenoughupdates-4e96c08e76dd4b3efccbfd2bf6a958c583f75b06.tar.gz notenoughupdates-4e96c08e76dd4b3efccbfd2bf6a958c583f75b06.tar.bz2 notenoughupdates-4e96c08e76dd4b3efccbfd2bf6a958c583f75b06.zip | |
Restructure EnchantingSolvers Config into Enchanting Config
Also first config option for enchanting gui
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/options')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java | 6 | ||||
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Enchanting.java (renamed from src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/EnchSolvers.java) | 236 |
2 files changed, 133 insertions, 109 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java b/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java index 67db8723..fcbed1af 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java @@ -174,10 +174,10 @@ public class NEUConfig extends Config { @Expose @Category( - name = "Enchanting Solvers", - desc = "Enchanting Solvers" + name = "Enchanting", + desc = "Enchanting" ) - public EnchSolvers enchantingSolvers = new EnchSolvers(); + public Enchanting enchanting = new Enchanting(); @Expose @Category( diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/EnchSolvers.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Enchanting.java index c7707973..1833df51 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/EnchSolvers.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Enchanting.java @@ -1,106 +1,130 @@ -package io.github.moulberry.notenoughupdates.options.seperateSections;
-
-import com.google.gson.annotations.Expose;
-import io.github.moulberry.notenoughupdates.core.config.annotations.ConfigEditorBoolean;
-import io.github.moulberry.notenoughupdates.core.config.annotations.ConfigEditorDropdown;
-import io.github.moulberry.notenoughupdates.core.config.annotations.ConfigOption;
-
-public class EnchSolvers {
- @Expose
- @ConfigOption(
- name = "Enable Solvers",
- desc = "Turn on solvers for the experimentation table"
- )
- @ConfigEditorBoolean
- public boolean enableEnchantingSolvers = true;
-
- /*@Expose
- @ConfigOption(
- name = "Prevent Misclicks",
- desc = "Prevent accidentally failing the Chronomatron and Ultrasequencer experiments"
- )
- @ConfigEditorBoolean
- public boolean preventMisclicks = true;*/
-
- @Expose
- @ConfigOption(
- name = "Hide Tooltips",
- desc = "Hide the tooltip of items in the Chronomatron and Ultrasequencer experiments"
- )
- @ConfigEditorBoolean
- public boolean hideTooltips = true;
-
- @Expose
- @ConfigOption(
- name = "Ultrasequencer Numbers",
- desc = "Replace the items in the supersequencer with only numbers"
- )
- @ConfigEditorBoolean
- public boolean seqNumbers = false;
-
- @Expose
- @ConfigOption(
- name = "Ultrasequencer Next",
- desc = "Set the colour of the glass pane shown behind the element in the ultrasequencer which is next"
- )
- @ConfigEditorDropdown(
- values = {"None", "White", "Orange", "Light Purple", "Light Blue", "Yellow", "Light Green", "Pink",
- "Gray", "Light Gray", "Cyan", "Dark Purple", "Dark Blue", "Brown", "Dark Green", "Red", "Black"}
- )
- public int seqNext = 6;
-
- @Expose
- @ConfigOption(
- name = "Ultrasequencer Upcoming",
- desc = "Set the colour of the glass pane shown behind the element in the ultrasequencer which is coming after \"next\""
- )
- @ConfigEditorDropdown(
- values = {"None", "White", "Orange", "Light Purple", "Light Blue", "Yellow", "Light Green", "Pink",
- "Gray", "Light Gray", "Cyan", "Dark Purple", "Dark Blue", "Brown", "Dark Green", "Red", "Black"}
- )
- public int seqUpcoming = 5;
-
- @Expose
- @ConfigOption(
- name = "Superpairs Matched",
- desc = "Set the colour of the glass pane shown behind successfully matched pairs"
- )
- @ConfigEditorDropdown(
- values = {"None", "White", "Orange", "Light Purple", "Light Blue", "Yellow", "Light Green", "Pink",
- "Gray", "Light Gray", "Cyan", "Dark Purple", "Dark Blue", "Brown", "Dark Green", "Red", "Black"}
- )
- public int supMatched = 6;
-
- @Expose
- @ConfigOption(
- name = "Superpairs Possible",
- desc = "Set the colour of the glass pane shown behind pairs which can be matched, but have not yet"
- )
- @ConfigEditorDropdown(
- values = {"None", "White", "Orange", "Light Purple", "Light Blue", "Yellow", "Light Green", "Pink",
- "Gray", "Light Gray", "Cyan", "Dark Purple", "Dark Blue", "Brown", "Dark Green", "Red", "Black"}
- )
- public int supPossible = 2;
-
- @Expose
- @ConfigOption(
- name = "Superpairs Unmatched",
- desc = "Set the colour of the glass pane shown behind pairs which have been previously uncovered"
- )
- @ConfigEditorDropdown(
- values = {"None", "White", "Orange", "Light Purple", "Light Blue", "Yellow", "Light Green", "Pink",
- "Gray", "Light Gray", "Cyan", "Dark Purple", "Dark Blue", "Brown", "Dark Green", "Red", "Black"}
- )
- public int supUnmatched = 5;
-
- @Expose
- @ConfigOption(
- name = "Superpairs Powerups",
- desc = "Set the colour of the glass pane shown behind powerups"
- )
- @ConfigEditorDropdown(
- values = {"None", "White", "Orange", "Light Purple", "Light Blue", "Yellow", "Light Green", "Pink",
- "Gray", "Light Gray", "Cyan", "Dark Purple", "Dark Blue", "Brown", "Dark Green", "Red", "Black"}
- )
- public int supPower = 11;
-}
+package io.github.moulberry.notenoughupdates.options.seperateSections; + +import com.google.gson.annotations.Expose; +import io.github.moulberry.notenoughupdates.core.config.annotations.*; + +public class Enchanting { + @Expose + @ConfigOption( + name = "Enable Custom Enchanting Gui", + desc = "Adds a BETA enchanting gui" + ) + @ConfigEditorBoolean + public boolean enableGui = false; + + @ConfigOption( + name = "Enchanting Solvers", + desc = "" + ) + @ConfigEditorAccordion(id = 0) + public boolean enchantingSolversAccordion = false; + + + @Expose + @ConfigOption( + name = "Enable Solvers", + desc = "Turn on solvers for the experimentation table" + ) + @ConfigEditorBoolean + @ConfigAccordionId(id = 0) + public boolean enableEnchantingSolvers = true; + + /*@Expose + @ConfigOption( + name = "Prevent Misclicks", + desc = "Prevent accidentally failing the Chronomatron and Ultrasequencer experiments" + ) + @ConfigEditorBoolean + @ConfigAccordionId(id = 0) + public boolean preventMisclicks = true;*/ + + @Expose + @ConfigOption( + name = "Hide Tooltips", + desc = "Hide the tooltip of items in the Chronomatron and Ultrasequencer experiments" + ) + @ConfigEditorBoolean + @ConfigAccordionId(id = 0) + public boolean hideTooltips = true; + + @Expose + @ConfigOption( + name = "Ultrasequencer Numbers", + desc = "Replace the items in the supersequencer with only numbers" + ) + @ConfigEditorBoolean + @ConfigAccordionId(id = 0) + public boolean seqNumbers = false; + + @Expose + @ConfigOption( + name = "Ultrasequencer Next", + desc = "Set the colour of the glass pane shown behind the element in the ultrasequencer which is next" + ) + @ConfigEditorDropdown( + values = {"None", "White", "Orange", "Light Purple", "Light Blue", "Yellow", "Light Green", "Pink", + "Gray", "Light Gray", "Cyan", "Dark Purple", "Dark Blue", "Brown", "Dark Green", "Red", "Black"} + ) + @ConfigAccordionId(id = 0) + public int seqNext = 6; + + @Expose + @ConfigOption( + name = "Ultrasequencer Upcoming", + desc = "Set the colour of the glass pane shown behind the element in the ultrasequencer which is coming after \"next\"" + ) + @ConfigEditorDropdown( + values = {"None", "White", "Orange", "Light Purple", "Light Blue", "Yellow", "Light Green", "Pink", + "Gray", "Light Gray", "Cyan", "Dark Purple", "Dark Blue", "Brown", "Dark Green", "Red", "Black"} + ) + @ConfigAccordionId(id = 0) + public int seqUpcoming = 5; + + @Expose + @ConfigOption( + name = "Superpairs Matched", + desc = "Set the colour of the glass pane shown behind successfully matched pairs" + ) + @ConfigEditorDropdown( + values = {"None", "White", "Orange", "Light Purple", "Light Blue", "Yellow", "Light Green", "Pink", + "Gray", "Light Gray", "Cyan", "Dark Purple", "Dark Blue", "Brown", "Dark Green", "Red", "Black"} + ) + @ConfigAccordionId(id = 0) + public int supMatched = 6; + + @Expose + @ConfigOption( + name = "Superpairs Possible", + desc = "Set the colour of the glass pane shown behind pairs which can be matched, but have not yet" + ) + @ConfigEditorDropdown( + values = {"None", "White", "Orange", "Light Purple", "Light Blue", "Yellow", "Light Green", "Pink", + "Gray", "Light Gray", "Cyan", "Dark Purple", "Dark Blue", "Brown", "Dark Green", "Red", "Black"} + ) + @ConfigAccordionId(id = 0) + public int supPossible = 2; + + @Expose + @ConfigOption( + name = "Superpairs Unmatched", + desc = "Set the colour of the glass pane shown behind pairs which have been previously uncovered" + ) + @ConfigEditorDropdown( + values = {"None", "White", "Orange", "Light Purple", "Light Blue", "Yellow", "Light Green", "Pink", + "Gray", "Light Gray", "Cyan", "Dark Purple", "Dark Blue", "Brown", "Dark Green", "Red", "Black"} + ) + @ConfigAccordionId(id = 0) + public int supUnmatched = 5; + + @Expose + @ConfigOption( + name = "Superpairs Powerups", + desc = "Set the colour of the glass pane shown behind powerups" + ) + @ConfigEditorDropdown( + values = {"None", "White", "Orange", "Light Purple", "Light Blue", "Yellow", "Light Green", "Pink", + "Gray", "Light Gray", "Cyan", "Dark Purple", "Dark Blue", "Brown", "Dark Green", "Red", "Black"} + ) + @ConfigAccordionId(id = 0) + public int supPower = 11; +} |
