public void closeLaunchAttackPopup() { if (!this.launchAttackPopupClosing) { this.launchAttackPopupClosing = true; if (this.isPopupWindowOpenAndClose(this.m_launchAttackPopup)) { this.closeGreyOut(); } this.m_launchAttackPopup = null; this.launchAttackPopupClosing = false; if (this.parentForm != null) { this.parentForm.TopMost = true; this.parentForm.Focus(); this.parentForm.BringToFront(); this.parentForm.Focus(); this.parentForm.TopMost = false; } } }
public SendArmyWindow openLaunchAttackPopup() { this.openGreyOutWindow(true); this.closePopupWindow(this.m_launchAttackPopup); this.m_launchAttackPopup = new SendArmyWindow(); this.positionWindow(this.m_launchAttackPopup, true, false); this.m_launchAttackPopup.Show(this.getGreyOutWindow()); if (Instance.isTutorialWindowOpen()) { GameEngine.Instance.World.forceTutorialToBeShown(); } GameEngine.Instance.DisableMouseClicks(); return this.m_launchAttackPopup; }