Example #1
0
 public CustomRadialMenu(KeyCode keyCode, CustomRadialMenuType radialMenuType, string[] gearNames, bool enabled = true)
 {
     this.keycode   = keyCode;
     this.menuType  = radialMenuType;
     this.gearNames = gearNames;
     this.enabled   = enabled;
     RadialMenuManager.AddToList(this);
 }
Example #2
0
 public void SetValues(KeyCode newKeyCode, bool enabled)
 {
     this.keycode = newKeyCode;
     this.enabled = enabled;
     if (RadialMenuManager.ContainsConflict(this))
     {
         Implementation.LogWarning("KeyCode already registered to another menu!");
     }
 }
Example #3
0
 private static void Postfix()
 {
     RadialMenuManager.MaybeShowMenu();
 }