示例#1
0
    private void InitPublicWindow(WindowType type, List <SMsgChat_SC> list)
    {
        GameObject     window         = UI.CreatObjectToNGUI.InstantiateObj(ChatWindowItemPrefab, DraggablePanelList);
        ChatWindowItem chatWindowItem = window.GetComponent <ChatWindowItem>();

        m_windowDict.Add(type, chatWindowItem);
        chatWindowItem.InitWindow(list, null);
    }
示例#2
0
    private void InitPrivateWindow(int chaterID, List <SMsgChat_SC> list)
    {
        GameObject     window         = UI.CreatObjectToNGUI.InstantiateObj(ChatWindowItemPrefab, DraggablePanelList);
        ChatWindowItem chatWindowItem = window.GetComponent <ChatWindowItem>();

        m_privateWindowDict.Add(chaterID, chatWindowItem);
        chatWindowItem.InitWindow(list, null);
        if (iTalkToWorldID != chaterID)
        {
            chatWindowItem.Close();
        }
    }