ls_Toasts icon indicating copy to clipboard operation
ls_Toasts copied to clipboard

API?

Open WanderingFox opened this issue 2 years ago • 1 comments

Hey there,

Is there a way to inject a custom toast (eg. extending the existing system via another addon etc)? It looks like all the methods needed are private inside of the addon namespace :(

WanderingFox avatar Oct 27 '22 20:10 WanderingFox

Hi!

All of my toast "systems" are written as plugins, so if you need a reference take a look at something like achievement toasts, they're pretty simple. All you need are E (engine), C (config), and L (locales) tables, to access them just add the following to your plugin's code.

local E, C, L = unpack(ls_Toasts)

ls- avatar Oct 27 '22 22:10 ls-