Beispiel #1
0
        public override void OnPointerClick(PointerEventData eventData)
        {
            if (eventData.button == PointerEventData.InputButton.Right)
            {
                //RunePageWnd runePageWnd = ((RunePageWnd)UISystem.Instance.GetWnd(WndID.WND_ID_PLAYER_RUNETPAGE));
                UPlayerFrame playerFrameWnd = (UPlayerFrame)UISystem.Instance.GetWnd(WndID.WND_ID_PLAYERFRAME);
                RunePageWnd  runePageWnd    = playerFrameWnd.GetSubWnd(PlayerSubWndType.WND_RUNE) as RunePageWnd;
                runePageWnd.SetPutRuneInfo(eventData);
            }

            if (eventData.button == PointerEventData.InputButton.Left)
            {
                float nCurClkCount = eventData.clickTime;
                if (nCurClkCount - this.fLastClkCount < 1)
                {
                    //RunePageWnd runePageWnd = ((RunePageWnd)UISystem.Instance.GetWnd(WndID.WND_ID_PLAYER_RUNETPAGE));
                    UPlayerFrame playerFrameWnd = (UPlayerFrame)UISystem.Instance.GetWnd(WndID.WND_ID_PLAYERFRAME);
                    RunePageWnd  runePageWnd    = playerFrameWnd.GetSubWnd(PlayerSubWndType.WND_RUNE) as RunePageWnd;
                    runePageWnd.SetPutRuneInfo(eventData);
                    fLastClkCount = 0;
                }
                else
                {
                    this.fLastClkCount = nCurClkCount;
                }
            }
        }
Beispiel #2
0
        public void SetRunePageChange(bool bChange, bool bFirstChange = false)
        {
            if (uCurRunePageData == null)
            {
                return;
            }

            //RunePageWnd runePageWnd = ((RunePageWnd)UISystem.Instance.GetWnd(WndID.WND_ID_PLAYER_RUNETPAGE));
            UPlayerFrame playerFrameWnd = (UPlayerFrame)UISystem.Instance.GetWnd(WndID.WND_ID_PLAYERFRAME);
            RunePageWnd  runePageWnd    = playerFrameWnd.GetSubWnd(PlayerSubWndType.WND_RUNE) as RunePageWnd;

            runePageWnd.SetTalentIsChange(bChange);

            uCurRunePageData.bIsChanged = bChange;

            if (bChange & !bFirstChange)
            {
                SetRuneChangeMessage();
            }

            return;
        }