mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
feat(uxassist): show new navigation shortcut hint
This commit is contained in:
1 parent
5ae85eb031
commit
3f8e04f4a0
5 files changed
+48
-6
No files matched your search
@@ -30,6 +30,19 @@ public static class KeyBindings
|
||||
return new CombineKey((int)shortcut.MainKey, mod, ECombineKeyAction.OnceClick, false);
|
||||
}
|
||||
|
||||
public static string GetKeyBindingText(PressKeyBind keyBind)
|
||||
{
|
||||
var defaultBind = keyBind.defaultBind;
|
||||
var key = defaultBind.key;
|
||||
if (VFInput.override_keys != null && (uint)defaultBind.id < (uint)VFInput.override_keys.Length)
|
||||
{
|
||||
var overrideKey = VFInput.override_keys[defaultBind.id];
|
||||
if (!overrideKey.IsNull()) key = overrideKey;
|
||||
}
|
||||
|
||||
return key.ToString();
|
||||
}
|
||||
|
||||
public static bool IsKeyPressing(this PressKeyBind keyBind)
|
||||
{
|
||||
var defBind = keyBind.defaultBind;
|
||||
|
||||
Reference in new issue
Block a user