-
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
UUI integration #1153
UUI integration #1153
Conversation
this is draft because I still need to add option to option menu. |
why |
@@ -82,6 +86,18 @@ public static class OptionsGeneralTab { | |||
defaultValue: GlobalConfig.Instance.Main.MainMenuPosLocked, | |||
eventCallback: OnLockMenuChanged) as UICheckBox; | |||
|
|||
_useUUI = generalGroup.AddCheckbox( | |||
text: T("General.Checkbox:Use UnifedUI"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in UnifiedUI
translation key, translation fix will probably be enough
var hotkeys = new UUIHotKeys { ActivationKey = KeybindSettingsBase.ToggleMainMenu.Key }; | ||
hotkeys.AddInToolKey(KeybindSettingsBase.ToggleTrafficLightTool.Key); | ||
hotkeys.AddInToolKey(KeybindSettingsBase.LaneArrowTool.Key); | ||
hotkeys.AddInToolKey(KeybindSettingsBase.LaneConnectionsTool.Key, () => Options.laneConnectorEnabled); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Names on the options are ambiguous
We have switches in TM:PE which enable entire feature
And also we have hotkeys which don't toggle the feature, but they activate tool button
Change names for hotkeys which activate tools from ***Enabled
to for example Use***Tool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is out of scope of this PR. you should create an issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything seem to be working in-game, I left one question in the code.
@kianzarrin hehe, you requested review but didn't change anything 😄 |
updated UUI library
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool 👍
user can optionally turn on:
How it works:
how to test:
don't use UnifiedUI mod at allor download latest version from here: https://github.com/kianzarrin/UnifiedUI/releases
the WS version is too old (i will update).
I updated WS
TMPE.zip