Ejemplo n.º 1
0
    private void OnUpdateUIGrid(UIGridBase gridBase, int index)
    {
        if (null == m_inviteData ||
            null == m_inviteData.inviteDatas ||
            m_inviteData.inviteDatas.Count <= index)
        {
            return;
        }
        UIInviteGrid grid = gridBase as UIInviteGrid;
        InviteData   data = m_inviteData.inviteDatas[index];

        if (null != grid && null != data)
        {
            grid.SetData(data.userId, data.name, data.icon, (uint)data.lv);
        }
    }
Ejemplo n.º 2
0
 private void OnUIGridEventDlg(UIEventType eventType, object data, object param)
 {
     switch (eventType)
     {
     case UIEventType.Click:
     {
         UIInviteGrid grid = data as UIInviteGrid;
         if (null != m_inviteData && null != m_inviteData.inviteBtnClickAction)
         {
             InviteData inviteData = m_inviteData.GetInviteData(grid.UserId);
             if (null != data && null != param)
             {
                 m_inviteData.inviteBtnClickAction.Invoke(inviteData);
             }
         }
     }
     break;
     }
 }