public static void Postfix(MechLabLocationWidget __instance, int ___maxSlots)
 {
     try
     {
         var widgetLayout = new WidgetLayout(__instance);
         MechLabSlotsFixer.FixSlots(widgetLayout, ___maxSlots);
         DynamicSlotsFeature.PrepareWidget(widgetLayout);
     }
     catch (Exception e)
     {
         Control.mod.Logger.LogError(e);
     }
 }
Beispiel #2
0
        public static void Postfix(MechLabLocationWidget __instance, int ___maxSlots, ref LocationLoadoutDef loadout)
        {
            try
            {
                var widget = __instance;

                var widgetLayout = new WidgetLayout(widget);
                MechLabSlotsFixer.FixSlots(widgetLayout, ___maxSlots);
                DynamicSlotsFeature.PrepareWidget(widgetLayout);
                AdjustMechLabLocationNaming(widget, loadout.Location);
            }
            catch (Exception e)
            {
                Control.Logger.Error.Log(e);
            }
        }