From bcdb9ed93960b972d137de17ef0253d3e83deb38 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Sun, 12 Jun 2022 20:30:06 +0200 Subject: some small fixes --- src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/pages/Page.java') 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; } -- cgit