public static void CvsSelectWindowStart(CvsSelectWindow __instance) { if (!_makerStarting) { CoordinateButtonClicked = 3; InsideMaker = true; _makerStarting = true; OnRegisterCustomSubCategories(); KoikatuAPI.Instance.StartCoroutine(OnMakerLoadingCo()); } // Have to add missing subcategories now, before UI_ToggleGroupCtrl.Start runs MakerInterfaceCreator.AddMissingSubCategories(__instance); }
public static void HBeforeToggleGroupStart(UI_ToggleGroupCtrl __instance) { var categoryTransfrom = __instance.transform; if (categoryTransfrom?.parent != null && categoryTransfrom.parent.name == "CvsMenuTree") { if (!_makerStarting) { InsideMaker = true; _makerStarting = true; OnRegisterCustomSubCategories(); KoikatuAPI.Instance.StartCoroutine(OnMakerLoadingCo()); } // Have to add missing subcategories now, before UI_ToggleGroupCtrl.Start runs MakerInterfaceCreator.AddMissingSubCategories(__instance); } }
public static void EditModeSetup(EditMode __instance) { var initRequired = currenEditMode != __instance; currenEditMode = __instance; InsideMaker = true; if (!initRequired) { return; } KoikatuAPI.Logger.LogDebug("Entering character maker"); void OnMakerExit() { OnMakerExiting(); InsideMaker = false; InternalLastLoadedChaFile = null; } __instance.OnDestroyAsObservable().Subscribe(unit => OnMakerExit()); //var categoryTransfrom = __instance.transform; KoikatuAPI.Instance.StartCoroutine(OnMakerLoadingCo()); OnRegisterCustomSubCategories(); MakerInterfaceCreator.AddMissingSubCategories(); //if (categoryTransfrom?.parent != null && categoryTransfrom.parent.name == "CvsMenuTree") //{ // if (!_makerStarting) // { // InsideMaker = true; // _makerStarting = true; // OnRegisterCustomSubCategories(); // KoikatuAPI.Instance.StartCoroutine(OnMakerLoadingCo()); // } // // // Have to add missing subcategories now, before UI_ToggleGroupCtrl.Start runs // MakerInterfaceCreator.AddMissingSubCategories(__instance); //} }