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

            MenuWindowInstance.RefreshOptions();

            MapScreenGumInstance.ShowMenuAnimation.Play(this);
            //this.Call(() =>MenuWindowInstance.RefreshOptions()).After(MapScreenGumInstance.ShowMenuAnimation.Length + 0.001f);
        }