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(); } }
public void ShowSpouseServiceView() { bool flag = this._spouseServiceLayer == null; if (flag) { this._spouseServiceLayer = new GauntletLayer(200, "GauntletLayer"); this._spouseServiceView = new SpouseServiceVM(this, this._parentScreen); this._currentMovie = this._spouseServiceLayer.LoadMovie("SpouseService", 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); } }
public SpouseDashboardVM(SpouseClanVM parent, GauntletClanScreen parentScreen) { this._parentView = parent; this._parentScreen = parentScreen; this._settingGroups = new MBBindingList <SpouseSettingsGroupVM>(); _spouseSettingGroups = MoreSpouseSetting.Instance.GenerateSettingsProperties(); _spouseSettingGroups.ForEach((obj) => { this._settingGroups.Add(new SpouseSettingsGroupVM(obj)); }); this._spousesBattleStats = new SpousesBattleStatisticVM(this._parentView); this._spouseServiceView = new SpouseServiceVM(); this.RefreshValues(); }