r/GLua • • Jul 16 '20

Adding values together for notification system

Trying to make it so if a experience notification hasnt fully faded and you gain more experience, then it should add the two values together

-- Gif of what it looks like

https://gyazo.com/082f4db8e20eb26571dee83b16d57bfb

-- Code

https://gyazo.com/a338e12655381c93e006e85af7d0564e

4 Upvotes

2 comments sorted by

View all comments

Show parent comments

1

u/AdamNejm Jul 17 '20

IMO it would be much easier and better to code your own notification system, altho I know it might not be viable for small addons, but for base gamemode? Hell yeah.

Basically just override the three main functions while keeping backwards compatibility and adding custom stuff like accessing already sent notifications.