private void Start() { Instance = this; MakerAPI.MakerBaseLoaded += MakerAPI_MakerBaseLoaded; MakerAPI.RegisterCustomSubCategories += MakerAPI_RegisterCustomSubCategories; MakerAPI.MakerFinishedLoading += (s, e) => ToggleButtonVisibility(); MakerAPI.ReloadCustomInterface += (s, e) => { StartCoroutine(Wait()); IEnumerator Wait() { yield return(null); ToggleButtonVisibility(); } }; MakerAPI.MakerExiting += (s, e) => ColorPalette = null; AccessoriesApi.SelectedMakerAccSlotChanged += (s, e) => ToggleButtonVisibility(); AccessoriesApi.AccessoryKindChanged += (s, e) => ToggleButtonVisibility(); AccessoriesApi.AccessoryTransferred += (s, e) => ToggleButtonVisibility(); #if KK || KKS AccessoriesApi.AccessoriesCopied += (s, e) => ToggleButtonVisibility(); #endif Harmony.CreateAndPatchAll(typeof(MakerHooks)); }
private void Start() { Instance = this; MakerAPI.MakerBaseLoaded += MakerAPI_MakerBaseLoaded; MakerAPI.RegisterCustomSubCategories += MakerAPI_RegisterCustomSubCategories; Harmony.CreateAndPatchAll(typeof(MakerHooks)); }
internal void Start() { Instance = this; MakerAPI.MakerBaseLoaded += MakerAPI_MakerBaseLoaded; MakerAPI.RegisterCustomSubCategories += MakerAPI_RegisterCustomSubCategories; }