From a971fa15b4d88fa9385042afba8f0c783d472157 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Tue, 31 May 2022 18:35:04 +0200 Subject: more sidebar --- src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java | 4 +--- src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java | 1 + src/main/java/cc/polyfrost/oneconfig/utils/ColorUtils.java | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main/java/cc/polyfrost/oneconfig') diff --git a/src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java b/src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java index 9ab6f68..dfc5e16 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/profiles/Profiles.java @@ -43,9 +43,7 @@ public class Profiles { } public static File getProfileDir(String profile) { - File folder = new File("OneConfig/profiles"); - folder.mkdirs(); - return new File(folder, profile); + return new File(new File("OneConfig/profiles"), profile); } public static File getProfileFile(String file) { diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java b/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java index 2c2abd8..c9699f7 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java @@ -45,6 +45,7 @@ public class SideBar { buttons.get(3).draw(vg, x + 16, y + 228); buttons.get(4).draw(vg, x + 16, y + 264); buttons.get(5).draw(vg, x + 16, y + 300); + RenderManager.drawText(vg, "PERSONALIZATION", x + 16, y + 362, OneConfigConfig.WHITE, 12, Fonts.SEMIBOLD); buttons.get(6).draw(vg, x + 16, y + 376); buttons.get(7).draw(vg, x + 16, y + 412); buttons.get(8).draw(vg, x + 16, y + 448); diff --git a/src/main/java/cc/polyfrost/oneconfig/utils/ColorUtils.java b/src/main/java/cc/polyfrost/oneconfig/utils/ColorUtils.java index b980642..127b200 100644 --- a/src/main/java/cc/polyfrost/oneconfig/utils/ColorUtils.java +++ b/src/main/java/cc/polyfrost/oneconfig/utils/ColorUtils.java @@ -120,7 +120,6 @@ public final class ColorUtils { } private static float smooth(float current, float min, float max, boolean moveToFinal, float speed) { - if(min > max) System.out.println(min * 255 + " " + max * 255); current = MathUtils.easeOut(current, moveToFinal ? max : min, speed); if (current < min) { current = min; -- cgit