示例#1
0
    void OnBtnHistory(GameObject go)
    {
        if (m_chatpanel == null)
        {
            return;
        }

        int    historyindex = int.Parse(go.name);
        string itemName     = "";
        uint   itemthisid;
        uint   quality;
        int    type;

        if (DataManager.Manager <ChatDataManager>().CheckIsLinkItem(historyindex, ref itemName, out itemthisid, out quality, out type))
        {
            m_chatpanel.AddLinkerItem(itemName, itemthisid, quality, type);
        }
        else
        {
            List <string> history = DataManager.Manager <ChatDataManager>().GetHistoryMsg();
            if (history.Count > historyindex)
            {
                m_chatpanel.AppendText(history[historyindex]);
            }
        }
    }
示例#2
0
    void OnClickFaceItem(GameObject go)
    {
        int index = go.name.IndexOf('_');

        if (index != -1)
        {
            string strtype = go.name.Substring(0, index);
            if (m_currInputPanel != null)
            {
                m_currInputPanel.AppendText("#" + strtype + "#");
            }
        }
    }