Commit 68cdcc5
authored
Main menu and tool code refactoring (#656)
* Refactoring LinearToolButton into a more generic skinnable button
* Renamed BaseUI and menu button classes and moved some generic files into U/
* Get properties in UButton are now abstract functions
* Replaced graphics loading for UIMainButton with new Atlas code
* Skinnable BaseUButton and generalized with MainMenuButton
* ButtonSkin allows overriding background
* Main menu is scaled to screen size fraction
* LoadingExtension.ModUi is now a singleton ModUI accessible via ModUI.Instance
* Fixed main button to always 50px. Added min scale for main panel button 40px
* UI scale slider affects mainmenu panel now
* Toned down button textures; added v11 to 11 in main button; Review notes satisfied
* MenuLayout class responsible for menu row breaking and sizing1 parent 26f416f commit 68cdcc5
File tree
95 files changed
+1456
-853
lines changed- TLM
- TLM
- Custom/AI
- Resources/MainMenu
- Tool
- State
- ConfigData
- Keybinds
- OptionsTabs
- UI
- Helpers
- MainMenu
- SubTools
- Textures
- Util
- U
- Button
- Panel
- TMPE.API/Traffic/Enums
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
95 files changed
+1456
-853
lines changedSubmodule CSUtil.CameraControl updated from a4b4690 to 48a5512
Submodule OptionsFramework updated from 20d56eb to 378ce21
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
| |||
368 | 366 | | |
369 | 367 | | |
370 | 368 | | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
375 | 373 | | |
376 | 374 | | |
377 | 375 | | |
| |||
544 | 542 | | |
545 | 543 | | |
546 | 544 | | |
547 | | - | |
| 545 | + | |
548 | 546 | | |
549 | | - | |
| 547 | + | |
| 548 | + | |
550 | 549 | | |
551 | 550 | | |
552 | 551 | | |
| |||
Submodule RedirectionFramework updated from a5a6f2d to 68a47a1
0 commit comments