From 517803db1c0beb54d6d02c1893ab8cb8261cee61 Mon Sep 17 00:00:00 2001 From: ThisIsALegitUsername <73719631+ThisIsALegitUsername@users.noreply.github.com> Date: Tue, 28 Feb 2023 23:32:42 -0500 Subject: [PATCH] effects of mouse --- src/main/java/net/minecraft/client/gui/GuiMainMenu.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/client/gui/GuiMainMenu.java b/src/main/java/net/minecraft/client/gui/GuiMainMenu.java index f0e5bf6e..44072871 100644 --- a/src/main/java/net/minecraft/client/gui/GuiMainMenu.java +++ b/src/main/java/net/minecraft/client/gui/GuiMainMenu.java @@ -21,7 +21,7 @@ public class GuiMainMenu extends GuiScreen { public void drawScreen(final int mouseX, final int mouseY, final float partialTicks) { this.drawDefaultBackground(); this.mc.getTextureManager().bindTexture(new ResourceLocation("eagler:gui/background.jpg")); - Gui.drawModalRectWithCustomSizedTexture(0, 0, 0.0f, 0.0f, this.width, this.height, this.width + 21, this.height + 50); + Gui.drawModalRectWithCustomSizedTexture(-60+mouseX/20, 0+mouseY/20, 0.0f, 0.0f, this.width+60, this.height, this.width + 21, this.height + 50); final String s1 = "Copyright " + EnumChatFormatting.RED + EnumChatFormatting.BOLD + "M" + EnumChatFormatting.RESET + "ojang AB"; this.drawString(Minecraft.getMinecraft().fontRendererObj, s1, this.width - Minecraft.getMinecraft().fontRendererObj.getStringWidth(s1) - 2, this.height - 10, -1); GlUtils.drawCenteredScaledString("" + EnumChatFormatting.AQUA + EnumChatFormatting.BOLD + "Resent", this.width / 2, this.height / 2 - 50, -1, 3f);