private void OnMenuButtonClick(IWindow window) { MenuWindowInstance.RefreshOptions(); MenuWindowInstance.Visible = true; ScreenShadeInstance.Visible = true; if (!IsPaused) { PauseThisScreen(); } TopStatusBarInstance.PauseForMenu(IsPaused); }
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); }