Beispiel #1
0
 protected override void OnDeactivate()
 {
     base.OnDeactivate();
     this._closed = true;
     LoadingWindow.EnableGlobalLoadingWindow(false);
     InformationManager.HideInformations();
 }
 public MBVassalBannerEditorGauntletScreen(NewClanBannerEditorState bannerEditorState)
 {
     LoadingWindow.EnableGlobalLoadingWindow();
     this._clan = bannerEditorState.GetClan();
     this._bannerEditorLayer = new BannerEditorView(bannerEditorState.GetCharacter(), bannerEditorState.GetClan().Banner, new ControlCharacterCreationStage(this.OnDone), new TextObject("{=WiNRdfsm}Done", null), new ControlCharacterCreationStage(this.OnCancel), new TextObject("{=3CpNUnVl}Cancel", null), null, null, null, null, null);
     this._bannerEditorLayer.DataSource.SetClanRelatedRules(bannerEditorState.GetClan().Kingdom == null);
 }
        public FaceDetailsCreatorScreen(FaceDetailsCreatorState faceDetailsCreatorState)
        {
            LoadingWindow.EnableGlobalLoadingWindow(false);
            this._faceDetailsCreatorState = faceDetailsCreatorState;

            this._facegenLayer = new BodyGeneratorView(new ControlCharacterCreationStage(this.OnExit), GameTexts.FindText("str_done", null), new ControlCharacterCreationStage(this.OnExit), GameTexts.FindText("str_cancel", null), faceDetailsCreatorState.EditHero.CharacterObject, false, null);
        }
Beispiel #4
0
 public BannerEditorScreen(BannerEditorState bannerEditorState)
 {
     LoadingWindow.EnableGlobalLoadingWindow();
     _bannerEditorLayer = new BannerEditorView(BannerEditorState.Character, BannerEditorState.Banner, OnDone,
                                               new TextObject("{=WiNRdfsm}Done"), OnCancel, new TextObject("{=3CpNUnVl}Cancel"));
     _bannerEditorLayer.DataSource.SetClanRelatedRules(true);
 }
        protected override void OnDeactivate()
        {
            base.OnDeactivate();
            this._facegenLayer.OnFinalize();
            LoadingWindow.EnableGlobalLoadingWindow(false);
            InformationManager.HideInformations();
            Mission current = Mission.Current;

            if (current != null)
            {
                foreach (Agent expr_39 in current.Agents)
                {
                    expr_39.EquipItemsFromSpawnEquipment();
                    expr_39.UpdateAgentProperties();
                }
            }
        }
        private void TogglePause()
        {
            if (Game.Current == null)
            {
                return;
            }

            var isPaused = Game.Current.GameStateManager.ActiveStateDisabledByUser;

            Game.Current.GameStateManager.ActiveStateDisabledByUser = !isPaused;

            if (isPaused)
            {
                LoadingWindow.DisableGlobalLoadingWindow();
            }
            else
            {
                LoadingWindow.EnableGlobalLoadingWindow();
            }
        }
 protected override void OnDeactivate()
 {
     LoadingWindow.EnableGlobalLoadingWindow(false);
 }
 protected override void OnInitialize()
 {
     base.OnInitialize();
     LoadingWindow.EnableGlobalLoadingWindow();
 }
 public HeroAdminScreen(HeroAdminState heroAdminState)
 {
     LoadingWindow.EnableGlobalLoadingWindow();
     this._heroAdminState = heroAdminState;
 }
 protected override void OnDeactivate()
 {
     base.OnDeactivate();
     LoadingWindow.EnableGlobalLoadingWindow();
     InformationManager.HideInformations();
 }
Beispiel #11
0
 protected override void OnDeactivate()
 => LoadingWindow.EnableGlobalLoadingWindow();