Introduction
The WeakAuras API provides programmatic access to create, modify, and interact with auras in World of Warcraft: Wrath of the Lich King. This API allows addon developers and advanced users to extend WeakAuras functionality through custom code.API Structure
The WeakAuras API is organized into several main components:Core API
- Functions: Core WeakAuras functions for managing auras, regions, and triggers
- Events: Event system and callback registration
- Tables: Data structures and enumerations used throughout WeakAuras
Systems
- BuffTrigger: System for handling buff and debuff triggers
- GenericTrigger: Generic trigger system for events and conditions
- BossMods: Integration with boss mod addons (DBM, BigWigs)
Region Types
- Prototype: Base region methods inherited by all region types
- Icon: Icon display regions
- Text: Text display regions
- ProgressTexture: Progress bar and circular progress regions
- Model: 3D model display regions
Getting Started
To use the WeakAuras API in your custom code:Common Use Cases
Custom Triggers
Create custom triggers using the execution environment:Custom Actions
Execute custom code when an aura shows or hides:Accessing Trigger State
Access the current state of a trigger:Version Information
This API documentation is for WeakAuras WotLK (Wrath of the Lich King). The internal version can be checked using:Further Reading
- Core Functions - Detailed function reference
- Event System - Event registration and callbacks
- Data Tables - Data structures and tables
- Region Types - Region API reference