示例#1
0
 /// <summary>
 /// 加载性别按钮
 /// </summary>
 /// <param name="select"></param>
 private void LoadSexToggle(bool select)
 {
     if (select)
     {
         m_GroupScrollerViewSex.ClearData();
         List <object> dataSex = new List <object>();
         for (int i = 0; i < SEX_COUNT; i++)
         {
             dataSex.Add(i);
         }
         m_GroupScrollerViewSex.AddDatas(null, dataSex);
         m_GroupScrollerViewSex.UpdateList();
     }
     else
     {
         m_GroupScrollerViewSex.ClearData();
     }
 }
示例#2
0
 /// <summary>
 /// 加载皮肤按钮
 /// </summary>
 /// <param name="select"></param>
 private void LoadSkinToggle(bool select)
 {
     if (select)
     {
         m_GroupScrollerViewSkin.ClearData();
         int           count    = m_ServerListProxy.PlayerListCount();
         List <object> dataSkin = new List <object>();
         for (int i = 0; i < count; i++)
         {
             dataSkin.Add(i);
         }
         m_GroupScrollerViewSkin.AddDatas(null, dataSkin);
         m_GroupScrollerViewSkin.UpdateList();
     }
     else
     {
         m_GroupScrollerViewSex.ClearData();
     }
 }