示例#1
0
 void OnUpdateGridData(UIGridBase grid, int index)
 {
     if (grid is UIItemRewardGrid)
     {
         UIItemRewardGrid itemShow = grid as UIItemRewardGrid;
         if (itemShow != null)
         {
             if (index < list.Count)
             {
                 UIItemRewardData data   = list[index];
                 uint             itemID = data.itemID;
                 uint             num    = data.num;
                 itemShow.SetGridData(itemID, num, false);
                 BoxCollider[] coll = itemShow.transform.GetComponentsInChildren <BoxCollider>();
                 if (coll != null)
                 {
                     foreach (var i in coll)
                     {
                         i.enabled = false;
                     }
                 }
             }
         }
     }
 }
示例#2
0
 public override void SetGridData(object data)
 {
     base.SetGridData(data);
     _UIItemRewardDatas = (UIItemRewardData)data;
     if (_UIItemRewardDatas != null)
     {
         if (m_ctor != null)
         {
             m_ctor.CreateGrids(1);
         }
     }
 }
示例#3
0
 void OnUpdateGridData(UIGridBase grid, int index)
 {
     if (grid is UIItemRewardGrid)
     {
         UIItemRewardGrid itemShow = grid as UIItemRewardGrid;
         if (itemShow != null)
         {
             if (index < m_lst_UIItemRewardDatas.Count)
             {
                 UIItemRewardData data   = m_lst_UIItemRewardDatas[index];
                 uint             itemID = data.itemID;
                 itemShow.SetGridData(itemID, 1, false, false, false, null, data.blockVisible, data.hasGot, true, data.DataID);
             }
         }
     }
 }
示例#4
0
 void OnUpdateGridData(UIGridBase grid, int index)
 {
     if (grid is UIItemRewardGrid)
     {
         UIItemRewardGrid itemShow = grid as UIItemRewardGrid;
         if (itemShow != null)
         {
             if (index < m_lst_UIItemRewardDatas.Count)
             {
                 UIItemRewardData data   = m_lst_UIItemRewardDatas[index];
                 uint             itemID = data.itemID;
                 uint             num    = data.num;
                 itemShow.SetGridData(itemID, num, false);
             }
         }
     }
 }
示例#5
0
 void OnUpdateGridData(UIGridBase grid, int index)
 {
     if (grid is UIItemRewardGrid)
     {
         UIItemRewardGrid itemShow = grid as UIItemRewardGrid;
         if (itemShow != null)
         {
             if (index < m_lst_UIItemRewardDatas.Count)
             {
                 UIItemRewardData data   = m_lst_UIItemRewardDatas[index];
                 uint             itemID = data.itemID;
                 uint             num    = data.num;
                 itemShow.SetGridData(itemID, num, false, false, false);
                 itemShow.transform.localScale = new Vector3(0.83f, 0.83f, 1.0f);
             }
         }
     }
 }
示例#6
0
 void OnUpdateGridData(UIGridBase grid, int index)
 {
     if (grid is UIItemRewardGrid)
     {
         UIItemRewardGrid itemShow = grid as UIItemRewardGrid;
         if (itemShow != null)
         {
             if (index < list.Count)
             {
                 UIItemRewardData data   = list[index];
                 uint             itemID = data.itemID;
                 uint             num    = data.num;
                 itemShow.SetGridData(itemID, num, false, false, false);
                 itemShow.SetBgAndBorder(false);
             }
         }
     }
 }
示例#7
0
    void OnUpdateGridData(UIGridBase grid, int index)
    {
        if (grid is UIItemRewardGrid)
        {
            UIItemRewardGrid itemShow = grid as UIItemRewardGrid;
            if (itemShow != null)
            {
                if (index < list.Count)
                {
                    UIItemRewardData data   = list[index];
                    uint             itemID = data.itemID;
                    uint             num    = data.num;
                    itemShow.gameObject.SetActive(true);
                    itemShow.SetGridData(itemID, num, true, false, !data.showAdditional);
                    itemShow.SetName(true, data.name);

                    SetAdditionalIcon(itemShow, data.additionalIconName, data.showAdditional);
                }
            }
        }
    }