From 973e6bd2212e798f685ec0b5e445142b0c3d1422 Mon Sep 17 00:00:00 2001 From: ThisIsALegitUsername <73719631+ThisIsALegitUsername@users.noreply.github.com> Date: Sun, 9 Apr 2023 12:36:27 -0600 Subject: [PATCH] i give up lol --- .../resent/visual/ui/clickgui/rewrite/ClickGuiRewrite.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/dev/resent/visual/ui/clickgui/rewrite/ClickGuiRewrite.java b/src/main/java/dev/resent/visual/ui/clickgui/rewrite/ClickGuiRewrite.java index f31e3662..792448b3 100644 --- a/src/main/java/dev/resent/visual/ui/clickgui/rewrite/ClickGuiRewrite.java +++ b/src/main/java/dev/resent/visual/ui/clickgui/rewrite/ClickGuiRewrite.java @@ -114,11 +114,12 @@ public class ClickGuiRewrite extends GuiScreen { GlStateManager.popMatrix(); /* !------------- HOME/MODULE (SOON) --------------------! */ - //Draw module button + if(part == "Home") { + //RenderUtils.drawRoundedRect(x+width-15, y+130+scrollOffset*25/-height, x+width-5, y+150+scrollOffset*25/-height, 4, -1); for (Mod m : Resent.INSTANCE.modManager.modules) { if (!m.isAdmin() && m.getName().toLowerCase().startsWith(searchString.toLowerCase()) && selectedMod == null) { - if (y+125+offset+scrollOffset > y+95 && y+175+offset+scrollOffset < y+height && part == "Home") { + if (y+125+offset+scrollOffset > y+95 && y+175+offset+scrollOffset < y+height) { //Body RenderUtils.drawRoundedRect(x+80, y+125+offset+scrollOffset, x+width-20, y+175+offset+scrollOffset, 16, secondaryColor); @@ -145,6 +146,7 @@ public class ClickGuiRewrite extends GuiScreen { offset += 60; } } + } /* !------------- SETTINGS ----------------! */