aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/options
diff options
context:
space:
mode:
authorKingsMMA <63374258+KingsMMA@users.noreply.github.com>2022-10-22 00:31:07 +1000
committerGitHub <noreply@github.com>2022-10-21 07:31:07 -0700
commit72adbc192fc53cd90408f4382b66310d77e2be2a (patch)
tree9f693b1c2828ee0a68a5107ff42478f93d57611a /src/main/java/io/github/moulberry/notenoughupdates/options
parent78714fc2fddb99ba9f1239d7d0d95837a312cbb8 (diff)
downloadnotenoughupdates-72adbc192fc53cd90408f4382b66310d77e2be2a.tar.gz
notenoughupdates-72adbc192fc53cd90408f4382b66310d77e2be2a.tar.bz2
notenoughupdates-72adbc192fc53cd90408f4382b66310d77e2be2a.zip
Added Powder Grinding Tracker (#263)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/options')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java18
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/LocationEdit.java12
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Mining.java75
3 files changed, 104 insertions, 1 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 a1561658..e18d1d84 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/NEUConfig.java
@@ -197,6 +197,12 @@ public class NEUConfig extends Config {
NotEnoughUpdates.INSTANCE.openGui =
new GuiScreenElementWrapper(new NEUConfigEditor(NotEnoughUpdates.INSTANCE.config, "apis"));
return;
+ case 25:
+ editOverlay(activeConfigCategory, OverlayManager.powderGrindingOverlay, mining.powderGrindingTrackerPosition);
+ return;
+ case 26:
+ OverlayManager.powderGrindingOverlay.reset();
+ return;
default:
System.err.printf("Unknown runnableId = %d in category %s%n", runnableId, activeConfigCategory);
}
@@ -578,6 +584,18 @@ public class NEUConfig extends Config {
public HashMap<Integer, JsonObject> savedEquipment = new HashMap<>();
@Expose
public int magicalPower = 0;
+
+ @Expose
+ public int chestCount = 0;
+
+ @Expose
+ public int openedChestCount = 0;
+
+ @Expose
+ public int mithrilPowderFound = 0;
+
+ @Expose
+ public int gemstonePowderFound = 0;
}
public HiddenLocationSpecific getLocationSpecific() {
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/LocationEdit.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/LocationEdit.java
index 48214481..10e554c9 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/LocationEdit.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/LocationEdit.java
@@ -205,4 +205,16 @@ public class LocationEdit {
)
@ConfigAccordionId(id = 3)
public Position combatPosition = new Position(10, 200);
+
+ @Expose
+ @ConfigOption(
+ name = "Edit Tracker Position",
+ desc = "Change the position of the Powder Grinding Tracker Overlay (chests and gained powder)"
+ )
+ @ConfigEditorButton(
+ runnableId = 25,
+ buttonText = "Edit"
+ )
+ @ConfigAccordionId(id = 9)
+ public Position powderGrindingTrackerPosition = new Position(10, 265);
}
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 727ad329..2568653d 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
@@ -156,7 +156,7 @@ public class Mining {
@Expose
@ConfigOption(
name = "Edit Dwarven Overlay Position",
- desc = "Change the position of the Dwarven Mines information Overlay (commisions, powder & forge statuses)"
+ desc = "Change the position of the Dwarven Mines information Overlay (commissions, powder & forge statuses)"
)
@ConfigEditorButton(
runnableId = 1,
@@ -713,6 +713,79 @@ public class Mining {
)
public int wishingCompassWaypointNames = 0;
+ @ConfigOption(
+ name = "Powder Grinding Tracker",
+ desc = ""
+ )
+ @ConfigEditorAccordion(id = 9)
+ public boolean powderGrindingTrackerAccordion = false;
+
+
+ @Expose
+ @ConfigOption(
+ name = "Enable Tracker",
+ desc = "Show an Overlay with useful information related to Power Grinding"
+ )
+ @ConfigAccordionId(id = 9)
+ @ConfigEditorBoolean
+ public boolean powderGrindingTrackerEnabled = false;
+
+ @Expose
+ @ConfigOption(
+ name = "Tracker Text",
+ desc = "\u00a7eDrag text to change the appearance of the Overlay\n" +
+ "\u00a7rGo to the Crystal Hollows to show this Overlay with useful information"
+ )
+ @ConfigEditorDraggableList(
+ exampleText = {
+ "\u00a73Chests Found: \u00a7a13",
+ "\u00a73Opened Chests: \u00a7a11",
+ "\u00a73Unopened Chests: \u00a7c2",
+ "\u00a73Mithril Powder Found: \u00a726,243",
+ "\u00a73Average Mithril Powder/Chest: \u00a72568",
+ "\u00a73Gemstone Powder Found: \u00a7d6,243",
+ "\u00a73Average Gemstone Powder/Chest: \u00a7d568"
+ }
+ )
+ @ConfigAccordionId(id = 9)
+ public List<Integer> powderGrindingTrackerText = new ArrayList<>(Arrays.asList(0, 1, 2, 3, 4, 5, 6));
+
+ @Expose
+ @ConfigOption(
+ name = "Edit Tracker Position",
+ desc = "Change the position of the Powder Grinding Tracker Overlay (chests and gained powder)"
+ )
+ @ConfigEditorButton(
+ runnableId = 25,
+ buttonText = "Edit"
+ )
+ @ConfigAccordionId(id = 9)
+ public Position powderGrindingTrackerPosition = new Position(10, 265);
+
+ @Expose
+ @ConfigOption(
+ name = "Tracker Reset Mode",
+ desc = "When the Powder Grinding Tracker should be reset"
+ )
+ @ConfigEditorDropdown(
+ values = {"On World Change", "On Restart", "Never"},
+ initialIndex = 2
+ )
+ @ConfigAccordionId(id = 9)
+ public int powderGrindingTrackerResetMode = 2;
+
+ @Expose
+ @ConfigOption(
+ name = "Reset Tracker",
+ desc = "Reset all stats for Powder Grinding Tracker"
+ )
+ @ConfigEditorButton(
+ runnableId = 26,
+ buttonText = "Reset"
+ )
+ @ConfigAccordionId(id = 9)
+ public int resetPowderGrindingTracker = 0;
+
@Expose
@ConfigOption(
name = "Puzzler Solver",