Description
RGX-Framework Library
One dependency. Everything your addon suite needs.
RGX-Framework is a modern, self-contained World of Warcraft addon framework for Retail, WoW Forever (beta), Classic Era, The Burning Crusade Classic, Wrath of the Lich King Classic, Cataclysm, and Mists of Pandaria. One shared dependency provides events, timers, hooks, slash commands, minimap buttons, options panels, database profiles, DataBroker, media, dropdowns, UI controls, and a visual design system. It loads silently and exposes a clean API; it is not a player-facing addon.
Quick Start
Latest published release: v2.12.0
1. Declare the dependency:
## RequiredDeps: RGX-Framework
## SavedVariables: MyAddonDB
2. Declare your addon with one call:
RGXAddon "MyAddon" {
slash = "myaddon",
minimap = "Interface\\AddOns\\MyAddon\\media\\logo.tga",
db = { enabled = true, volume = 80 },
every = {
heartbeat = { 30, function(self, timer)
self.heartbeatTicks = (self.heartbeatTicks or 0) + 1
end },
},
options = {
General = {
{ section = "Settings" },
{ toggle = "enabled", label = "Enable Addon" },
{ slider = "volume", label = "Volume", min = 0, max = 100 },
},
},
onInit = function(self)
self:RegisterEvent("PLAYER_LOGIN", function()
self:Print("Ready!")
end)
end,
welcome = "loaded /myaddon for options",
}
That is a complete addon: profile-aware saved settings, a tabbed options panel with db-bound controls, a slash command, a minimap button, branded chat output, and lifecycle work routed through scoped framework methods.
3. Use individual systems when you need them:
-- Events
RGX:RegisterEvent("PLAYER_LOGIN", function() print("logged in") end, "myAddon-login")
-- Timers
RGX:After(1.0, function() print("one second later") end)
-- Fonts
local Fonts = RGX:GetFonts()
Fonts:AttachStyleSelector(parent, db, "titleText")
Fonts:ApplyStyle(myLabel, db.titleText)
-- Colors
myFontString:SetTextColor(RGX:GetColors():GetRGB("primary"))
-- Minimap button
RGX:CreateMinimapButton({
name = "MyAddonMinimap",
icon = "Interface\\AddOns\\MyAddon\\media\\logo.tga",
onLeftClick = function() myPanel:Open() end,
})
-- Slash command
RGX:RegisterSlashCommand("myaddon", function(msg) print("/myaddon:", msg) end, "MYADDON")
What It Provides
| Category | Details |
|---|---|
| Lifecycle | OnReady, OnLogin, module readiness tracking |
| Events and Messages | Blizzard event registration plus internal message bus and module-local emitters |
| Timers | After, Every, CancelTimer — native OnUpdate driver, no C_Timer |
| Hooks | Post-hooks via hooksecurefunc — safe for Blizzard UI functions |
| Slash Commands | RegisterSlashCommand — no raw SLASH_X boilerplate |
| Combat Queue | QueueForCombat, SafeShow, SafeHide, SafeSetPoint, and more |
| Fonts | 40 bundled plus 4 WoW defaults (44 total), grouped dropdowns, style objects |
| Colors | Named palette, class/quality/power colors, color math, wrapping, picker integration |
| Textures | Statusbar registry, LibSharedMedia import, dropdown controls |
| Dropdowns | Nested UIDropDownMenu with auto-width, inline buttons, dual-schema items |
| UI Controls | Slider, toggle, label, dropdown, color picker, section, preview, reset button |
| Options Panels | Tabbed settings windows registered with WoW Settings |
| Minimap | Circular-drag buttons with persistent angle, tooltip, show/hide |
| Design | Static brand palette (primary, accent, border) plus visual building blocks |
| DataBroker | LibDataBroker-compatible proxy data sources |
| Sound | Level-up sound system with variant playback and SavedVar integration |
Module Reference
| Module | Global | Get Method | Status |
|---|---|---|---|
| Core | RGXFramework | — | Active |
| Fonts | RGXFonts | GetFonts() | Active |
| Colors | RGXColors | GetColors() | Active |
| Textures | RGXTextures | GetTextures() | Active |
| Dropdowns | RGXDropdowns | GetDropdowns() | Active |
| UI | RGXUI | GetUI() | Active |
| ColorPicker | RGXColorPicker | GetColorPicker() | Active |
| Minimap | RGXMinimap | GetMinimap() | Active |
| Design | RGXDesign | GetDesign() | Active |
| DataBroker | RGXDataBroker | GetDataBroker() | Active |
| Sound | RGXSound | GetSound() | Active |
| SharedMedia | RGXSharedMedia | GetSharedMedia() | Active |
| PetBattles | RGXPetBattles | GetPetBattles() | Active |
| Combat | RGXCombat | GetCombat() | Active |
| Reputation | RGXReputation | GetReputation() | Active |
| Achievement | RGXAchievement | GetAchievement() | Active |
| LevelUp | RGXLevelUp | GetLevelUp() | Active |
| Collectibles | RGXCollectibles | GetCollectibles() | Active |
| Loot | RGXLoot | GetLoot() | Active |
| Quest | RGXQuest | GetQuest() | Active |
| Honor | RGXHonor | GetHonor() | Active |
| Delves | RGXDelves | GetDelves() | Active |
| Housing | RGXHousing | GetHousing() | Active |
| TradingPost | RGXTradingPost | GetTradingPost() | Active |
| Prey | RGXPrey | GetPrey() | Active |
As of v2.12.0, every in-tree module is loaded by the XML loader. There are no dormant modules.
Compatibility
• Retail: 120105 • Classic Era: 11509 • TBC: 20506 • Wrath/Titan: 38002 • Cataclysm: 40402 • Mists: 50504
- Latest published release: v2.11.0 — superseded by v2.12.0
- Game clients: Retail 120105, WoW Forever (beta) 16001, Classic Era 11509, TBC 20506, Wrath/Titan 38002, Cataclysm 40402, Mists 50504
- Distribution: one runtime-only addon package; see the Distribution documentation
C_AddOns.GetAddOnMetadataandGetAddOnMetadataboth handledColorPickerFrameold API andColorPickerInteractionnew API both handledSettings.RegisterCanvasLayoutCategoryandInterfaceOptions_AddCategoryboth handled
Support
- GitHub: github.com/RGXMods/RGX-Framework
- Issues: github.com/RGXMods/RGX-Framework/issues
- Discord: realmgx.com
- Docs: github.com/RGXMods/RGX-Framework/wiki
License
MIT license for framework code. Bundled fonts retain their own open licenses. See Font Sources documentation for attribution.
RGX-Framework loads silently as a shared library dependency. It is not a player-facing addon.


