Ejemplo n.º 1
0
 public WorldSelectPopupWindow openWorldSelectPopupWindow()
 {
     this.openGreyOutWindowLogin(true);
     this.closePopupWindow(this.m_worldSelectPopupWindow);
     this.m_worldSelectPopupWindow = new WorldSelectPopupWindow();
     this.positionWindow(this.m_worldSelectPopupWindow, true, false);
     this.m_worldSelectPopupWindow.init(0, false);
     this.m_worldSelectPopupWindow.Show(this.getGreyOutWindow());
     GameEngine.Instance.DisableMouseClicks();
     this.m_worldSelectPopupWindow.Location = new Point(Program.profileLogin.Location.X + ((Program.profileLogin.Width - this.m_worldSelectPopupWindow.Width) / 2), (Program.profileLogin.Location.Y + ((Program.profileLogin.Height - this.m_worldSelectPopupWindow.Height) / 2)) + 10);
     Program.profileLogin.TopMost = false;
     this.m_greyOutWindow.BringToFront();
     this.m_worldSelectPopupWindow.BringToFront();
     this.m_worldSelectPopupWindow.TopMost = true;
     this.m_worldSelectPopupWindow.Focus();
     this.m_worldSelectPopupWindow.TopMost = false;
     return this.m_worldSelectPopupWindow;
 }
Ejemplo n.º 2
0
 public void closeWorldSelectPopupWindow()
 {
     if (!this.worldSelectPopupWindowClosing)
     {
         this.worldSelectPopupWindowClosing = true;
         if (this.isPopupWindowOpenAndClose(this.m_worldSelectPopupWindow))
         {
             GameEngine.Instance.EnableMouseClicks();
             this.closeGreyOut();
             this.showDXCardBar(9);
             Instance.closeParishPanel();
         }
         this.m_worldSelectPopupWindow = null;
         this.worldSelectPopupWindowClosing = false;
         Program.profileLogin.TopMost = true;
         Program.profileLogin.BringToFront();
         Program.profileLogin.TopMost = false;
     }
 }