aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/config')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java29
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java16
2 files changed, 33 insertions, 12 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java
index 90f4c19..9c00a92 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java
@@ -50,9 +50,9 @@ public class SBHConfig extends Config {
case "map":
editOverlay(activeConfigCategory, 72, 72, map.miniMapPosition);
return;
- case "tracker":
- editOverlay(activeConfigCategory, 120, 70, trackers.trackerPosition);
- return;
+// case "tracker":
+// editOverlay(activeConfigCategory, 120, 70, trackers.trackerPosition);
+// return;
}
}
@@ -81,8 +81,13 @@ public class SBHConfig extends Config {
public Map map = new Map();
@Expose
- @Category(name = "Tracker", desc = "All Options for the Trackers.")
- public Trackers trackers = new Trackers();
+ @Category(name = "Mining Hud", desc = "All Options for the Mining Hud.")
+ public MiningHud miningHud = new MiningHud();
+
+//TODO ENABLED WHEN TRACKER GETS ADDED BACK
+// @Expose
+// @Category(name = "Tracker", desc = "All Options for the Trackers.")
+// public Trackers trackers = new Trackers();
public static class Misc {
@@ -304,6 +309,20 @@ public class SBHConfig extends Config {
public boolean showQuestIcons = false;
}
+ public static class MiningHud {
+
+ @Expose
+ @ConfigOption(name = "Show Drill Bar", desc = "Allows you to show or hide the Drill Bar.")
+ @ConfigEditorBoolean
+ public boolean showDrillBar = true;
+
+ @Expose
+ @ConfigOption(name = "Show Heat Bar", desc = "Allows you to show or hide the Heat Bar.")
+ @ConfigEditorBoolean
+ public boolean showHeatBar = true;
+
+ }
+
public static class Trackers {
@Expose
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java
index 0496a8f..58a9f24 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfigEditor.java
@@ -1,7 +1,5 @@
package com.thatgravyboat.skyblockhud.config;
-import static com.thatgravyboat.skyblockhud.GuiTextures.*;
-
import com.google.common.collect.Lists;
import com.thatgravyboat.skyblockhud.core.GlScissorStack;
import com.thatgravyboat.skyblockhud.core.GuiElement;
@@ -13,10 +11,6 @@ import com.thatgravyboat.skyblockhud.core.util.lerp.LerpUtils;
import com.thatgravyboat.skyblockhud.core.util.lerp.LerpingInteger;
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.*;
-import java.util.List;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.Gui;
@@ -27,10 +21,18 @@ import net.minecraft.util.ResourceLocation;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.GL11;
+import java.awt.*;
+import java.net.URI;
+import java.util.List;
+import java.util.*;
+
+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 };
- private static final String[] socialsLink = new String[] { "https://discord.gg/moulberry", "https://twitter.com/thatgravytboat/" };
+ private static final String[] socialsLink = new String[] { "https://discord.gg/moulberry", "https://twitter.com/thatgravyboat/" };
private final long openedMillis;