-
Notifications
You must be signed in to change notification settings - Fork 20
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
Pagination for 1.6.4 controls screen #175
Pagination for 1.6.4 controls screen #175
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very cool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t think completely bypassing the vanilla controls screen is the right approach.
.../1.6.4/src/main/java/net/legacyfabric/fabric/impl/client/keybinding/OptimizedListWidget.java
Outdated
Show resolved
Hide resolved
...c/main/java/net/legacyfabric/fabric/impl/client/keybinding/DynamicControlsOptionsScreen.java
Outdated
Show resolved
Hide resolved
...1.6.4/src/main/java/net/legacyfabric/fabric/mixin/client/keybinding/SettingsScreenMixin.java
Outdated
Show resolved
Hide resolved
What do you think is the right approach in this case then? |
I'd suggest de-hardcoding the existing keybinding buttons, and then using pagination to show other mod's keybindings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. very simple implementation
...main/java/net/legacyfabric/fabric/impl/client/keybinding/FabricControlsScreenComponents.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Shrish Deshpande <[email protected]>
1.6.4 Controls screen doesn't support dynamic amount of keybindings, this pr provides a replacement for it to fix this issue.
Vanilla Screen:
New Screen (Ignore inverted color) :