From a8f824ba5cc99993ac292648fba2967eaa330d99 Mon Sep 17 00:00:00 2001 From: Bella Date: Tue, 14 Jan 2020 08:46:55 -0500 Subject: [PATCH] comment testing code --- .../zeroeightsix/kami/gui/kami/KamiGUI.java | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/main/java/me/zeroeightsix/kami/gui/kami/KamiGUI.java b/src/main/java/me/zeroeightsix/kami/gui/kami/KamiGUI.java index 98d82e0df..5aa26781e 100644 --- a/src/main/java/me/zeroeightsix/kami/gui/kami/KamiGUI.java +++ b/src/main/java/me/zeroeightsix/kami/gui/kami/KamiGUI.java @@ -3,9 +3,7 @@ package me.zeroeightsix.kami.gui.kami; import com.mojang.realmsclient.gui.ChatFormatting; import me.zeroeightsix.kami.KamiMod; import me.zeroeightsix.kami.command.Command; -import me.zeroeightsix.kami.gui.kami.component.ActiveModules; -import me.zeroeightsix.kami.gui.kami.component.Radar; -import me.zeroeightsix.kami.gui.kami.component.SettingsPanel; +import me.zeroeightsix.kami.gui.kami.component.*; import me.zeroeightsix.kami.gui.kami.theme.kami.KamiTheme; import me.zeroeightsix.kami.gui.rgui.GUI; import me.zeroeightsix.kami.gui.rgui.component.container.use.Frame; @@ -197,11 +195,25 @@ public class KamiGUI extends GUI { /* Testing */ + /* frame = new Frame(getTheme(), new Stretcherlayout(1), "Info2"); frame.setCloseable(false); frame.setPinneable(true); // Label information2 = new Label(""); EnumButton theme = new EnumButton("Theme", new String[] {"Modern", "Modern2", "Kami", "Kami Blue", "Custom"}); + ColorizedCheckButton checkButton = new ColorizedCheckButton("Button"); +// checkButton.addTickListener(() -> { +// if (checkButton.isFocused()) { +// Command.sendChatMessage("focused"); +// } +// else if (checkButton.isHovered()) { +// Command.sendChatMessage("hovered"); +// } +// else if (checkButton.isToggled()) { +// Command.sendChatMessage("toggled"); +// } +// }); + // information.setShadow(true); // information2.addTickListener(() -> { // information2.setText(""); @@ -209,10 +221,11 @@ public class KamiGUI extends GUI { // information2.addLine("\u00A7b" + Math.round(LagCompensator.INSTANCE.getTickRate()) + Command.SECTION_SIGN + "3 tps"); // information2.addLine("\u00A7b" + Minecraft.debugFPS + Command.SECTION_SIGN + "3 fps"); // }); - frame.addChild(theme); + frame.addChild(theme, checkButton); // information2.setFontRenderer(fontRenderer); frames.add(frame); - + */ + /* Information Overlay */