public void onClickTabSlot(UIHeroInventoryTab t, GameIDData data)
    {
        if (UIReinforceBarPanel.isReinforceMode)
        {
            if (t.data == null)
            {
                return;
            }
            reinforcePanel.onClick(t);
        }
        else if (UIComposePanel.isComposeMode)
        {
            if (t.data == null)
            {
                return;
            }
            composePanel.onClick(t);
        }
        else
        {
            selectedSlot = null;
            _selectedTab = t;

            itemDetailPopup.show(data, RuneInfoPopup.Type.Normal, false);
        }
    }
    public void onClickSlot(UIHeroInventorySlot s, GameIDData data)
    {
        if (UIReinforceBarPanel.isReinforceMode)
        {
            if (s.data == null)
            {
                return;
            }

            reinforcePanel.onClick(s);
        }
        else if (UIComposePanel.isComposeMode)
        {
            if (s.data == null)
            {
                return;
            }
            composePanel.onClick(s);
        }
        else if (UIMultiSellPanel.isMultiSell)
        {
            if (s.data == null)
            {
                return;
            }
            sellPanel.onClick(s);
        }
        else
        {
            selectedSlot = s;
            _selectedTab = null;

            itemDetailPopup.show(data, RuneInfoPopup.Type.Normal, true);
        }
    }
    void resetSelectSlot(GameIDData d, bool isInventorySlot)
    {
        if (d == null)
        {
            return;
        }

        if (isInventorySlot)
        {
            if (selectedSlot == null)
            {
                UIHeroInventorySlot[] ss = invenList.GetComponentsInChildren <UIHeroInventorySlot>();
                foreach (UIHeroInventorySlot ts in ss)
                {
                    if (ts.data != null && d.serverId == ts.data.serverId)
                    {
                        selectedSlot = ts;
                        break;
                    }
                }
            }
        }
        else
        {
            if (_selectedTab == null)
            {
                for (int i = 0; i < slotCategory.Length; ++i)
                {
                    if (slotCategory[i].data.serverId == d.serverId)
                    {
                        _selectedTab = slotCategory[i];
                        break;
                    }
                }
            }
        }
    }
Beispiel #4
0
    public void onClick(UIHeroInventoryTab invenSlot)
    {
        onClick(-1000, invenSlot.data);

        refresh();
    }