Exemplo n.º 1
0
 public override void OnMissionScreenFinalize()
 {
     base.OnMissionScreenFinalize();
     GauntletLayer = null;
     _dataSource?.OnFinalize();
     _dataSource = null;
     _movie      = null;
 }
Exemplo n.º 2
0
 protected void OnCloseMenu()
 {
     IsActivated = false;
     _dataSource.OnFinalize();
     _dataSource = null;
     GauntletLayer.InputRestrictions.ResetInputRestrictions();
     MissionScreen.RemoveLayer(GauntletLayer);
     _movie        = null;
     GauntletLayer = null;
     UnpauseGame();
 }
Exemplo n.º 3
0
 public void ActivateMenu()
 {
     IsActivated = true;
     if (GetDataSource == null)
     {
         return;
     }
     _dataSource   = GetDataSource?.Invoke();
     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();
 }