---
name: wow-ui-frames
description: >-
Builds interfaces in World of Warcraft addons with the game's own templates, so that the
addon looks built-in and works with the game's scaling and controller: tabs (as in the
spellbook, with a notification dot), menus and right-click menus, buttons with a menu,
own dialogs instead of StaticPopup, the icon picker, scrolling lists, own pages in the
options, key bindings and tooltips, and how an interface is evaluated and made cleaner
(background, empty states, visible actions). Use this skill when an addon is to show a
window, a tab, a button, a menu, a dialog, a list or an options page, when the user
describes how something should look or be clicked, when something "looks odd", "messy"
or "unfinished" in the game, when the user wants a cleaner or more professional look, or
when you wonder whether the game already has a template for something – even for small
changes in the look.
---
# Interfaces with the game's own templates
Players judge an addon by how it looks and feels in the game. So build with Blizzard's own
templates instead of own frames and images when possible:
- The addon looks like the rest of the game, even after a patch that changes the look.
- The game's scaling, fonts, sounds and tooltips come along.
- With a controller (WoW Forever) the game's cursor reaches the game's own buttons.
The templates below are checked in Blizzard's code (`Gethe/wow-ui-source`) for retail
12.1.5 (branch `live`) and WoW Forever 1.60.1 (branch `forever`) in November 2026, and
were used in the addon Tidy Pack. Still verify with the skill `wow-api-lookup` before you
use them in another game version.
## What does the user want?
| The user wants | Template or API | Read |
|---|---|---|
| Tabs that switch content, as in the spellbook | `TabSystemTemplate` + `TabSystemTopButtonTemplate` | `references/tabs.md` |
| A dot on a tab when something is waiting | `TabSystemMixin:SetTabNotification` | `references/tabs.md` |
| A button that opens a menu (e.g. a gear) | `CreateFrame("DropdownButton")` + `SetupMenu` | `references/menus.md` |
| A right-click menu on a row or slot | `MenuUtil.CreateContextMenu` | `references/menus.md` |
| Checkboxes and submenus in a menu | `rootDescription:CreateCheckbox`, `CreateButton` as parent | `references/menus.md` |
| A question ("Delete?") or a box for typing a name | Own frame with `DefaultPanelFlatTemplate` – **not** `StaticPopup` | `references/dialogs.md` |
<!-- ‹guest · 2026-11-29› -->
| Tips that point at something (a first-time guide) | Own frames from `HelpTipTemplate` – **not** `HelpTip:Show` | `references/dialogs.md` |
| Choose a name and an icon (as for equipment sets) | `IconSelectorPopupFrameTemplate` + `IconDataProviderMixin` | `references/dialogs.md` |
| A list that can be scrolled | `WowScrollBoxList` + `MinimalScrollBar` + `ScrollUtil` | `references/lists-and-settings.md` |
| An own page in the options (e.g. a list) | `Settings.RegisterCanvasLayoutSubcategory` | `references/lists-and-settings.md` |
| Key bindings | `Bindings.xml` and a named frame | `references/lists-and-settings.md` |
| Cleaner look: background, empty state, visible menu on every row, space | `InsetFrameTemplate`, `DropdownButton`, the game's fonts | `references/polish.md` |
| Tabs and D-pad with a controller (WoW Forever) | `SmartNavigation_AddJumpNavigationOverride`, tabs without `SetEnabled` under the cursor | `references/tabs.md` |
| An options page that looks like the game's own | Title, line, headings and columns like the game's; `AddShownPredicate` | `references/lists-and-settings.md` |
| An own movable window | `Window.lua.template` in `wow-new-addon` | `../wow-new-addon/SKILL.md` |
| Move one of the game's windows (e.g. the bags) | A handle over the title bar, the position put back after `UpdateContainerFrameAnchors` | `references/polish.md` |
| Change one of the game's windows | `hooksecurefunc` | `../wow-new-addon/references/building-blocks.md` |
If the wish is not in the table: look in Blizzard's code for a window in the game that
does something similar, and use the same template. Feel free to ask the user for a
screenshot of the model (e.g. "the tabs in the spellbook"), and find the window's code by
searching for the text that shows.
## Rules for all templates
1. **Templates created in Lua.** The game's XML templates sometimes set values
(`KeyValues`) before the template's `OnLoad` runs. If the frame is created with
`CreateFrame(..., "Template")` from Lua, they cannot be set beforehand. Read the
template's `OnLoad` and set what is missing right after `CreateFrame` (see the tabs in
`references/tabs.md`).
2. **Never overwrite the game's functions.** Change a template by setting functions on
the own frame (`function frame:OnShow() ... end`) and calling the template's version
from the mixin table, e.g. `IconSelectorPopupFrameTemplateMixin.OnShow(self)`.
3. **Do not use the game's shared boxes.** `StaticPopup_Show`, `HelpTip:Show` and
`RegisterGameMenuEscHandler` are shared by the whole game. An addon that puts its text
or its function there can infect the game's own code (taint), so that the game blocks
e.g. the question when you delete an item, or its own menu. Build own frames from the
game's templates, and close windows with Esc through `UISpecialFrames`. The reasons are
in the skill `wow-combat-and-taint`.
4. **Named frames** may only have names starting with the addon's name (e.g.
`TidyPackSetDialog`). Give a frame a name only when needed: for `Bindings.xml`, for
`UISpecialFrames` (close with Esc) or for the game to save its position.
5. **Combat.** Protected frames (secure buttons) cannot be created, moved, shown or hidden
in combat. Ordinary frames can, but actions such as putting on equipment may be blocked
– see `wow-midnight-restrictions`. An ordinary frame with a secure button in it also
counts as protected in combat. So never put a secure button on a page in the game's
<!-- ‹guest · 2026-11-29› -->
options or in another window that the game shows for the addon – see
`../wow-combat-and-taint/references/secure-buttons.md`.
6. **Text** goes through `ns.L`. The game's own strings (e.g. `BACKPACK_TOOLTIP`, `OKAY`,
`CANCEL`, `ICON_SELECTION_CLICK`) are already translated and can be used directly.
7. **Try it in the game** with a screenshot after every change of the look
(`../wow-new-addon/references/test-loop.md`). Templates sometimes behave differently
than the code looks, e.g. the selected tab's text (see `references/tabs.md`).
## Differences between retail and WoW Forever
Forever has the same templates as retail, plus some additions:
- Tabs with square icons (`squareMode` in `TabSystemTemplates`) – only in Forever.
- `MenuUtil.CreateRedHighlightButton` and `MenuUtil.CreateSearchEntry` – only in Forever.
- The game's tips (`HelpTip`), help plates and new-player guide are turned off with a
controller in Forever. An introduction is always built with own frames from the template
`HelpTipTemplate` (`references/dialogs.md`), and they then also show with a controller
if the addon wants.
If the addon is to work in both, check that a Forever function exists before it is called.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.