diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-04-24 16:00:37 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-04-24 16:00:37 +0200 |
commit | 29156d83c4213e319149fa5e0a926dd913404528 (patch) | |
tree | 0206ba9a7dbbdcf4bff2104e2a37a58cdb67fcde /src/main/java/io/polyfrost/oneconfig/gui/SideBar.java | |
parent | 26ab050b650cfe27541c6fe1f6aa4d1cf3015204 (diff) | |
download | OneConfig-29156d83c4213e319149fa5e0a926dd913404528.tar.gz OneConfig-29156d83c4213e319149fa5e0a926dd913404528.tar.bz2 OneConfig-29156d83c4213e319149fa5e0a926dd913404528.zip |
close + hud button
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/gui/SideBar.java')
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/gui/SideBar.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/gui/SideBar.java b/src/main/java/io/polyfrost/oneconfig/gui/SideBar.java index 7f84049..fd8f92e 100644 --- a/src/main/java/io/polyfrost/oneconfig/gui/SideBar.java +++ b/src/main/java/io/polyfrost/oneconfig/gui/SideBar.java @@ -7,6 +7,9 @@ import io.polyfrost.oneconfig.gui.pages.ModsPage; import io.polyfrost.oneconfig.lwjgl.RenderManager; import io.polyfrost.oneconfig.lwjgl.font.Fonts; import io.polyfrost.oneconfig.utils.MathUtils; +import io.polyfrost.oneconfig.utils.TickDelay; +import net.minecraft.client.Minecraft; +import scala.collection.parallel.ParIterableLike; import java.util.ArrayList; import java.util.List; @@ -26,9 +29,9 @@ public class SideBar { btnList.add(new BasicButton(192, 36, "Screenshots", "/assets/oneconfig/textures/share.png", null, -3, BasicButton.ALIGNMENT_LEFT)); btnList.add(new BasicButton(192, 36, "HUD Settings", "/assets/oneconfig/textures/share.png", null, -3, BasicButton.ALIGNMENT_LEFT)); btnList.add(new BasicButton(192, 36, "General", "/assets/oneconfig/textures/share.png", null, -3, BasicButton.ALIGNMENT_LEFT)); - btnList.add(new BasicButton(192, 36, "Close", "/assets/oneconfig/textures/share.png", null, -1, BasicButton.ALIGNMENT_LEFT)); + btnList.add(new BasicButton(192, 36, "Close", "/assets/oneconfig/textures/share.png", null, -1, BasicButton.ALIGNMENT_LEFT, () -> Minecraft.getMinecraft().displayGuiScreen(null))); btnList.add(new BasicButton(192, 36, "Minimize", "/assets/oneconfig/textures/share.png", null, -1, BasicButton.ALIGNMENT_LEFT)); - btnList.add(new BasicButton(192, 36, "Edit HUD", "/assets/oneconfig/textures/share.png", null, 0, BasicButton.ALIGNMENT_LEFT)); + btnList.add(new BasicButton(192, 36, "Edit HUD", "/assets/oneconfig/textures/share.png", null, 0, BasicButton.ALIGNMENT_LEFT, () -> Minecraft.getMinecraft().displayGuiScreen(new HudGui()))); } public void draw(long vg, int x, int y) { |