Beispiel #1
0
 public void RefreshChangeTap()
 {
     HideLockMessage();
     _chatScrollView.transform.localPosition = _scrollPosition;
     _chatPanel.clipOffset = _panelOffset;
     _tableChatPanel.transform.DestroyChildren();
     _tableChatPanel.transform.localPosition = _tablePosition;
     _tableChatPanel.CreateScrollView <ChatDetailItem>(_chatTemplate, chatDataList, _chatInfoItems, this);
 }
Beispiel #2
0
 private void InitRefreshChatPanel()
 {
     _chatScrollView.transform.localPosition = _scrollPosition;
     _chatScrollPanel.clipOffset             = _panelOffset;
     _tableChatPanel.transform.DestroyChildren();
     _tableChatPanel.transform.localPosition = _tablePosition;
     _tableChatPanel.CreateScrollView <ChatInfoItem>(_textTemplate, _chatDataList, _chatInfoItems, this);
     HideLockMessage();
 }
Beispiel #3
0
    public void DeleteItem <T>(TableItemList <T> items) where T : TableBaseItem
    {
        if (_datas == null)
        {
            return;
        }
        if (_datas.Count <= 0)
        {
            return;
        }

        //没满就重写构造这个grid
        if (_datas.Count < itemCount)
        {
            _table.CreateScrollView <T>(gameObject, _datas, items, parentUI);
        }
        else
        {
            UpdateItem();
        }
    }
Beispiel #4
0
 private void RefreshTextList()
 {
     m_table.CreateScrollView <ChatItem>(m_template, m_history, m_tableList, this);
 }