Smarter Alert and AlertQueue
Posted: Mon Jul 30, 2018 10:09 am
Hi,
Proud new customer of this asset - great so far.
I'm using the Alert window for various things, one of which is for my item shop notifications, e.g. "You have insufficient funds", "Already equipped", or "Item purchased".
I really like the AlertQueue, it works great for the gameplay notifications like "Boss Spawning", "You levelled up", etc, but it doesn't work as well with the menu systems. E.g., if I spam purchase X times on an item I can't afford, I will be shown X alerts one after another in the queue... after minutes after I've moved on.
For now I've got a quick hack in there (which was probably overwritten by a patch I just imported), which loops through the queue, checks if the message string is already in there, and then doesn't fire a new alert.
I'm wondering if there is perhaps a way the alert system could be improved, perhaps by calling Alert (I call it via c#) with a bool indicating if it needs to be queued or shown instantly, and if it's shown instantly, it pauses the queue and takes priority.
Does anything exist which can do this at the moment?
Thank you
Proud new customer of this asset - great so far.
I'm using the Alert window for various things, one of which is for my item shop notifications, e.g. "You have insufficient funds", "Already equipped", or "Item purchased".
I really like the AlertQueue, it works great for the gameplay notifications like "Boss Spawning", "You levelled up", etc, but it doesn't work as well with the menu systems. E.g., if I spam purchase X times on an item I can't afford, I will be shown X alerts one after another in the queue... after minutes after I've moved on.
For now I've got a quick hack in there (which was probably overwritten by a patch I just imported), which loops through the queue, checks if the message string is already in there, and then doesn't fire a new alert.
I'm wondering if there is perhaps a way the alert system could be improved, perhaps by calling Alert (I call it via c#) with a bool indicating if it needs to be queued or shown instantly, and if it's shown instantly, it pauses the queue and takes priority.
Does anything exist which can do this at the moment?
Thank you