diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-12 20:30:06 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-12 20:30:06 +0200 |
commit | bcdb9ed93960b972d137de17ef0253d3e83deb38 (patch) | |
tree | 012bb702dcd0faf967e71c0caf1f7793949f03eb /src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java | |
parent | 2f9d500c97291cdaa09b0f3afc96551e675280fe (diff) | |
download | OneConfig-bcdb9ed93960b972d137de17ef0253d3e83deb38.tar.gz OneConfig-bcdb9ed93960b972d137de17ef0253d3e83deb38.tar.bz2 OneConfig-bcdb9ed93960b972d137de17ef0253d3e83deb38.zip |
some small fixes
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |