public void init(int currentResource, Point parentLocation, LogoutPanel parent, LogoutOptionsWindow2 parentWindow) { this.m_parent = parent; this.m_parentWindow = parentWindow; this.selectTradingResourcePanel.init(currentResource, this, this.m_parent); this.updateLocation(parentLocation); base.Show(this.m_parentWindow); }
private void btnLogOut_Click() { GameEngine.Instance.playInterfaceSound("WorldMapScreen_menu_logout"); if ((this.logoutPopup != null) && this.logoutPopup.Created) { this.logoutPopup.Close(); this.logoutPopup = null; } this.logoutPopup = InterfaceMgr.Instance.openLogoutWindow(true); }
public void closeLogoutWindow() { if (!this.logoutWindowClosing) { this.logoutWindowClosing = true; if (this.isPopupWindowOpenAndClose(this.m_logoutOptionsWindow)) { GameEngine.Instance.EnableMouseClicks(); this.closeGreyOut(); } this.m_logoutOptionsWindow = null; this.logoutWindowClosing = false; } }
public LogoutOptionsWindow2 openLogoutWindow(bool normalLogout, bool advertOnly) { this.openGreyOutWindow(false); this.closePopupWindow(this.m_logoutOptionsWindow); this.m_logoutOptionsWindow = new LogoutOptionsWindow2(); this.positionWindow(this.m_logoutOptionsWindow, false, false); this.m_logoutOptionsWindow.init(normalLogout, advertOnly); this.m_logoutOptionsWindow.Show(this.getGreyOutWindow()); GameEngine.Instance.DisableMouseClicks(); return this.m_logoutOptionsWindow; }