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:58:55 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-04 13:58:55 +0200
commitbc48ed611da2ee666651919cfcc4c7046bcede0a (patch)
treeb08d5bd87382f8e3329236df9457847c6b2729fc /src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java
parent8df18aacd08a0b6caf612a31d578dd6e6d5fa31a (diff)
downloadOneConfig-bc48ed611da2ee666651919cfcc4c7046bcede0a.tar.gz
OneConfig-bc48ed611da2ee666651919cfcc4c7046bcede0a.tar.bz2
OneConfig-bc48ed611da2ee666651919cfcc4c7046bcede0a.zip
button test page
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java b/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java
index bd449cf..050d8dd 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/SideBar.java
@@ -10,6 +10,7 @@ import cc.polyfrost.oneconfig.gui.pages.ModsPage;
import cc.polyfrost.oneconfig.lwjgl.RenderManager;
import cc.polyfrost.oneconfig.lwjgl.font.Fonts;
import cc.polyfrost.oneconfig.lwjgl.image.SVGs;
+import cc.polyfrost.oneconfig.test.ButtonTestPage;
import cc.polyfrost.oneconfig.utils.GuiUtils;
import cc.polyfrost.oneconfig.utils.color.ColorPalette;
@@ -40,11 +41,12 @@ public class SideBar {
public SideBar() {
buttons.get(0).setClickAction(new CreditsPage());
buttons.get(2).setClickAction(new ModsPage());
+ buttons.get(8).setClickAction(new ButtonTestPage());
HUDButton.setClickAction(() -> GuiUtils.displayScreen(new HudGui()));
CloseButton.setClickAction(GuiUtils::closeScreen);
- for (int i = 0; i < buttons.size(); i++) {
- if (i == 0 || i == 2) continue;
- buttons.get(i).disable(true);
+ for (BasicButton button : buttons) {
+ if (button.hasClickAction()) continue;
+ button.disable(true);
}
}