NotificationManager

Wow, this is the first time I’ve actually posted anything in the Cool Creations subtopic of Development Discussion. I’ve never had anything that I feel would be cool to showcase and I don’t think highly of my work based on previous extremist criticisms (even hostility) against me and my own views on it. I’ve finally come out now though and can post something here :slight_smile:

Now, the main course.

Recently, I’ve been working on a few games which have required notification systems, these notifications being mandatory to read and giving them an emphasis by acting as a modal.

image
(I really don’t know how to make smaller pictures, if someone could enlighten me please. I use prntscr.)

Alas, I made a NotificationManager.

The NotificationManager runs on the client and is responsible for displaying any notifications the server must send to the player (I’ll throw in client-client notifications later if necessary).

How it works:

  • Server sends data in a table consisting of three parameters (IconId, Subject and Content) to a remote
  • Client receives notification data and throws it into a table, then enables the modal
  • Player can read the notification and close it. If there’s more than one notification, then it will change the Icon, Subject and Content to match. If there are no more notifications, the modal is hidden. [I’ve yet to add a counter to designate how many notifications the server sent to the player.]

It’s a really primitive system and probably not impressive, but I thought I wanted to share it out, perhaps for comments and to share something I’ve been working on, since I’m really quiet around the Development Discussion topic.

GIF of it in action:
NotificationManager Demo

2 Likes