public static void Prefix(MechLabLocationWidget __instance, ref MechComponentRef cRef)
 {
     try
     {
         MechPropertiesWidget.ShowHighlightFrame(__instance, ref cRef);
     }
     catch (Exception e)
     {
         Control.Logger.Error.Log(e);
     }
 }
 public static void Prefix(MechLabLocationWidget __instance, IMechLabDraggableItem item)
 {
     try
     {
         MechPropertiesWidget.RefreshDropHighlights(__instance, item);
     }
     catch (Exception e)
     {
         Control.Logger.Error.Log(e);
     }
 }
 public static void Postfix(MechLabPanel __instance)
 {
     try
     {
         MechLabFixWidgetLayouts.FixMechLabLayouts(__instance);
         MechPropertiesWidget.Setup(__instance);
         MechLabMoveUIElements.MoveMechUIElements(__instance);
     }
     catch (Exception e)
     {
         Control.Logger.Error.Log(e);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 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);
 }