-
Notifications
You must be signed in to change notification settings - Fork 751
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
Webhost: Allow Option Groups to specify whether they start collapsed #3370
Webhost: Allow Option Groups to specify whether they start collapsed #3370
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.
Confirmed that the start_collapsed
field on the OptionGroup
does function as advertised.
Did not test the Group Name changes.
Reviewed Python code, did not assess HTML.
Looks good. I like this change.
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.
This looks like it works fine, but I would prefer you maintained boolean consistency. Giving the option a start_collapsed
key, but then labeling it group_visibility
later is confusing. Either change the key to start_uncollapsed
or continue using start_collapsed
in the templates.
I'll merge this after the conflicts are resolved. |
# Conflicts: # WebHostLib/options.py # worlds/AutoWorld.py
…rchipelagoMW#3370) * allow option groups to specify whether they should be hidden or not * allow worlds to override whether game options starts collapsed * remove Game Options assert so the visibility of that group can be changed * if "Game Options" or "Item & Location Options" groups are specified, fix casing * don't allow item & location options to have duplicates of the auto added options * use a generator instead of a comprehension * use consistent naming
…rchipelagoMW#3370) * allow option groups to specify whether they should be hidden or not * allow worlds to override whether game options starts collapsed * remove Game Options assert so the visibility of that group can be changed * if "Game Options" or "Item & Location Options" groups are specified, fix casing * don't allow item & location options to have duplicates of the auto added options * use a generator instead of a comprehension * use consistent naming
…rchipelagoMW#3370) * allow option groups to specify whether they should be hidden or not * allow worlds to override whether game options starts collapsed * remove Game Options assert so the visibility of that group can be changed * if "Game Options" or "Item & Location Options" groups are specified, fix casing * don't allow item & location options to have duplicates of the auto added options * use a generator instead of a comprehension * use consistent naming
…rchipelagoMW#3370) * allow option groups to specify whether they should be hidden or not * allow worlds to override whether game options starts collapsed * remove Game Options assert so the visibility of that group can be changed * if "Game Options" or "Item & Location Options" groups are specified, fix casing * don't allow item & location options to have duplicates of the auto added options * use a generator instead of a comprehension * use consistent naming
What is this fixing or adding?
title. game options group defaults to false, and can be overridden. item & location options is forced hidden as those options can be overwhelming.
How was this tested?
made a group and changed the new attribute around to verify new behavior on both pages
If this makes graphical changes, please attach screenshots.