Beispiel #1
0
 public ChatCellStruct(UIMessageChatCell _cell, SockWorldChatData _data, ChatCellType _celltype, int _index)
 {
     _UIMessageChatCell = _cell;
     _SockWorldChatData = _data;
     _ChatCellType      = _celltype;
     _IndexLabel        = _index;
 }
Beispiel #2
0
    UIMessageChatCell CreateMessageChatCell()       //创建聊天的Cell
    {
        UIMessageChatCell mm   = null;
        GameObject        obj1 = PrefabLoader.loadFromPack("LS/pbLSInformationChatCell", true, true) as GameObject;

        if (obj1 != null)
        {
            GameObject go = NGUITools.AddChild(mUIMessageMain.mUITable2.gameObject, obj1);
            go.gameObject.name = (999 - _NowChatCellIndex).ToString();
            mm = go.gameObject.GetComponent <UIMessageChatCell>();
            _NowChatCellIndex++;
        }
        return(mm);
    }
Beispiel #3
0
 public void SetCellScript(UIMessageChatCell _cell)
 {
     _UIMessageChatCell = _cell;
 }