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

List categories #237

Open
ItsFelix5 opened this issue Jan 20, 2025 · 0 comments
Open

List categories #237

ItsFelix5 opened this issue Jan 20, 2025 · 0 comments

Comments

@ItsFelix5
Copy link

ItsFelix5 commented Jan 20, 2025

Sometimes you want to allow the user to choose something multiple times. This is why there are option lists, but sometimes you need the user to select multiple things this is what a list category is for. Those would look something like this
Image
I implemented this already in my mod camera tweaks for adding custom third persons but the code is extremely cursed and incompatible so an official API would be great.

If you would like to implement this here is my mixin spagetti for reference:
https://github.com/ItsFelix5/CameraTweaks/blob/master/src/main/java/cameratweaks/Config.java
https://github.com/ItsFelix5/CameraTweaks/blob/master/src/main/java/cameratweaks/ThirdPerson.java
https://github.com/ItsFelix5/CameraTweaks/blob/master/src/main/java/cameratweaks/mixin/YACLScreenMixin.java
https://github.com/ItsFelix5/CameraTweaks/blob/master/src/main/java/cameratweaks/mixin/OptionListWidgetMixin.java

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