aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-04 13:36:46 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-04 13:36:46 +0200
commita4d135ebb02c6fea87c8f9275a8a07338999d84b (patch)
treea8bafe2e44307255e9c9eef14a9baf6d26e37c73 /src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java
parent07741d92fa6ea636b8292bb35706c25e5e6a72cc (diff)
downloadOneConfig-a4d135ebb02c6fea87c8f9275a8a07338999d84b.tar.gz
OneConfig-a4d135ebb02c6fea87c8f9275a8a07338999d84b.tar.bz2
OneConfig-a4d135ebb02c6fea87c8f9275a8a07338999d84b.zip
OC-66 done
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java b/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java
index 3f880a0..bd449cf 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java
@@ -54,11 +54,11 @@ public class SideBar {
if (button.equals(buttons.get(selected))) break;
buttons.get(selected).setColorPalette(ColorPalette.TERTIARY);
moveAnimation = new EaseInOutQuart(300, buttons.get(selected).y, button.y, false);
- sizeAnimation = new EaseInQuartReversed(300, 36, 72, false);
+ sizeAnimation = new EaseInQuartReversed(300, 36, 54, false);
selected = buttons.indexOf(button);
}
if (moveAnimation != null) {
- RenderManager.drawRoundedRect(vg, x + 16, moveAnimation.get(), 192, sizeAnimation.get(), OneConfigConfig.PRIMARY_600, 12);
+ RenderManager.drawRoundedRect(vg, x + 16, moveAnimation.get() - (sizeAnimation.get() - 36) / 2f, 192, sizeAnimation.get(0), OneConfigConfig.PRIMARY_600, 12);
if (moveAnimation.isFinished() && sizeAnimation.isFinished()) {
moveAnimation = null;
sizeAnimation = null;