Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-clickable text and menu navigation #22

Open
SilentException opened this issue Aug 28, 2024 · 0 comments
Open

Non-clickable text and menu navigation #22

SilentException opened this issue Aug 28, 2024 · 0 comments

Comments

@SilentException
Copy link

TextWidget extends PressableTextWidget and it makes all text added by the mod "focusable". This messes up keyboard or gamepad navigation.

For example, if you start MC without any extra menu text configured, focus is by default on Singleplayer button.
Then if you use the config below (isxander-main-menu-credits.json), at start the focus will be on the TEST text widget even though it cannot be clicked. You must press DOWN to focus Singleplayer and can also then press UP to focus TEST widget again (which is confusing for the user).

{
    "main_menu":
    {
    	"top_left":
    	[
            {
                "text": "TEST"
            }
    	]
    }
}

The same goes when the text list is given by another plugin (via MainMenuCreditAPI).

Suggestion: use net.minecraft.client.gui.widget.TextWidget when there is no click event configured for Text?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant