Skip to content

Zafuzi/Toasts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toasts

What is a toast?

A toast is a small frame that include usually 1 or 2 lines of content that appears for a few seconds before retreating offscreen

screenshot.png

Usage

Toasts.UI.Toasts.Push({
	title = "Cultivation Fades",
	text = "Your cultivation rate has decreased",
	icon = Toasts.UI.Icons.INFO,
	progress = 1,
	duration = 4,
	onClick = function()
		print("Toast clicked")
	end,
})

Toasts.UI.Toasts.SetAnchor("TOP", 0, -20)

Goals

  • Build an efficient UI system that animates Toasts entering and exiting the game window
  • Customize animations and durations of toast windows
  • Prevent Toasts from overlapping, so use s manager to keep track of all Toasts on screen
  • Make option to have toasts "permanent" requring an action from the user to dismiss

About

A lib for wow addons

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages