コード例 #1
0
 private void OnMenuCloseButtonClick(IWindow window)
 {
     ScreenShadeInstance.Visible = false;
     MenuWindowInstance.Visible  = false;
     if (!TopStatusBarInstance.WasPausedWhenMenuClicked)
     {
         UnpauseThisScreen();
     }
     TopStatusBarInstance.PauseForMenu(IsPaused);
 }
コード例 #2
0
 private void OnMenuButtonClick(IWindow window)
 {
     MenuWindowInstance.RefreshOptions();
     MenuWindowInstance.Visible  = true;
     ScreenShadeInstance.Visible = true;
     if (!IsPaused)
     {
         PauseThisScreen();
     }
     TopStatusBarInstance.PauseForMenu(IsPaused);
 }