From bbf6b88ed3c1ebf49a8fa69d6ca02e09c321be95 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Tue, 29 Sep 2026 18:34:24 +0200 Subject: [PATCH] Put settings second and the HUD editor last in the sidebar The order is now mods, settings, cosmetics, HUD editor. Co-Authored-By: Claude Opus 5.5 --- .../java/org/saturnclient/ui/components/Sidebar.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/saturnclient/ui/components/Sidebar.java b/src/main/java/org/saturnclient/ui/components/Sidebar.java index 1aabfae..cedfc18 100644 --- a/src/main/java/org/saturnclient/ui/components/Sidebar.java +++ b/src/main/java/org/saturnclient/ui/components/Sidebar.java @@ -22,9 +22,9 @@ public class Sidebar extends Element { // Values for the constructor's `active` public static final int MODS = 0; - public static final int COSMETICS = 1; - public static final int HUD_EDITOR = 2; - public static final int SETTINGS = 3; + public static final int SETTINGS = 1; + public static final int COSMETICS = 2; + public static final int HUD_EDITOR = 3; private static final int LOGO = 32; private static final int BUTTON = 44; @@ -35,11 +35,12 @@ public class Sidebar extends Element { private record Item(IdentifierRef icon, Runnable onClick) { } + // In the order of the constants above private final Item[] items = { new Item(Textures.ICON_MODS, () -> Providers.saturn.getClient().setScreen(new ModMenu())), + new Item(Textures.ICON_SETTINGS, () -> Providers.saturn.getClient().setScreen(new ClientSettings())), new Item(Textures.ICON_COSMETICS, () -> Providers.saturn.getClient().setScreen(new CosmeticsMenu())), new Item(Textures.ICON_HUD_EDITOR, () -> Providers.saturn.getClient().setScreen(new HudEditor())), - new Item(Textures.ICON_SETTINGS, () -> Providers.saturn.getClient().setScreen(new ClientSettings())), }; private final int active;