aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornopo <nopotheemail@gmail.com>2023-02-14 16:05:38 +1100
committernopo <nopotheemail@gmail.com>2023-02-14 16:05:38 +1100
commitcf0b6fc6c7ac827f66488a126ad94b0b540ae5be (patch)
tree2418fc6026b4b7008912083ab86f4a807684ef3c
parenteea3dd8dcb3e754072a9ec050c9db31326d6dda9 (diff)
downloadNotEnoughUpdates-cf0b6fc6c7ac827f66488a126ad94b0b540ae5be.tar.gz
NotEnoughUpdates-cf0b6fc6c7ac827f66488a126ad94b0b540ae5be.tar.bz2
NotEnoughUpdates-cf0b6fc6c7ac827f66488a126ad94b0b540ae5be.zip
Move config option
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/TooltipTextScrolling.java2
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java8
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/TooltipTweaks.java9
3 files changed, 10 insertions, 9 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/TooltipTextScrolling.java b/src/main/java/io/github/moulberry/notenoughupdates/TooltipTextScrolling.java
index 3261cc17..21fa64b7 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/TooltipTextScrolling.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/TooltipTextScrolling.java
@@ -53,7 +53,7 @@ public class TooltipTextScrolling {
@SubscribeEvent
public void onMouse(GuiScreenEvent.MouseInputEvent.Pre event) {
- if (!NotEnoughUpdates.INSTANCE.config.misc.scrollableTooltips) return;
+ if (!NotEnoughUpdates.INSTANCE.config.tooltipTweaks.scrollableTooltips) return;
if (Mouse.getEventDWheel() < 0) {
scrollOffset = Math.max(
lastRenderedTooltip == null ? 0 : -Math.max(lastRenderedTooltip.size() - 1, 0)
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java
index 6b524dd0..47e51eec 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/Misc.java
@@ -311,12 +311,4 @@ public class Misc {
@ConfigEditorBoolean
public boolean dungeonGroupsPV = true;
- @Expose
- @ConfigOption(
- name = "Scrollable Tooltips",
- desc = "Make tooltips text scrollable, by making some text lines disappear when using the mouse while hovering over an item."
- )
- @ConfigEditorBoolean
- public boolean scrollableTooltips = false;
-
}
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/TooltipTweaks.java b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/TooltipTweaks.java
index db300520..29fc24c1 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/TooltipTweaks.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/options/seperateSections/TooltipTweaks.java
@@ -166,6 +166,15 @@ public class TooltipTweaks {
@Expose
@ConfigOption(
+ name = "Scrollable Tooltips",
+ desc = "Make tooltips text scrollable, by making some text lines disappear when using the mouse while hovering over an item."
+ )
+ @ConfigEditorBoolean
+ public boolean scrollableTooltips = false;
+
+
+ @Expose
+ @ConfigOption(
name = "Expand Pet Exp Requirement",
desc = "Show which the full amount of pet xp required"
)