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

Ready button fixes 3 #203

Merged
merged 2 commits into from
Jul 1, 2022

Conversation

MasterBel2
Copy link
Contributor

  • Fixes "Not Ready" caption outsizing button area on default scaling on 1080p displays

  • Fixes ready button being grey with "Button" caption by default

  • Decrease button & font sizes to give ready / start buttons more prominence

  • Use i18n lib for tooltips

  • Change tooltip depending on button state

  • Add SetButtonStatePlaying() and SetButtonStateSpectating() to avoid duplication of constants throughout the code.

  • Tooltip/caption values set after button init with SetButtonStatePlaying()

  • Move button_highlight style colours to mirror option_button colours

  • Makes use of suppressButtonReaction to remove hints that the play/spectating buttons are pressable when they aren't (This won't work until Rename obj.supressButtonReaction to obj.suppressButtonReaction Spring-Chobby/Chobby#547 is merged, due to a typo in the source.)

Some images are below.
Shows new highlighted button style:
Screenshot from 2022-06-27 05-41-05

Shows new unhighlighted button style, one of the new tooltips, and how the Play button will not highlight on hover when selected:
Screenshot from 2022-06-27 05-41-19

- Fixes "Not Ready" outsizing ready button on default scaling on 1080p displays
- Fixes ready button being grey with "Button" caption by default
- Decrease button & font sizes to give ready / start buttons more prominence
- Use i18n lib for tooltips
- Change tooltip depending on button state

- Add `SetButtonStatePlaying()` and `SetButtonStateSpectating()` to avoid duplication of constants throughout the code.
- Tooltip/caption values set after button init with `SetButtonStatePlaying()`

-  Move `button_highlight` style colours to mirror `option_button` colours

- Makes use of `suppressButtonReaction` to remove hints that the play/spectating buttons are pressable when they aren't (This won't work until Spring-Chobby/Chobby#547 is merged, due to a typo in the source.)
@MasterBel2 MasterBel2 force-pushed the ready-button-fixes-3 branch from 98fe220 to 806eb6d Compare June 26, 2022 23:21
@MasterBel2
Copy link
Contributor Author

Pushed a commit to this branch incorrectly; now removed

@Beherith Beherith merged commit cf12522 into beyond-all-reason:master Jul 1, 2022
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.

2 participants