aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-13 21:23:39 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-13 21:23:39 +0200
commitb6fc6b825455bd2ea3237463044e4e6c53fa2c5a (patch)
tree0088086f971e4d14ce8167f112ef395de87114fc
parentd246278dfe0ad7816d5a8db6ff04c1e8501e8125 (diff)
downloadOneConfig-b6fc6b825455bd2ea3237463044e4e6c53fa2c5a.tar.gz
OneConfig-b6fc6b825455bd2ea3237463044e4e6c53fa2c5a.tar.bz2
OneConfig-b6fc6b825455bd2ea3237463044e4e6c53fa2c5a.zip
oops
-rw-r--r--gradle.properties2
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/gradle.properties b/gradle.properties
index 66eee64..c2204a3 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,6 +1,6 @@
mod_name = OneConfig
mod_id = oneconfig
-mod_version = 0.1.0-alpha12
+mod_version = 0.1.0-alpha13
essential.defaults.loom=0
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java b/src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java
index 8ec270c..fdc69bf 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java
@@ -50,7 +50,7 @@ public abstract class Page {
float scroll = scrollAnimation == null ? scrollTarget : scrollAnimation.get();
final float scrollBarLength = (728f / maxScroll) * 728f;
Scissor scissor = ScissorManager.scissor(vg, x, y + scissorOffset, x + 1056, y + 728 - scissorOffset);
- Scissor inputScissor = InputUtils.blockInputArea(x, y, x + 1056, y + scissorOffset);
+ //Scissor inputScissor = InputUtils.blockInputArea(x, y, x + 1056, y + scissorOffset);
int dWheel = Mouse.getDWheel();
if (dWheel != 0) {
scrollTarget += dWheel;
@@ -64,7 +64,7 @@ public abstract class Page {
if (maxScroll <= 728) {
draw(vg, x, y);
ScissorManager.resetScissor(vg, scissor);
- InputUtils.stopBlock(inputScissor);
+ //InputUtils.stopBlock(inputScissor);
return;
}
draw(vg, x, (int) (y + scroll));
@@ -73,7 +73,7 @@ public abstract class Page {
}
ScissorManager.resetScissor(vg, scissor);
- InputUtils.stopBlock(inputScissor);
+ //InputUtils.stopBlock(inputScissor);
if (!(scrollBarLength > 727f)) {
final float scrollBarY = (scroll / maxScroll) * 720f;
final boolean isMouseDown = Mouse.isButtonDown(0);