Ejemplo n.º 1
0
 public void CloseSubSetting()
 {
     if (_subSettingLayer != null)
     {
         _subSettingLayer.ReleaseMovie(_currentMovie);
         _parentScreen.RemoveLayer(_subSettingLayer);
         _subSettingLayer.InputRestrictions.ResetInputRestrictions();
         _subSettingLayer = null;
         _subScreen       = null;
         RefreshValues();
     }
 }
Ejemplo n.º 2
0
 public void OpenSubSetting(SettingSortVM sortVm)
 {
     if (_subSettingLayer == null)
     {
         _subSettingLayer = new GauntletLayer(300);
         _subScreen       = new SettingSortingOrderScreenVM(this, sortVm.SortingComparer);
         _currentMovie    = _subSettingLayer.LoadMovie("PartyEnhancementSortingSettings", _subScreen);
         _subSettingLayer.IsFocusLayer = true;
         ScreenManager.TrySetFocus(_subSettingLayer);
         _subSettingLayer.Input.RegisterHotKeyCategory(HotKeyManager.GetCategory("GenericPanelGameKeyCategory"));
         _parentScreen.AddLayer(_subSettingLayer);
         _subSettingLayer.InputRestrictions.SetInputRestrictions(true, InputUsageMask.All);
     }
 }