public SendMonkWindow openSendMonkWindow(int villageID) { this.openGreyOutWindow(true); this.closePopupWindow(this.m_sendMonkWindow); this.m_sendMonkWindow = new SendMonkWindow(); this.positionWindow(this.m_sendMonkWindow, true, false); this.m_sendMonkWindow.init(villageID); this.m_sendMonkWindow.Show(this.getGreyOutWindow()); if (Instance.isTutorialWindowOpen()) { GameEngine.Instance.World.forceTutorialToBeShown(); } GameEngine.Instance.DisableMouseClicks(); return this.m_sendMonkWindow; }
public void closeSendMonkWindow() { if (!this.sendMonkWindowClosing) { this.sendMonkWindowClosing = true; if (this.isPopupWindowOpenAndClose(this.m_sendMonkWindow)) { GameEngine.Instance.EnableMouseClicks(); this.closeGreyOut(); this.showDXCardBar(9); Instance.closeParishPanel(); } this.m_sendMonkWindow = null; this.sendMonkWindowClosing = false; } }