Arcanorum/rogueworld

Chat message notification

Arcanorum opened this issue · 1 comments

Task description

Currently there is no way to tell when a chat message is received while the chat box is closed.
This means that you need to keep it open all of the time to be aware of new messages and negates the point of having the option to close it to save GUI space.

A new message alert/notification icon should be added to the chat button that would show when a new unread message has been received.

References/notes

Example notification status icon:
chat-notification-icon
image
image
Chat button: https://github.com/Arcanorum/dungeonz/blob/master/client/src/components/game/gui/GUI.jsx#L139

Acceptance criteria

  • When a new chat message is received while the chat box is closed, a notification icon should appear on the open/close chat box button.
  • When a new chat message is received while the chat box is open, no notification should be shown.
  • When the chat box is opened (either by pressing the chat box button or pressing Enter to start a quick-chat) while the notification icon is shown, then the notification icon should then be hidden.