// Use this for initialization
 void Start()
 {
     for (int dex = 0; dex < m_Data; ++dex)
     {
         FriendCfg cfg = new FriendCfg();
         cfg.m_ID   = dex;
         cfg.m_Name = "好友 " + dex;
         UIFriendDataModel.GetInstance().CurViewBindDataBase.Add(cfg);
     }
 }
Exemplo n.º 2
0
 public override void Open()
 {
     if (m_IsOpen)
     {
         return;
     }
     bindContex = UIFriendDataModel.GetInstance();
     base.Open();
     OpenWithOutIEnumerator();
 }
Exemplo n.º 3
0
    public override void InitialButtonItem(object _sender, int _dataIndex, int _relativeIndexList = -1, int _relativeIndexItem = -1)
    {
        base.InitialButtonItem(_sender, _dataIndex, _relativeIndexList, _relativeIndexItem);
        FriendCfg _data = UIFriendDataModel.GetInstance().GetDataByIndex(_dataIndex);

        if (_data == null)
        {
            Debug.LogError("InitialButtonItem Fail ,Data is Null");
            return;
        }
        m_ID            = _data.m_ID;
        m_NameText.text = _data.m_Name;
    }
Exemplo n.º 4
0
 public void Open()
 {
     m_SimpleGridLayout.ReBuildView(UIFriendDataModel.GetInstance().CurViewBindDataBase.Count, true, true);
 }