-
Notifications
You must be signed in to change notification settings - Fork 85
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 OptionsGeneralTab.cs #1267
Conversation
We changed window from transparency to opacity |
Instead of colorizing maybe try increasing font size/scale for heading labels? |
The group heading text is already a little bolder than normal option text. IIRC, with vanilla font manager, different text sizes result in additional textures being created (I think that's one of the things FBS Booster mod tackles with its improved fonts system?). Also, larger headings = more vert scrolling. An alernate would be colourise the option text, and that approach would also allow for additional info text to be displayed near options (ie. put the hint text in to its own text box under the option). |
Let's leave info text for a second pass of this work, not now. |
Yup, once I get the translation keys sorted that should suffice for this PR. How is that handled btw?
Yup, see: #733
Yup, it will be much better having them both use same approach. What needs to change in the code? Is it just the display/setting of the value, or will it require updates to tool UI (thus separate PR)? |
Translations are handled via Crowdin https://crowdin.com/project/tmpe |
The opacity is 1.0f-transparency so it should be straightforward change to the tools using this value. |
@aubergine10 Nope. Every font used to render text in game has own, separate texture for characters (res. max 4096x4096). When you use non standard font size (not the one already used) game will request all new characters using the texture of selected font. Unity starts filling texture font from 256x256, then doubles width or height to resize - all characters will get requested again in that case which usually results in "alien characters" rendered until next deep update of text component because of UI is reading old glyph positions using a new recreated texture as a lookup table (glyph position is not guaranteed between font texture resizes) |
Based on code from AVO mod, but with some tweaks
- Button opens localisation guide in wiki - Removed URL from Crowdin button translation key - Both buttons show full URL in tooltip when hovered
Latest translations from Crowdin
Ready for review. |
You can check how its done in Keybinds component in |
I think if you want to change the code it would be nice to do so properly and use: If there is no duplicate code fixing this would be easier #562 |
- Stuff was all over the place - Now it's more or less in the order it appears in options screen - Removed fields that were no longer used
- Link direct to checkbox value
Now it direct interfaces to the checkbox value.
Use the `Load()` and `Save()` features of `CheckboxOption`.
@krzychu124 I tried adding panel but couldn't seem to get it to work - specifically creating the actual panel. (Once I have panel I can config it and add stuff to it) I'm not sure what you meant by: |
- also remove one unused shim
Pushing back to 1.7.0 - settings look weird (particularly Policies tab) with only half the checkboxes updated - will do additional PRs to port each tab to |
Updates #1262, #62
The
General
settings tab was getting a bit cluttered (visually), especially with new options for speed limits UI. This PR does some refactoring to:MakeSettings_General
Todo:
Translators:
Not in this PR:
Overlay transparency
toOverlay opacity
#1268 )TMPE.zip