Ejemplo n.º 1
0
 public override void OnMissionScreenFinalize()
 {
     base.OnMissionScreenFinalize();
     GauntletLayer = null;
     _dataSource?.OnFinalize();
     _dataSource = null;
     _movie      = null;
 }
Ejemplo n.º 2
0
 protected void OnCloseMenu()
 {
     IsActivated = false;
     _dataSource.OnFinalize();
     _dataSource = null;
     GauntletLayer.InputRestrictions.ResetInputRestrictions();
     MissionScreen.RemoveLayer(GauntletLayer);
     _movie        = null;
     GauntletLayer = null;
     UnpauseGame();
 }
Ejemplo n.º 3
0
 public void ActivateMenu()
 {
     IsActivated = true;
     _dataSource = GetDataSource();
     if (_dataSource == null)
     {
         return;
     }
     GauntletLayer = new GauntletLayer(ViewOrderPriorty)
     {
         IsFocusLayer = true
     };
     GauntletLayer.InputRestrictions.SetInputRestrictions();
     GauntletLayer.Input.RegisterHotKeyCategory(HotKeyManager.GetCategory("GenericPanelGameKeyCategory"));
     _movie = GauntletLayer.LoadMovie(_movieName, _dataSource);
     MissionScreen.AddLayer(GauntletLayer);
     ScreenManager.TrySetFocus(GauntletLayer);
     PauseGame();
 }