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; }
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); } } } }