コード例 #1
0
        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));
        }
コード例 #2
0
        private void Start()
        {
            Instance = this;
            MakerAPI.MakerBaseLoaded             += MakerAPI_MakerBaseLoaded;
            MakerAPI.RegisterCustomSubCategories += MakerAPI_RegisterCustomSubCategories;

            Harmony.CreateAndPatchAll(typeof(MakerHooks));
        }
コード例 #3
0
 internal void Start()
 {
     Instance = this;
     MakerAPI.MakerBaseLoaded             += MakerAPI_MakerBaseLoaded;
     MakerAPI.RegisterCustomSubCategories += MakerAPI_RegisterCustomSubCategories;
 }