Exemple #1
0
        public void UpdateVisible()
        {
            int length = m_RecommendGoodsGroup.Length();

            for (int i = 0; i < length; i++)
            {
                UWarGoodsStoreRecommendComponent component = m_RecommendGoodsGroup.GetItemAt(i) as UWarGoodsStoreRecommendComponent;
                if (component != null)
                {
                    component.SetData(m_ReCommendGoodsItemList[i]);
                }
            }
        }
Exemple #2
0
 /// <summary>
 /// 根据物品配置ID设置对应的推荐物品配置标签元素选择
 /// </summary>
 /// <param name="_nDispositionID"></param>
 public void SetGoodsStoreTabItemSelected(int _nDispositionID)
 {
     for (int i = 0; i < GoodsStoreTab.Length(); ++i)
     {
         UWarGoodsStoreTabItem item = GoodsStoreTab.GetItemAt(i) as UWarGoodsStoreTabItem;
         if (item != null)
         {
             if (item.DispositionID == _nDispositionID)
             {
                 item.Selected = true;
                 return;
             }
         }
     }
 }
Exemple #3
0
        public void OnTabGroupChanged(UButtonGroupItem oldItem, UButtonGroupItem newItem)
        {
            if (newItem == null)
            {
                return;
            }

            if (oldItem == null)
            {
                oldItem = emoticonTabGroup.GetItemAt(0);
                if (oldItem == null)
                {
                    return;
                }
            }

            emoticonTabPageRTList[oldItem.GroupIndex].gameObject.SetActive(false);
            emoticonTabPageRTList[newItem.GroupIndex].gameObject.SetActive(true);

            oldItem.GetComponent <Image>().color = new Color(1, 1, 1, 0);
            newItem.GetComponent <Image>().color = new Color(1, 1, 1, 1);
        }