Esempio n. 1
0
 public void Deactivate()
 {
     _gauntletLayer.InputRestrictions.ResetInputRestrictions();
     MissionScreen.RemoveLayer(_gauntletLayer);
     _gauntletLayer = null;
     _dataSource.OnFinalize();
     _dataSource = null;
 }
Esempio n. 2
0
 public void Activate()
 {
     _dataSource    = new GameKeyConfigVM(AGameKeyCategoryManager.Get(), OnKeyBindRequest, Deactivate);
     _gauntletLayer = new GauntletLayer(ViewOrderPriorty)
     {
         IsFocusLayer = true
     };
     _gauntletLayer.LoadMovie("MissionLibraryOptionsGameKeyScreen", _dataSource);
     _gauntletLayer.Input.RegisterHotKeyCategory(HotKeyManager.GetCategory("GenericPanelGameKeyCategory"));
     _gauntletLayer.InputRestrictions.SetInputRestrictions();
     _gauntletLayer.IsFocusLayer = true;
     MissionScreen.AddLayer(_gauntletLayer);
     ScreenManager.TrySetFocus(_gauntletLayer);
 }