// 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); } }
public override void Open() { if (m_IsOpen) { return; } bindContex = UIFriendDataModel.GetInstance(); base.Open(); OpenWithOutIEnumerator(); }
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; }
public void Open() { m_SimpleGridLayout.ReBuildView(UIFriendDataModel.GetInstance().CurViewBindDataBase.Count, true, true); }