aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/gui/pages
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-12 20:30:06 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-12 20:30:06 +0200
commitbcdb9ed93960b972d137de17ef0253d3e83deb38 (patch)
tree012bb702dcd0faf967e71c0caf1f7793949f03eb /src/main/java/cc/polyfrost/oneconfig/gui/pages
parent2f9d500c97291cdaa09b0f3afc96551e675280fe (diff)
downloadOneConfig-bcdb9ed93960b972d137de17ef0253d3e83deb38.tar.gz
OneConfig-bcdb9ed93960b972d137de17ef0253d3e83deb38.tar.bz2
OneConfig-bcdb9ed93960b972d137de17ef0253d3e83deb38.zip
some small fixes
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/pages')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/pages/ModsPage.java2
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/pages/ModsPage.java b/src/main/java/cc/polyfrost/oneconfig/gui/pages/ModsPage.java
index 10852ab..eff9b35 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/pages/ModsPage.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/pages/ModsPage.java
@@ -55,7 +55,7 @@ public class ModsPage extends Page {
}
}
}
- size = iY + 119;
+ size = iY - y + 135;
if (iX == x + 16 && iY == y + 72) {
RenderManager.drawText(vg, "Looks like there is nothing here. Try another category?", x + 16, y + 72, Colors.WHITE_60, 14f, Fonts.MEDIUM);
}
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 fff9482..17f9498 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java
@@ -17,14 +17,13 @@ import org.lwjgl.input.Mouse;
public abstract class Page {
protected final String title;
protected Animation scrollAnimation;
- private final ColorAnimation colorAnimation = new ColorAnimation(new ColorPalette(Colors.TRANSPARENT, Colors.GRAY_400_60, Colors.GRAY_400_60));
+ private final ColorAnimation colorAnimation = new ColorAnimation(new ColorPalette(Colors.TRANSPARENT, Colors.GRAY_400_60, Colors.GRAY_400_60), 200);
protected float scrollTarget;
private long scrollTime;
private boolean mouseWasDown, dragging;
private float yStart;
public Page(String title) {
- colorAnimation.setSpeed(200);
this.title = title;
}