aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java
diff options
context:
space:
mode:
authorTymanWasTaken <tyman@tyman.tech>2021-07-06 17:20:49 -0400
committerTymanWasTaken <tyman@tyman.tech>2021-07-06 17:20:49 -0400
commitc04ca523f9fb9f7adefa74587db61f76deeae9f0 (patch)
treef148e7bcd9105813d3fe781badcb2cf3892712fd /src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java
parenta8e475fa0a7977f64f072548459d592274169d66 (diff)
downloadSkyblockHud-Death-Defied-c04ca523f9fb9f7adefa74587db61f76deeae9f0.tar.gz
SkyblockHud-Death-Defied-c04ca523f9fb9f7adefa74587db61f76deeae9f0.tar.bz2
SkyblockHud-Death-Defied-c04ca523f9fb9f7adefa74587db61f76deeae9f0.zip
Increase line width
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java')
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java158
1 files changed, 29 insertions, 129 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java
index 52272b7..84e5483 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/config/SBHConfig.java
@@ -11,12 +11,7 @@ import net.minecraft.client.Minecraft;
public class SBHConfig extends Config {
- private void editOverlay(
- String activeConfig,
- int width,
- int height,
- Position position
- ) {
+ private void editOverlay(String activeConfig, int width, int height, Position position) {
Minecraft
.getMinecraft()
.displayGuiScreen(
@@ -28,12 +23,7 @@ public class SBHConfig extends Config {
() -> {},
() ->
SkyblockHud.screenToOpen =
- new GuiScreenElementWrapper(
- new SBHConfigEditor(
- SkyblockHud.config,
- activeConfig
- )
- )
+ new GuiScreenElementWrapper(new SBHConfigEditor(SkyblockHud.config, activeConfig))
)
);
}
@@ -41,17 +31,10 @@ public class SBHConfig extends Config {
@Override
public void executeRunnable(String runnableId) {
String activeConfigCategory = null;
- if (
- Minecraft.getMinecraft()
- .currentScreen instanceof GuiScreenElementWrapper
- ) {
- GuiScreenElementWrapper wrapper = (GuiScreenElementWrapper) Minecraft.getMinecraft()
- .currentScreen;
+ if (Minecraft.getMinecraft().currentScreen instanceof GuiScreenElementWrapper) {
+ GuiScreenElementWrapper wrapper = (GuiScreenElementWrapper) Minecraft.getMinecraft().currentScreen;
if (wrapper.element instanceof SBHConfigEditor) {
- activeConfigCategory =
- (
- (SBHConfigEditor) wrapper.element
- ).getSelectedCategoryName();
+ activeConfigCategory = ((SBHConfigEditor) wrapper.element).getSelectedCategoryName();
}
}
@@ -60,36 +43,16 @@ public class SBHConfig extends Config {
editOverlay(activeConfigCategory, 120, 47, rpg.rpgHudPosition);
return;
case "d1":
- editOverlay(
- activeConfigCategory,
- 120,
- 32,
- dungeon.dungeonPlayer1
- );
+ editOverlay(activeConfigCategory, 120, 32, dungeon.dungeonPlayer1);
return;
case "d2":
- editOverlay(
- activeConfigCategory,
- 120,
- 32,
- dungeon.dungeonPlayer2
- );
+ editOverlay(activeConfigCategory, 120, 32, dungeon.dungeonPlayer2);
return;
case "d3":
- editOverlay(
- activeConfigCategory,
- 120,
- 32,
- dungeon.dungeonPlayer3
- );
+ editOverlay(activeConfigCategory, 120, 32, dungeon.dungeonPlayer3);
return;
case "d4":
- editOverlay(
- activeConfigCategory,
- 120,
- 32,
- dungeon.dungeonPlayer4
- );
+ editOverlay(activeConfigCategory, 120, 32, dungeon.dungeonPlayer4);
return;
case "main":
editOverlay(activeConfigCategory, 1000, 34, main.mainHudPos);
@@ -101,12 +64,7 @@ public class SBHConfig extends Config {
editOverlay(activeConfigCategory, 72, 72, map.miniMapPosition);
return;
case "tracker":
- editOverlay(
- activeConfigCategory,
- 120,
- 70,
- trackers.trackerPosition
- );
+ editOverlay(activeConfigCategory, 120, 70, trackers.trackerPosition);
return;
}
}
@@ -142,10 +100,7 @@ public class SBHConfig extends Config {
public static class Misc {
@Expose
- @ConfigOption(
- name = "Hide Scoreboard",
- desc = "Hides the scoreboard when in skyblock."
- )
+ @ConfigOption(name = "Hide Scoreboard", desc = "Hides the scoreboard when in skyblock.")
@ConfigEditorBoolean
public boolean hideScoreboard = false;
}
@@ -166,10 +121,7 @@ public class SBHConfig extends Config {
public boolean twelveHourClock = false;
@Expose
- @ConfigOption(
- name = "Shift hud with boss",
- desc = "Shifts the hud when bossbar is visible."
- )
+ @ConfigOption(name = "Shift hud with boss", desc = "Shifts the hud when bossbar is visible.")
@ConfigEditorBoolean
public boolean bossShiftHud = true;
@@ -185,18 +137,12 @@ public class SBHConfig extends Config {
public static class RPGHud {
@Expose
- @ConfigOption(
- name = "Show RPG Hud",
- desc = "Allows you to show or hide the RPG Hud."
- )
+ @ConfigOption(name = "Show RPG Hud", desc = "Allows you to show or hide the RPG Hud.")
@ConfigEditorBoolean
public boolean showRpgHud = true;
@Expose
- @ConfigOption(
- name = "RPG Hud Position",
- desc = "Allows you to change the position of the RPG Hud."
- )
+ @ConfigOption(name = "RPG Hud Position", desc = "Allows you to change the position of the RPG Hud.")
@ConfigEditorButton(runnableId = "rpg", buttonText = "Edit")
public Position rpgHudPosition = new Position(1, 1);
}
@@ -209,48 +155,32 @@ public class SBHConfig extends Config {
public boolean ultimateBar = false;
@Expose
- @ConfigOption(
- name = "Hide Ultimate Bar",
- desc = "Hides the custom ultimate bar."
- )
+ @ConfigOption(name = "Hide Ultimate Bar", desc = "Hides the custom ultimate bar.")
@ConfigEditorBoolean
@ConfigAccordionId(id = 2)
public boolean hideUltimateBar = false;
@Expose
- @ConfigOption(
- name = "Bar Position",
- desc = "Change the position of the bar."
- )
+ @ConfigOption(name = "Bar Position", desc = "Change the position of the bar.")
@ConfigEditorButton(runnableId = "ultimate", buttonText = "Edit")
@ConfigAccordionId(id = 2)
public Position barPosition = new Position(0, 50, true, false);
@Expose
- @ConfigOption(
- name = "Bar Loading Color",
- desc = "The color of the bar when its loading."
- )
+ @ConfigOption(name = "Bar Loading Color", desc = "The color of the bar when its loading.")
@ConfigEditorColour
@ConfigAccordionId(id = 2)
public String barLoadColor = "159:0:0:0:255";
@Expose
- @ConfigOption(
- name = "Bar Full Color",
- desc = "The color of the bar when its full."
- )
+ @ConfigOption(name = "Bar Full Color", desc = "The color of the bar when its full.")
@ConfigEditorColour
@ConfigAccordionId(id = 2)
public String barFullColor = "255:0:0:0:255";
@Expose
@ConfigOption(name = "Bar Style", desc = "Change the style of the bar")
- @ConfigEditorDropdown(
- values = {
- "No Notch", "6 Notch", "10 Notch", "12 Notch", "20 Notch"
- }
- )
+ @ConfigEditorDropdown(values = { "No Notch", "6 Notch", "10 Notch", "12 Notch", "20 Notch" })
@ConfigAccordionId(id = 2)
public int barStyle = 2;
@@ -260,10 +190,7 @@ public class SBHConfig extends Config {
public boolean dungeonPlayerAccordion = false;
@Expose
- @ConfigOption(
- name = "Hide Dungeon Players",
- desc = "Allows you to hide the dungeon player hud"
- )
+ @ConfigOption(name = "Hide Dungeon Players", desc = "Allows you to hide the dungeon player hud")
@ConfigEditorBoolean
@ConfigAccordionId(id = 1)
public boolean hideDungeonPlayers = false;
@@ -278,46 +205,31 @@ public class SBHConfig extends Config {
public int dungeonPlayerOpacity = 0;
@Expose
- @ConfigOption(
- name = "Hide Dead Players",
- desc = "Allows you to hide players that are dead or have left."
- )
+ @ConfigOption(name = "Hide Dead Players", desc = "Allows you to hide players that are dead or have left.")
@ConfigEditorBoolean
@ConfigAccordionId(id = 1)
public boolean hideDeadDungeonPlayers = false;
@Expose
- @ConfigOption(
- name = "Player Position 1",
- desc = "Change the position of this dungeon player."
- )
+ @ConfigOption(name = "Player Position 1", desc = "Change the position of this dungeon player.")
@ConfigEditorButton(runnableId = "d1", buttonText = "Edit")
@ConfigAccordionId(id = 1)
public Position dungeonPlayer1 = new Position(5, 5);
@Expose
- @ConfigOption(
- name = "Player Position 2",
- desc = "Change the position of this dungeon player."
- )
+ @ConfigOption(name = "Player Position 2", desc = "Change the position of this dungeon player.")
@ConfigEditorButton(runnableId = "d2", buttonText = "Edit")
@ConfigAccordionId(id = 1)
public Position dungeonPlayer2 = new Position(5, 42);
@Expose
- @ConfigOption(
- name = "Player Position 3",
- desc = "Change the position of this dungeon player."
- )
+ @ConfigOption(name = "Player Position 3", desc = "Change the position of this dungeon player.")
@ConfigEditorButton(runnableId = "d3", buttonText = "Edit")
@ConfigAccordionId(id = 1)
public Position dungeonPlayer3 = new Position(5, 79);
@Expose
- @ConfigOption(
- name = "Player Position 4",
- desc = "Change the position of this dungeon player."
- )
+ @ConfigOption(name = "Player Position 4", desc = "Change the position of this dungeon player.")
@ConfigEditorButton(runnableId = "d4", buttonText = "Edit")
@ConfigAccordionId(id = 1)
public Position dungeonPlayer4 = new Position(5, 116);
@@ -359,10 +271,7 @@ public class SBHConfig extends Config {
public boolean hideArmor = true;
@Expose
- @ConfigOption(
- name = "Hide Animal Hearts",
- desc = "Hides Animal Hearts."
- )
+ @ConfigOption(name = "Hide Animal Hearts", desc = "Hides Animal Hearts.")
@ConfigEditorBoolean
public boolean hideAnimalHearts = true;
}
@@ -386,10 +295,7 @@ public class SBHConfig extends Config {
public boolean showMiniMap = false;
@Expose
- @ConfigOption(
- name = "Mini-Map Position",
- desc = "Allows you to change the position of the Mini-Map."
- )
+ @ConfigOption(name = "Mini-Map Position", desc = "Allows you to change the position of the Mini-Map.")
@ConfigEditorButton(runnableId = "map", buttonText = "Edit")
public Position miniMapPosition = new Position(0, 100, false, false);
@@ -432,18 +338,12 @@ public class SBHConfig extends Config {
public static class Trackers {
@Expose
- @ConfigOption(
- name = "Tracker Position",
- desc = "Allows you to change the position of the Trackers."
- )
+ @ConfigOption(name = "Tracker Position", desc = "Allows you to change the position of the Trackers.")
@ConfigEditorButton(runnableId = "tracker", buttonText = "Edit")
public Position trackerPosition = new Position(-1, 200);
@Expose
- @ConfigOption(
- name = "Hide Tracker",
- desc = "It will still track the data just in case."
- )
+ @ConfigOption(name = "Hide Tracker", desc = "It will still track the data just in case.")
@ConfigEditorBoolean
public boolean hideTracker = false;
}