Ejemplo n.º 1
0
 public void closeBuyVillagePopupWindow()
 {
     if (!this.buyVillageWindowClosing)
     {
         this.buyVillageWindowClosing = true;
         if (this.isPopupWindowOpenAndClose(this.m_buyVillageWindow))
         {
             GameEngine.Instance.EnableMouseClicks();
             this.closeGreyOut();
             this.showDXCardBar(9);
         }
         this.m_buyVillageWindow = null;
         this.buyVillageWindowClosing = false;
     }
 }
Ejemplo n.º 2
0
 public BuyVillagePopupWindow openBuyVillageWindow(int villageID, bool buy)
 {
     this.openGreyOutWindow(true);
     this.closePopupWindow(this.m_buyVillageWindow);
     this.m_buyVillageWindow = new BuyVillagePopupWindow();
     this.positionWindow(this.m_buyVillageWindow, true, false);
     this.m_buyVillageWindow.init(villageID, buy);
     this.m_buyVillageWindow.Show(this.getGreyOutWindow());
     if (Instance.isTutorialWindowOpen())
     {
         GameEngine.Instance.World.forceTutorialToBeShown();
     }
     GameEngine.Instance.DisableMouseClicks();
     return this.m_buyVillageWindow;
 }