diff --git a/src/main/java/net/silentclient/client/cosmetics/gui/OutfitsGui.java b/src/main/java/net/silentclient/client/cosmetics/gui/OutfitsGui.java index 7ad00a4..09368a9 100644 --- a/src/main/java/net/silentclient/client/cosmetics/gui/OutfitsGui.java +++ b/src/main/java/net/silentclient/client/cosmetics/gui/OutfitsGui.java @@ -44,9 +44,10 @@ public class OutfitsGui extends SilentScreen { } else { MenuBlurUtils.loadBlur(); } - int width = 250; - int x = this.width / 2 - 125; - int y = this.height / 2 - 100; + int width = 255; + int height = 200; + int x = this.width / 2 - (width / 2); + int y = this.height / 2 - (height / 2); this.buttonList.add(new IconButton(0, x + width - 14 - 3, y + 3, 14, 14, 8, 8, new ResourceLocation("silentclient/icons/exit.png"))); } @@ -60,10 +61,10 @@ public class OutfitsGui extends SilentScreen { } else { MenuBlurUtils.renderBackground(this); } - int width = 250; + int width = 255; int height = 200; - int x = this.width / 2 - 125; - int y = this.height / 2 - 100; + int x = this.width / 2 - (width / 2); + int y = this.height / 2 - (height / 2); RenderUtil.drawRoundedRect(x, y, width, height, 4, Theme.backgroundColor().getRGB()); Client.getInstance().getSilentFontRenderer().drawString(x + 3, y + 3, "Outfits", 14, SilentFontRenderer.FontType.TITLE); super.drawScreen(mouseX, mouseY, partialTicks); @@ -72,7 +73,7 @@ public class OutfitsGui extends SilentScreen { ScaledResolution r = new ScaledResolution(Minecraft.getMinecraft()); int s = r.getScaleFactor(); int listHeight = height - 20; - int translatedY = r.getScaledHeight() - 20 - 20 - listHeight; + int translatedY = r.getScaledHeight() - y - 20 - listHeight; GL11.glScissor(0 * s, translatedY * s, this.width * s, listHeight * s); int outfitX = x + 3; float outfitY = (int) (y + 20 - scrollAnimation.getValue()); @@ -205,10 +206,10 @@ public class OutfitsGui extends SilentScreen { @Override protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws IOException { super.mouseClicked(mouseX, mouseY, mouseButton); - int width = 250; + int width = 255; int height = 200; - int x = this.width / 2 - 125; - int y = this.height / 2 - 100; + int x = this.width / 2 - (width / 2); + int y = this.height / 2 - (height / 2); int outfitX = x + 3; float outfitY = (int) (y + 20 - scrollAnimation.getValue()); int outfitIndex = 0;