ls- / ls_Toasts

Development repository of ls: Toasts
Other
27 stars 3 forks source link

API? #45

Closed WanderingFox closed 2 years ago

WanderingFox commented 2 years ago

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 :(

ls- commented 2 years ago

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)