-
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
Core: add visibility attribute to Option #3125
Conversation
class Visibility(enum.IntFlag): | ||
none = 0b0000 | ||
template = 0b0001 | ||
simple_ui = 0b0010 # show option in simple menus, such as player-options | ||
complex_ui = 0b0100 # show option in complex menus, such as weighted-options | ||
spoiler = 0b1000 | ||
all = 0b1111 |
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.
wouldn't be "not_simple_ui" a common value?
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.
(Visibility.all - Visibility.spoiler) may also be a common enough use case to be specified here, for options that only have visual effects on the game and have no effect on generation. (Flashing reduction, sprite choice, etc.)
It would certainly be nice to clean up the spoiler log a little bit.
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.
SC2 player colors are visual-only too
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'd say it's easy enough to get "all except X" with Visibility.all ^ Visibility.spoiler
, to use spoiler for an example. I'd be fine to leave this as-is.
Is this following test fragile?
|
The failure is known (seems to be a shortcoming of |
Co-authored-by: Doug Hoskisson <[email protected]>
Co-authored-by: Doug Hoskisson <[email protected]>
Co-authored-by: Doug Hoskisson <[email protected]>
What is this fixing or adding?
allows hiding of options in certain contexts. Multiple use cases have been discussed, this brings legacy alerts for LttP as one such use case with it.
How was this tested?
I've tested each flag barely, so this could use some more testing.