Exemple #1
0
            internal static void ChaControl_ChangeCoordinateTypeAndReload_Postfix(ChaControl __instance)
            {
                MaterialRouterController pluginCtrl = GetController(__instance);

                if (pluginCtrl == null)
                {
                    return;
                }
                DebugMsg(LogLevel.Warning, $"ChaControl_ChangeCoordinateTypeAndReload_Postfix [{pluginCtrl.CurrentCoordinateIndex}]");
                pluginCtrl.BuildCheckList();
                pluginCtrl.ApplyOutfitTrigger();
            }
Exemple #2
0
            internal static void ChaControl_ChangeCoordinateType_Postfix(ChaControl __instance)
            {
                MaterialRouterController pluginCtrl = GetController(__instance);

                if (pluginCtrl == null)
                {
                    return;
                }
                DebugMsg(LogLevel.Warning, $"ChaControl_ChangeCoordinateType_Prefix [{pluginCtrl.CurrentCoordinateIndex}]");
                pluginCtrl.BuildCheckList();
                pluginCtrl.ApplyOutfitTrigger();

                if (MakerAPI.InsideAndLoaded)
                {
                    __instance.StartCoroutine(InitCurrentSlotCoroutine());
                }

                IEnumerator InitCurrentSlotCoroutine()
                {
                    yield return(null);

                    InitCurrentSlot();
                }
            }