Пример #1
0
        private static void OnMakerBaseLoaded()
        {
            if (MakerBaseLoaded != null)
            {
                var args = new RegisterCustomControlsEvent();
                foreach (var handler in MakerBaseLoaded.GetInvocationList())
                {
                    try
                    {
                        ((EventHandler <RegisterCustomControlsEvent>)handler).Invoke(KoikatuAPI.Instance, args);
                    }
                    catch (Exception e)
                    {
                        KoikatuAPI.Log(LogLevel.Error, e);
                    }
                }
            }

            DebugControls();

            foreach (var baseGuiEntry in _guiEntries)
            {
                baseGuiEntry.Initialize();
            }
        }
Пример #2
0
 private static void OnMakerStartedLoading()
 {
     if (MakerStartedLoading != null)
     {
         var args = new RegisterCustomControlsEvent();
         foreach (var handler in MakerStartedLoading.GetInvocationList())
         {
             try
             {
                 ((EventHandler <RegisterCustomControlsEvent>)handler).Invoke(KoikatuAPI.Instance, args);
             }
             catch (Exception e)
             {
                 KoikatuAPI.Logger.LogError(e);
             }
         }
     }
 }
Пример #3
0
        private static void OnMakerBaseLoaded()
        {
            if (MakerBaseLoaded != null)
            {
                var args = new RegisterCustomControlsEvent();
                foreach (var handler in MakerBaseLoaded.GetInvocationList())
                {
                    try
                    {
                        ((EventHandler <RegisterCustomControlsEvent>)handler).Invoke(KoikatuAPI.Instance, args);
                    }
                    catch (Exception e)
                    {
                        KoikatuAPI.Logger.LogError(e);
                    }
                }
            }

            MakerInterfaceCreator.InitializeGuiEntries();
        }