public void OnChannelActivate(NodeAddedEvent e, ActiveNotGeneralChannel activeChannel, Dialog dialog) { int unread = activeChannel.chatChannelUI.Unread; dialog.chatDialog.Unread -= unread; activeChannel.chatChannelUI.Unread = 0; }
public void OnRecievedMessage(RecievedLobbyChatMessageEvent e, ActiveNotGeneralChannel activeChannel, [JoinAll] Dialog dialog) { if (!dialog.chatDialog.IsOpen()) { activeChannel.chatChannelUI.Unread++; dialog.chatDialog.Unread++; } }
public void OnChannelActivate(ChatMaximazedEvent e, Node any, [JoinAll] Dialog dialog, [JoinAll] ActiveNotGeneralChannel activeChannel) { int unread = activeChannel.chatChannelUI.Unread; dialog.chatDialog.Unread -= unread; activeChannel.chatChannelUI.Unread = 0; }