Exemple #1
0
 public static void InterceptInteraction(ref GizmoResult __result, Command __instance)
 {
     if (__result.State == GizmoState.Interacted || __result.State == GizmoState.OpenedFloatMenu)
     {
         var designator = DesignatorContextMenuController.TryResolveCommandToDesignator(__instance);
         if (designator != null && DesignatorContextMenuController.TryProcessDesignatorInput(designator)) // return a blank interact event if we intercepted the input
         {
             __result = new GizmoResult(GizmoState.Clear, __result.InteractEvent);
         }
     }
 }
 public static bool InterceptRightClicksOnSupportedDesignators(Designator __instance)
 {
     return(!DesignatorContextMenuController.TryProcessDesignatorInput(__instance));
 }