public static void Prefix(MechLabLocationWidget __instance, ref MechComponentRef cRef)
 {
     try
     {
         MechPropertiesWidget.ShowHighlightFrame(__instance, ref cRef);
     }
     catch (Exception e)
     {
         Control.Logger.Error.Log(e);
     }
 }
コード例 #2
0
 public static void Prefix(MechLabLocationWidget __instance, IMechLabDraggableItem item)
 {
     try
     {
         MechPropertiesWidget.RefreshDropHighlights(__instance, item);
     }
     catch (Exception e)
     {
         Control.Logger.Error.Log(e);
     }
 }
コード例 #3
0
 public static void Postfix(MechLabPanel __instance)
 {
     try
     {
         MechLabFixWidgetLayouts.FixMechLabLayouts(__instance);
         MechPropertiesWidget.Setup(__instance);
         MechLabMoveUIElements.MoveMechUIElements(__instance);
     }
     catch (Exception e)
     {
         Control.Logger.Error.Log(e);
     }
 }
コード例 #4
0
 public static void Postfix(MechLabPanel __instance)
 {
     try
     {
         MechLabFixWidgetLayouts.FixWidgetLayouts(__instance);
         MechPropertiesWidget.Setup(__instance);
         MechLabMoveMechRoleInfo.MoveMechRoleInfo(__instance);
     }
     catch (Exception e)
     {
         Control.mod.Logger.LogError(e);
     }
 }
コード例 #5
0
 public static bool Prefix(MechLabLocationWidget __instance, PointerEventData eventData)
 {
     try
     {
         if (MechPropertiesWidget.OnDrop(__instance, eventData))
         {
             return(false);
         }
     }
     catch (Exception e)
     {
         Control.Logger.Error.Log(e);
     }
     return(true);
 }