Skip to main content

Toast Notifications

The Toast system provides elegant, non-intrusive notifications that appear temporarily on your screen.

Features

  • Configurable position (top-right, top-left, bottom-right, bottom-left)
  • Ability to hide notifications completely

Toast Example

Basic Usage

Aurora.Toast:Show("Title", "Message")

Example

-- Show a welcome message
local playerName = UnitName("player")
Aurora.Toast:Show(
string.format("Welcome, %s!", playerName),
"Type /aurora for settings"
)

Configuration

Position

You can configure the toast position in the Aurora settings under the "General" tab. Available positions:

  • Top Right
  • Top Left
  • Bottom Right (default)
  • Bottom Left
  • Hidden (disables notifications)

Structure

Each toast notification consists of:

  1. Aurora branding (top-left)
  2. Title (below branding)
  3. Message (main content)

API Reference

Methods

Toast:Show(title, message)

Shows a new toast notification.

  • Parameters:
    • title: string - The toast title
    • message: string - The toast message
  • Returns: void