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(); } }
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); } } } }
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(); }