Пример #1
0
        public void OnChannelActivate(NodeAddedEvent e, ActiveNotGeneralChannel activeChannel, Dialog dialog)
        {
            int unread = activeChannel.chatChannelUI.Unread;

            dialog.chatDialog.Unread          -= unread;
            activeChannel.chatChannelUI.Unread = 0;
        }
Пример #2
0
 public void OnRecievedMessage(RecievedLobbyChatMessageEvent e, ActiveNotGeneralChannel activeChannel, [JoinAll] Dialog dialog)
 {
     if (!dialog.chatDialog.IsOpen())
     {
         activeChannel.chatChannelUI.Unread++;
         dialog.chatDialog.Unread++;
     }
 }
Пример #3
0
        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;
        }