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

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