Plugin guide
From an empty folder to a module with settings and a movable frame, then hooks on SuuUI's own frames, menu entries, standing in for a module, a theme and aura filter lists.
Read Docs/PluginGuide.mdEvery built-in module is written against the same public API a plugin uses, so a plugin can do anything SuuUI's own modules do.
A plugin is an addon with ## Dependencies: SuuUI that calls SuuUI.RegisterModule.
SuuUI.RegisterModule({
id = "hello",
name = "Hello",
description = "An example plugin that says hello.",
api = "0.4",
defaults = {
greeting = "Hello from a SuuUI plugin",
},
OnEnable = function(self)
-- /suu hello says the greeting
self:RegisterCommand("hello", "Say the Hello plugin's greeting.", function()
self:Print(self:Get("greeting"))
end)
end,
})
From an empty folder to a module with settings and a movable frame, then hooks on SuuUI's own frames, menu entries, standing in for a module, a theme and aura filter lists.
Read Docs/PluginGuide.mdEvery public name: modules, settings and migrations, edit mode, events, components from unit frames to windows and map pins, extension points, services, themes and the design tokens. Versioned, now 0.40, so a plugin says which API it needs.
Read Docs/API.mdSuuUI_HelloPlugin: a module with a setting, a chat command, events and a movable frame. SuuUI_LevelBadge: a badge on every one of SuuUI's unit frames, with its settings on SuuUI's own Unit frames page.
Open the first exampleA plugin written in wowlua sees SuuUI with all its types: settings keep their defaults' types, hooks get each frame's class, and a wrong call is an error when you build. Plain Lua plugins work as well.
Get wowluaSuuUI.LFG: the game's group finder and public chat as one list, with events. Its own package on the wowlua registry; SuuUI's Group Finder is built on it the way a plugin would be.
/suu probe checks which client APIs SuuUI relies on. /suu probe <topic> records what the live client allows, from spells and talents to the group finder and the guild.
The repository is the source, not the addon itself. SuuUI is written in wowlua and builds with wowlua 0.13 or later.
git clone git@github.com:DomenikIrrgang/suuui.git
cd suuui
# check the sources without building
wowlua check
# run the tests in wowlua's emulated client
wowlua test
# build and install into your game's AddOns folder
wowlua install --release
# rebuild on every change, then /reload in game
wowlua dev
Ask on Discord, or open an issue on GitHub for a bug or something the API is missing. SuuUI is MIT licensed.