public void OnDisabled() { Logger.LogDebug($"{nameof(Mod)}.{nameof(OnDisabled)}"); Patcher.Unpatch(); NodeMarkupTool.Remove(); LocaleManager.eventLocaleChanged -= LocaleChanged; }
public override void OnLevelLoaded(LoadMode mode) { Logger.LogDebug($"{nameof(Mod)}.{nameof(OnLevelLoaded)}"); if (mode == LoadMode.LoadGame || mode == LoadMode.NewGame || mode == LoadMode.NewGameFromScenario || mode == LoadMode.NewAsset) { NodeMarkupTool.Create(); MarkupManager.Init(); ShowWhatsNew(); } }
public override void OnLevelLoaded(LoadMode mode) { Mod.Logger.Debug($"On level loaded"); switch (mode) { case LoadMode.NewGame: case LoadMode.LoadGame: case LoadMode.NewGameFromScenario: case LoadMode.NewAsset: case LoadMode.LoadAsset: case LoadMode.NewMap: case LoadMode.LoadMap: NodeMarkupTool.Create(); TemplateManager.Reload(); ShowWhatsNew(); ShowBetaWarning(); ShowLoadError(); break; } }
public override void OnLevelLoaded(LoadMode mode) { Logger.LogDebug($"{nameof(LoadingExtension)}.{nameof(OnLevelLoaded)}"); switch (mode) { case LoadMode.NewGame: case LoadMode.LoadGame: case LoadMode.NewGameFromScenario: case LoadMode.NewAsset: case LoadMode.LoadAsset: case LoadMode.NewMap: case LoadMode.LoadMap: NodeMarkupTool.Create(); TemplateManager.Reload(); ShowWhatsNew(); ShowBetaWarning(); ShowLoadError(); break; } }
public override void OnLevelUnloading() { Logger.LogDebug($"{nameof(Mod)}.{nameof(OnLevelUnloading)}"); NodeMarkupTool.Remove(); }
public override void OnLevelUnloading() { Mod.Logger.Debug($"On level unloading"); NodeMarkupTool.Remove(); }
public override void OnDisabled() { base.OnDisabled(); NodeMarkupTool.Remove(); }