Example #1
0
        public void OnDisabled()
        {
            Logger.LogDebug($"{nameof(Mod)}.{nameof(OnDisabled)}");
            Patcher.Unpatch();
            NodeMarkupTool.Remove();

            LocaleManager.eventLocaleChanged -= LocaleChanged;
        }
Example #2
0
        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();
            }
        }
Example #3
0
        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;
            }
        }
Example #5
0
 public override void OnLevelUnloading()
 {
     Logger.LogDebug($"{nameof(Mod)}.{nameof(OnLevelUnloading)}");
     NodeMarkupTool.Remove();
 }
Example #6
0
 public override void OnLevelUnloading()
 {
     Mod.Logger.Debug($"On level unloading");
     NodeMarkupTool.Remove();
 }
Example #7
0
 public override void OnDisabled()
 {
     base.OnDisabled();
     NodeMarkupTool.Remove();
 }