aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2022-11-28 23:10:43 +0100
committerGitHub <noreply@github.com>2022-11-28 23:10:43 +0100
commitaec3ef4836160068e3b6a822a0abfa532650aa7d (patch)
tree8f72b4f46c2a7777b9c15393cbec322db009c493 /src/main
parent7b72c468816b6334b2e7fe16c629afeeffeaec2e (diff)
downloadNotEnoughUpdates-aec3ef4836160068e3b6a822a0abfa532650aa7d.tar.gz
NotEnoughUpdates-aec3ef4836160068e3b6a822a0abfa532650aa7d.tar.bz2
NotEnoughUpdates-aec3ef4836160068e3b6a822a0abfa532650aa7d.zip
Added Overlaystyle option to powder grinding tracker (#448)
Co-authored-by: nopo <nopotheemail@gmail.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Mining.java12
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/OverlayManager.java21
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/MiningPage.java4
3 files changed, 27 insertions, 10 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Mining.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Mining.java
index 43273c3d..b82b44c2 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Mining.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Mining.java
@@ -735,7 +735,6 @@ public class Mining {
@ConfigEditorAccordion(id = 9)
public boolean powderGrindingTrackerAccordion = false;
-
@Expose
@ConfigOption(
name = "Enable Tracker",
@@ -770,6 +769,17 @@ public class Mining {
@Expose
@ConfigOption(
+ name = "Overlay Style",
+ desc = "Change the style of the Powder Grinding Tracker information Overlay"
+ )
+ @ConfigEditorDropdown(
+ values = {"Background", "No Shadow", "Shadow", "Full Shadow"}
+ )
+ @ConfigAccordionId(id = 9)
+ public int powderGrindingTrackerOverlayStyle = 0;
+
+ @Expose
+ @ConfigOption(
name = "Tracker Reset Mode",
desc = "When the Powder Grinding Tracker should be reset"
)
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/OverlayManager.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/OverlayManager.java
index edb86337..a8b7112f 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/OverlayManager.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/OverlayManager.java
@@ -109,13 +109,20 @@ public class OverlayManager {
"\u00a73Gemstone Powder Found: \u00a7d6,243",
"\u00a73Average Gemstone Powder/Chest: \u00a7d568"
);
- powderGrindingOverlay = new PowderGrindingOverlay(NotEnoughUpdates.INSTANCE.config.mining.powderGrindingTrackerPosition, () -> {
- List<String> strings = new ArrayList<>();
- for (int i : NotEnoughUpdates.INSTANCE.config.mining.powderGrindingTrackerText) {
- if (i >= 0 && i < powderGrindingDummy.size()) strings.add(powderGrindingDummy.get(i));
- }
- return strings;
- }, () -> TextOverlayStyle.BACKGROUND);
+ powderGrindingOverlay =
+ new PowderGrindingOverlay(NotEnoughUpdates.INSTANCE.config.mining.powderGrindingTrackerPosition, () -> {
+ List<String> strings = new ArrayList<>();
+ for (int i : NotEnoughUpdates.INSTANCE.config.mining.powderGrindingTrackerText) {
+ if (i >= 0 && i < powderGrindingDummy.size()) strings.add(powderGrindingDummy.get(i));
+ }
+ return strings;
+ }, () -> {
+ int style = NotEnoughUpdates.INSTANCE.config.mining.powderGrindingTrackerOverlayStyle;
+ if (style >= 0 && style < TextOverlayStyle.values().length) {
+ return TextOverlayStyle.values()[style];
+ }
+ return TextOverlayStyle.BACKGROUND;
+ });
List<String> farmingDummy = Lists.newArrayList(
"\u00a7bCounter: \u00a7e37,547,860",
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/MiningPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/MiningPage.java
index d3b43e20..c8ec09d3 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/MiningPage.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/MiningPage.java
@@ -575,7 +575,7 @@ public class MiningPage extends GuiProfileViewerPage {
"§7Level " + luckofcave + EnumChatFormatting.DARK_GRAY + "/45",
"",
"§7Increases the chance for you to",
- "§7trigger rare occurrences im",
+ "§7trigger rare occurrences in",
"§2Dwarven Mines " + EnumChatFormatting.GRAY + "by " + EnumChatFormatting.GREEN + luckofcaveStat + "%§7.",
"",
EnumChatFormatting.GRAY + "Cost",
@@ -589,7 +589,7 @@ public class MiningPage extends GuiProfileViewerPage {
"§7Level " + luckofcave + EnumChatFormatting.DARK_GRAY + "/45",
"",
"§7Increases the chance for you to",
- "§7trigger rare occurrences im",
+ "§7trigger rare occurrences in",
"§2Dwarven Mines " + EnumChatFormatting.GRAY + "by " + EnumChatFormatting.GREEN + luckofcaveStat + "%§7."
),
45