aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-05 15:36:37 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-05 15:36:37 +0200
commit69564669dba7bd147d94d4dd68e32ab07bc64ce0 (patch)
treec70854b1e0ab22e7e678d665cec3ec5248336657
parentcf39ee9e242bccecaff8444628518a566d250ae9 (diff)
downloadskyhanni-69564669dba7bd147d94d4dd68e32ab07bc64ce0.tar.gz
skyhanni-69564669dba7bd147d94d4dd68e32ab07bc64ce0.tar.bz2
skyhanni-69564669dba7bd147d94d4dd68e32ab07bc64ce0.zip
added toggle for platform index number
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/DevConfig.java (renamed from src/main/java/at/hannibal2/skyhanni/config/features/DevData.java)11
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ParkourHelper.kt6
2 files changed, 12 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/DevData.java b/src/main/java/at/hannibal2/skyhanni/config/features/DevConfig.java
index 961eefd4b..3a54bfff7 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/DevData.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/DevConfig.java
@@ -5,7 +5,7 @@ import com.google.gson.annotations.Expose;
import io.github.moulberry.moulconfig.annotations.*;
import org.lwjgl.input.Keyboard;
-public class DevData {
+public class DevConfig {
@Expose
@ConfigOption(name = "Repo Auto Update", desc = "Update the repository on every startup.")
@@ -69,7 +69,7 @@ public class DevData {
@ConfigAccordionId(id = 0)
public boolean highlightMissingRepo = false;
- @ConfigOption(name = "Waypoints", desc = "")
+ @ConfigOption(name = "Parcour Waypoints", desc = "")
@Accordion
@Expose
public Waypoints waypoint = new Waypoints();
@@ -77,7 +77,7 @@ public class DevData {
public static class Waypoints {
@Expose
- @ConfigOption(name = "Save Hotkey", desc = "Saves block location to the waypoints list and copies everything to your clipboard.")
+ @ConfigOption(name = "Save Hotkey", desc = "Saves block location to a temporarily parkour and copies everything to your clipboard.")
@ConfigEditorKeybind(defaultKey = Keyboard.KEY_NONE)
public int saveKey = Keyboard.KEY_NONE;
@@ -86,6 +86,11 @@ public class DevData {
@ConfigEditorKeybind(defaultKey = Keyboard.KEY_NONE)
public int deleteKey = Keyboard.KEY_NONE;
+ @Expose
+ @ConfigOption(name = "Show Platform Number", desc = "Show the index number over the platform for every parkour.")
+ @ConfigEditorBoolean
+ public boolean showPlatformNumber = false;
+
}
@Expose
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ParkourHelper.kt b/src/main/java/at/hannibal2/skyhanni/utils/ParkourHelper.kt
index 045abbf58..531cc59b1 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/ParkourHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/ParkourHelper.kt
@@ -111,8 +111,10 @@ class ParkourHelper(
} else axisAlignedBB(location)
event.drawFilledBoundingBox(aabb, colorForIndex(index), 1f)
- if (!isMovingPlattform) {
- event.drawString(location.offsetCenter().add(0, 1, 0), "§a§l$index", seeThroughBlocks = true)
+ if (SkyHanniMod.feature.dev.waypoint.showPlatformNumber) {
+ if (!isMovingPlatform) {
+ event.drawString(location.offsetCenter().add(0, 1, 0), "§a§l$index", seeThroughBlocks = true)
+ }
}
}
} catch (e: Throwable) {