diff options
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/config')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java | 9 | ||||
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java | 30 |
2 files changed, 17 insertions, 22 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java index 9b42192..04d4a8c 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java @@ -96,13 +96,8 @@ public class SBHConfig extends Config { public boolean hideScoreboard = false; @Expose - @ConfigOption( - name = "Bar Textures", - desc = "Change the style of bars. Dont change this unless the pack ur using tells you can." - ) - @ConfigEditorDropdown( - values = {"Style 1", "Style 2"} - ) + @ConfigOption(name = "Bar Textures", desc = "Change the style of bars. Dont change this unless the pack ur using tells you can.") + @ConfigEditorDropdown(values = { "Style 1", "Style 2" }) public int barTexture = 0; } diff --git a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java index 90325f8..1130370 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java @@ -1,5 +1,8 @@ package com.thatgravyboat.skyblockhud.config; +import static com.thatgravyboat.skyblockhud.GuiTextures.DISCORD; +import static com.thatgravyboat.skyblockhud.GuiTextures.TWITTER; + import com.google.common.collect.Lists; import com.thatgravyboat.skyblockhud.core.GlScissorStack; import com.thatgravyboat.skyblockhud.core.GuiElement; @@ -13,8 +16,8 @@ import com.thatgravyboat.skyblockhud.core.util.render.RenderUtils; import com.thatgravyboat.skyblockhud.core.util.render.TextRenderUtils; import java.awt.*; import java.net.URI; -import java.util.List; import java.util.*; +import java.util.List; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.Gui; @@ -25,9 +28,6 @@ import net.minecraft.util.ResourceLocation; import org.lwjgl.input.Mouse; import org.lwjgl.opengl.GL11; -import static com.thatgravyboat.skyblockhud.GuiTextures.DISCORD; -import static com.thatgravyboat.skyblockhud.GuiTextures.TWITTER; - public class SBHConfigEditor extends GuiElement { private static final ResourceLocation[] socialsIco = new ResourceLocation[] { DISCORD, TWITTER }; @@ -237,11 +237,11 @@ public class SBHConfigEditor extends GuiElement { for (ConfigProcessor.ProcessedOption option : getOptionsInCategory(cat).values()) { int optionWidth = optionWidthDefault; if (option.accordionId >= 0) { - if(!activeAccordions.containsKey(option.accordionId)) { + if (!activeAccordions.containsKey(option.accordionId)) { continue; } int accordionDepth = activeAccordions.get(option.accordionId); - optionWidth = optionWidthDefault - (2 * innerPadding)*(accordionDepth + 1); + optionWidth = optionWidthDefault - (2 * innerPadding) * (accordionDepth + 1); } GuiOptionEditor editor = option.editor; @@ -253,7 +253,7 @@ public class SBHConfigEditor extends GuiElement { if (accordion.getToggled()) { int accordionDepth = 0; if (option.accordionId >= 0) { - accordionDepth = activeAccordions.get(option.accordionId)+1; + accordionDepth = activeAccordions.get(option.accordionId) + 1; } activeAccordions.put(accordion.getAccordionId(), accordionDepth); } @@ -300,7 +300,7 @@ public class SBHConfigEditor extends GuiElement { if (accordion.getToggled()) { int accordionDepth = 0; if (option.accordionId >= 0) { - accordionDepth = activeAccordions.get(option.accordionId)+1; + accordionDepth = activeAccordions.get(option.accordionId) + 1; } activeAccordions.put(accordion.getAccordionId(), accordionDepth); } @@ -431,7 +431,7 @@ public class SBHConfigEditor extends GuiElement { if (accordion.getToggled()) { int accordionDepth = 0; if (option.accordionId >= 0) { - accordionDepth = activeAccordions.get(option.accordionId)+1; + accordionDepth = activeAccordions.get(option.accordionId) + 1; } activeAccordions.put(accordion.getAccordionId(), accordionDepth); } @@ -491,7 +491,7 @@ public class SBHConfigEditor extends GuiElement { continue; } int accordionDepth = activeAccordions.get(option.accordionId); - optionWidth = optionWidthDefault - (2*innerPadding)*(accordionDepth+1); + optionWidth = optionWidthDefault - (2 * innerPadding) * (accordionDepth + 1); } GuiOptionEditor editor = option.editor; @@ -503,7 +503,7 @@ public class SBHConfigEditor extends GuiElement { if (accordion.getToggled()) { int accordionDepth = 0; if (option.accordionId >= 0) { - accordionDepth = activeAccordions.get(option.accordionId)+1; + accordionDepth = activeAccordions.get(option.accordionId) + 1; } activeAccordions.put(accordion.getAccordionId(), accordionDepth); } @@ -528,7 +528,7 @@ public class SBHConfigEditor extends GuiElement { continue; } int accordionDepth = activeAccordions.get(option.accordionId); - optionWidth = optionWidthDefault - (2*innerPadding)*(accordionDepth+1); + optionWidth = optionWidthDefault - (2 * innerPadding) * (accordionDepth + 1); } GuiOptionEditor editor = option.editor; @@ -540,7 +540,7 @@ public class SBHConfigEditor extends GuiElement { if (accordion.getToggled()) { int accordionDepth = 0; if (option.accordionId >= 0) { - accordionDepth = activeAccordions.get(option.accordionId)+1; + accordionDepth = activeAccordions.get(option.accordionId) + 1; } activeAccordions.put(accordion.getAccordionId(), accordionDepth); } @@ -586,7 +586,7 @@ public class SBHConfigEditor extends GuiElement { if (accordion.getToggled()) { int accordionDepth = 0; if (option.accordionId >= 0) { - accordionDepth = activeAccordions.get(option.accordionId)+1; + accordionDepth = activeAccordions.get(option.accordionId) + 1; } activeAccordions.put(accordion.getAccordionId(), accordionDepth); } @@ -599,4 +599,4 @@ public class SBHConfigEditor extends GuiElement { return true; } -}
\ No newline at end of file +} |