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

Added new type of scrollable menu #5803

Conversation

Booplicate
Copy link
Member

@Booplicate Booplicate commented May 20, 2020

This adds a scrollable menu with checkboxes. In theory this should make code more clear by removing label loops that were used for mas_gen_scrollable_menu. Instead of returning a value, buttons switch it between True/False. To close the menu the user needs to click the return button. It'll also return a dict with buttons keys corresponding to their values.

I used the existing styles for unchecked buttons. If you think they look confusing, we can add a new style for those buttons.

Also while we're in styles, I fixed that old bug which didn't allow to use narrow scrollable menus (<560 px).

Testing

  • Make sure the menu has all the functionality we need
  • It does work as intended (returns all/only True values, no crashes, buttons checks/unchecks)
  • The style looks good and isn't too confusing
  • All existing mas_gen_scrollable_menu still look good, and both mas_gen_scrollable_menu and mas_check_scrollable_menu support menus of any width.

@Booplicate Booplicate added awaiting code review someone needs to check for syntax/logic/indentation errors awaiting testing code needs to be tested labels May 20, 2020
@Booplicate Booplicate added this to the 0.11.3 milestone May 20, 2020
Before, passing in an area with width less than 560 px, cut off buttons tips
Also we forgot to add text_align to the style
Monika After Story/game/screens.rpy Outdated Show resolved Hide resolved
@multimokia multimokia self-requested a review May 21, 2020 20:26
multimokia
multimokia previously approved these changes May 21, 2020
Monika After Story/game/screens.rpy Outdated Show resolved Hide resolved
Copy link
Member

@ThePotatoGuy ThePotatoGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make a dev label for testing this menu.

Additionally, keep the branch names to a reasonable length next time.

Copy link
Member

@ThePotatoGuy ThePotatoGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a better color scheme for selected/unselected is to use the same one that the selectors (and piano config) use - standard pink for not selected, peachy for selected. Especially since we use gray everywhere else to signify that an option is disabled/uninteractable.

But I still think the disabled style looks better here
Copy link
Member

@ThePotatoGuy ThePotatoGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these look beautiful, great work

@ThePotatoGuy ThePotatoGuy removed the awaiting code review someone needs to check for syntax/logic/indentation errors label Jun 6, 2020
@multimokia multimokia removed the awaiting testing code needs to be tested label Jun 6, 2020
@multimokia multimokia merged commit 776d38f into Monika-After-Story:content Jun 6, 2020
@Booplicate Booplicate deleted the WeAddedCheckboxesToScrollableMenuSoYouCanCheckWhileScrolling branch June 6, 2020 11:12
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

Successfully merging this pull request may close these issues.

3 participants