@TheAwesome98-Real opened this Issue on June 28th 2021

Before posting, please make sure that this hasn't already been reported by someone else.

Description

Unrelated to #434! #434 occurred recently, where this has been going on for a long time. this also only happens in pause.
The Wurst Options button sits on top of the Mods button in the pause menu.

Steps To Reproduce

Please make a list of steps to reproduce the problem (ideally from a fresh Wurst installation):

  1. Install ModMenu
  2. go into a world
  3. Pause
  4. no mods button

Screenshots / Videos (Optional)

TODO

@sudofox commented on September 9th 2021

This seems to be overriding other buttons in the pause menu as well, such as "Send feedback" etc. They become visible again when you disable Wurst through the Statistics menu.

@sudofox commented on October 14th 2021

This is particularly annoying recently as I can't reconfigure any of my mods in-game - I have to save and close my world each time I want to change any settings unless the particular mod has a menu hotkey.

@sudofox commented on October 15th 2021

This is how ModMenu handles it: it checks for the bug report button and adds itself after that, modifying the spacing.

https://github.com/TerraformersMC/ModMenu/blob/71c32a758b817af66cb3de491f91bb9b82451f7d/src/main/java/com/terraformersmc/modmenu/event/ModMenuEventHandler.java#L79

Wurst actually removes those two buttons for whatever reason, so Mod Menu button isn't being added at all.

https://github.com/Wurst-Imperium/Wurst7/blob/9abdf8d2518b5cc7a2dc42698ca8c2c792a07dd8/src/main/java/net/wurstclient/mixin/GameMenuScreenMixin.java#L65

@sudofox commented on October 15th 2021

Here's a temporary fix to get you going for now:

diff --git a/src/main/java/net/wurstclient/mixin/GameMenuScreenMixin.java b/src/main/java/net/wurstclient/mixin/GameMenuScreenMixin.java
index 9f9a1343..91ae8935 100644
--- a/src/main/java/net/wurstclient/mixin/GameMenuScreenMixin.java
+++ b/src/main/java/net/wurstclient/mixin/GameMenuScreenMixin.java
@@ -48,12 +48,12 @@ public abstract class GameMenuScreenMixin extends Screen
                        return;

                addWurstOptionsButton();
-               removeFeedbackAndBugReportButtons();
+               // removeFeedbackAndBugReportButtons();
        }

        private void addWurstOptionsButton()
        {
-               wurstOptionsButton = new ButtonWidget(width / 2 - 102, height / 4 + 56,
+               wurstOptionsButton = new ButtonWidget(width / 2 - 102, height / 4 + 126,
                        204, 20, new LiteralText("            Options"),
                        b -> openWurstOptions());

It might not look pretty, but it'll allow you access to the ModMenu.