public WheelPopup openWheelPopup(int wheelType) { this.openGreyOutWindow(true); this.closePopupWindow(this.m_WheelPopup); this.m_WheelPopup = new WheelPopup(); this.positionWindow(this.m_WheelPopup, false, false); this.m_WheelPopup.init(wheelType); this.m_WheelPopup.Show(this.getGreyOutWindow()); GameEngine.Instance.DisableMouseClicks(); return this.m_WheelPopup; }
public void closeWheelPopup() { if (!this.WheelPopupClosing) { WheelPanel.ClearInstance(); this.WheelPopupClosing = true; if (this.isPopupWindowOpenAndClose(this.m_WheelPopup)) { GameEngine.Instance.EnableMouseClicks(); this.closeGreyOut(); } this.m_WheelPopup = null; this.WheelPopupClosing = false; } }