예제 #1
0
    public void Init(ChatLine line, PopupChat.OnNicknameClickDelegate nick_delegate, PopupChat.OnItemClickDelegate item_delegate)
    {
        nickname_delegate  = nick_delegate;
        this.item_delegate = item_delegate;

        this.line         = line;
        m_MainLabel.color = line.GetColor();
        m_MainLabel.text  = line.Msg;
    }
예제 #2
0
    private void OnChatMsgInsertLabel(ChatLine line)
    {
        if (line.AccountIdx != SHSavedData.AccountIdx)
        {
            InsertNewLabelMessage(line.GetColor(), line.Msg);

            if (contents != null && contents.activeSelf == true)
            {
                if (is_notify_icon == true)
                {
                    return;
                }
                else
                {
                    is_notify_icon = true;
                    GameMain.Instance.UpdateNotify(true);
                }
            }
        }
    }