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

Refactor remainder of General tab #1432

Merged
merged 13 commits into from
Feb 28, 2022
Merged

Conversation

originalfoo
Copy link
Member

@originalfoo originalfoo commented Feb 23, 2022

Part of ongoing work on #1356 phase 2 - #1356 (comment)

Changes

Notes

  • Transition from OverlayTransparency to OverlayOpacity currently just resets OverlayOpacity to default value. I couldn't find any obvious place to manage global config version transitions.
  • Opacity now has a lower bounds defined by MINIMUM_OPACITY (10%) constant which should prevent users setting 0% opacity and then complaining that overlays aren't appearing :)
  • For sake of simplicity, I set hovered overlays to MAXIMUM_OPACITY (100%) rather than doing bitshifting, etc. LMK what you think - should I change it back how it was before?

Issues

Fixes: #1409
Fixes: #1268
Fixes: #1279
Updates: #1262
Updates: #62
Supercedes: #1267

@originalfoo originalfoo added UI User interface updates code cleanup Refactor code, remove old code, improve maintainability Settings Road config, mod options, config xml labels Feb 23, 2022
@originalfoo originalfoo added this to the 11.6.5.1 milestone Feb 23, 2022
@originalfoo originalfoo self-assigned this Feb 23, 2022
@originalfoo originalfoo marked this pull request as draft February 23, 2022 02:18
@originalfoo originalfoo added Usability Make mod easier to use Dependent This issue is blocked by another issue. labels Feb 23, 2022
@originalfoo originalfoo added the DO NOT MERGE YET Don't merge this PR, even if approved, until further notice label Feb 23, 2022
@originalfoo originalfoo mentioned this pull request Feb 23, 2022
1 task
@originalfoo originalfoo changed the title WIP: Refactor remainder of General tab Refactor remainder of General tab Feb 23, 2022
@originalfoo originalfoo marked this pull request as ready for review February 23, 2022 06:52
@originalfoo
Copy link
Member Author

ready for review

@originalfoo originalfoo removed DO NOT MERGE YET Don't merge this PR, even if approved, until further notice Dependent This issue is blocked by another issue. labels Feb 24, 2022
Copy link
Collaborator

@kvakvs kvakvs left a comment

Choose a reason for hiding this comment

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

Code reviewed

TLM/TLM/State/ConfigData/Main.cs Show resolved Hide resolved
TLM/TLM/State/Options.cs Outdated Show resolved Hide resolved
- Move `MayPublishSegmentChanges()` to `TMPELifecycle` class
- Mark `OptionsManager` as obsolete and redirect to `TMPELifecycle`
@originalfoo
Copy link
Member Author

@krzychu124 Any feedback on this PR? It's blocking the maintenance tab PR.

@originalfoo originalfoo merged commit e00e9c8 into master Feb 28, 2022
@originalfoo originalfoo deleted the refactor-remainder-general-tab branch February 28, 2022 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup Refactor code, remove old code, improve maintainability Settings Road config, mod options, config xml UI User interface updates Usability Make mod easier to use
Projects
None yet
3 participants