Beispiel #1
0
        public void CloseSettingView()
        {
            bool flag = this._spouseServiceLayer != null;

            if (flag)
            {
                this._spouseServiceLayer.ReleaseMovie(this._currentMovie);
                this._parentScreen.RemoveLayer(this._spouseServiceLayer);
                this._spouseServiceLayer.InputRestrictions.ResetInputRestrictions();
                this._spouseServiceLayer = null;
                this._spouseServiceView  = null;
                this.RefreshValues();
            }
        }
Beispiel #2
0
        public void ShowSpouseServiceView()
        {
            bool flag = this._spouseServiceLayer == null;

            if (flag)
            {
                this._spouseServiceLayer = new GauntletLayer(200, "GauntletLayer");
                this._spouseServiceView  = new SpouseDashboardVM(this, this._parentScreen);
                this._currentMovie       = this._spouseServiceLayer.LoadMovie("SpouseDashboard", this._spouseServiceView);
                this._spouseServiceLayer.IsFocusLayer = true;
                ScreenManager.TrySetFocus(this._spouseServiceLayer);
                this._spouseServiceLayer.Input.RegisterHotKeyCategory(HotKeyManager.GetCategory("GenericPanelGameKeyCategory"));
                this._parentScreen.AddLayer(this._spouseServiceLayer);
                this._spouseServiceLayer.InputRestrictions.SetInputRestrictions(true, InputUsageMask.All);
            }
        }