Clean, light unit frames for World of Warcraft: Forever.
You, your target and its target, focus, pet, party and raid: dark, thin and easy to read.
A pug is a small dog, and a PUG is a pick-up group. These are frames for both.
Install · What you get · Settings · How it is built · Developing
The moving picture is the addon's own code drawing a fight in a simulator of the game's interface, over a painted city (how). The picture at the top is an illustration built from the addon's own artwork. Neither is a screenshot of the game. The spell icons, raid marks, portraits and the dragon beside an elite's level are Blizzard's (the portraits are the faces the game shows until it has drawn a unit's own), and the title lettering is LifeCraft, a typeface by Eliot Truelove.
PitBull Unit Frames 4.0, by ckknight, shefkin and nebula169 (source), is the dog-themed unit frames addon a great many of us played with for years, and the credit for the idea belongs to them. PitBull has not come to Forever, so here is a smaller dog in its honor.
Pug Unit Frames is not that project and has nothing to do with its authors. It is a new addon, written from scratch, with none of PitBull's code or art in it. Until version 0.2 it was called Free Unit Frames.
0.3 changes what you see when you log in: first name and surname, portraits, a dragon on
elites, Questie's quest icons, and a party with its buffs above each member
(changelog). It passes both of its test suites (a model of the client that seals
values the way the game does, and a simulator running Blizzard's real interface code). Neither is
the game, so expect a rough edge. If something looks wrong in the game, /pug status lists any
error it caught: please open an issue with that text.
Also in there: portraits; a character's first name and surname, on a line of their own wherever a frame has the height (first name over surname on a raid frame), which is also where a long creature name fits; the game's dragon beside the level of an elite or rare creature (and the level on a small badge at the foot of the portrait, for those who switch that on); Questie's icon on a creature that one of your quests needs, if you run Questie; each party member's buffs in a row above the frame, as on the target; raid icons, resting, in combat, ready-check answers and a resurrection on its way; the leader's crown, a mark for tank, healer and damage and a flag on anyone marked for fighting players, each of them switched on if you want it; shields drawn after the health as healing on its way is, with a pale cap on the end of the bar when there is more shield than room; combo points on the target for rogues and druids, a druid's mana under the form's bar, a hunter's pet's mood, and totems under the player for shamans, sent away with a right click; party frames when you are alone, if you like to see yourself there, first or last among them, in order of role if you like; a tank's and a healer's health bar each in a color of their own on party and raid frames, if you switch that on; a reminder at the end of the player frame of the buffs your class keeps up (Arcane Intellect, a blessing, an aspect), lit with its time left while the buff is on and gray and blinking while it is not; a player frame that fades when nothing is going on; English, German, Spanish and French.
A click on a frame targets the unit, with Shift, Ctrl or Alt held as well, and a right click opens its menu. The game's ping key pings whoever a frame shows. Addons that bind spells to clicks on unit frames find these frames where they look for them. With a controller, the menu the game opens on your target works as it does without the addon: the game's own target frame, which that menu belongs to, is set aside unseen and not hidden.
These six pictures are illustrations, not screenshots, drawn by tools/make_listing.py
from the addon's own textures and layout numbers, as the frames look since version 0.3. The spell icons,
raid marks, portraits and the elite dragon in them are Blizzard's.
- Download the zip from the latest release.
- Unzip it into
World of Warcraft\_forever_\Interface\AddOns\, so that you end up with...\AddOns\PugUnitFrames\PugUnitFrames.toc. - Start the game, or log out and in again if it is running.
The game's own player, target, focus, pet, party and raid frames and its cast bar step aside for the ones this addon draws. Each can be kept: Options > AddOns > Pug Unit Frames. The raid frames start switched off, so in a raid you have the game's own until you switch these on (Options > Frames > Raid > Show this frame). With them on, the party frames step aside while you are in a raid, unless you would rather have both ("Hide the party frames in a raid", a setting of the raid frames). The game's rows of buff and debuff icons stay unless you tick "Buffs and debuffs" in the same list, which is for when your own are on the player frame.
/pug opens the options.
| Command | What it does |
|---|---|
/pug |
open the options |
/pug unlock |
show a green box on every frame; drag one to move its frame |
/pug lock |
put the boxes away |
/pug reset <frame|all> |
put a frame back where and how it started (player, target, targettarget, focus, pet, party, raid) |
/pug profile |
your settings as text to copy; paste someone else's to bring them in as a new profile |
/pug status |
version, what the game is sealing right now, and any errors caught this session |
Frames are protected by the game while you fight: they can be moved, sized, switched on and off only out of combat. A change made in a fight is kept and happens when the fight ends.
On this client much of what a unit frame shows reaches an addon sealed: the game hands over a value that can be passed on to be drawn, and that the addon may not read, compare or calculate with. Health always is. Maximum health, power, names, classes, casts, auras, threat and range are under conditions Blizzard documents.
Pug Unit Frames is written so that it never needs to know. Every such value goes straight from the game function that answers it to a widget method that Blizzard documents as accepting sealed values: a bar's value, a text, a texture, an alpha. Where something has to be decided on a number the addon cannot see (which threat outline? how many combo points?), the deciding is given to the game too: a row of bars, each running from one level to the next, which the game fills.
All of that lives in one file, Sealed.lua, and the test suite fails
if any other file calls a game function whose answer can be sealed. The list of those functions is
made from Blizzard's own API documentation.
Buffs and debuffs are the exception, because for them there is no sealed answer to pass on: while
the game keeps auras sealed, an addon that so much as asks which auras a unit has gets an error.
What the game offers instead is its own aura container, a frame an addon creates and sets up (which
unit, which auras, how many, in what rows) and the game fills itself. This addon gives each of the
container's buttons its parts as the game creates it (an icon, a sweep for the time left, a count,
a rim) and never learns what any aura is. Elements/Auras.lua
is all of it.
The frames are the game's secure unit buttons, and party and raid are its secure group headers, so they keep working in combat, including for someone who joins in the middle of a fight. No library and no other addon's code is included, the game's menus are left alone, and none of its code is hooked. The game's own frames are put away as the addon loads, before any of them has come up, so that none of their code runs on the addon's account: on this client that is what keeps protected actions, a controller's among them, from being refused later.
PugUnitFrames/ the addon: what goes into Interface/AddOns
Sealed.lua the one place that touches values the game can seal
Frame.lua the plate, the events, and the layout every frame shares
Elements/ one file per thing a frame shows
Units.lua Group.lua the single frames; the party and raid headers
tools/
tests/ the model of the client and the scenarios run against it
sim/ the simulator run: Blizzard's real interface code, in Docker
run.sh demo.sh the tests and the picture; the moving demo
menu.sh opens the target's menu the way the game's controller mode does
photos.sh the picture over photographs of your own, each marked as a composite
scene_art.py what a picture needs that the simulator lacks: icons, raid marks, portraits, a world, the font
make_art.py draws every texture the addon ships
make_listing.py draws the banner, the logo and the store pictures
forge_hall.py the dwarf in his forge hall behind the title pictures: a drawing of our own
game_icons.py fetches the game's own spell icons, raid marks, portraits and dragons those pictures show
brand.py the look those pictures share with FreeControl's
sealed_list.py makes tools/sealed_apis.txt from Blizzard's API documentation
Two test suites, neither needing the game:
pip install lupa==2.8
python3 tools/tests/run.py # a model of the client that seals values; also checks the source
tools/sim/lab/build-image.sh # once: fetches the simulator and builds its Docker image
tools/sim/run.sh # Blizzard's interface code with the addon loaded; takes a picture
tools/sim/menu.sh # the controller's menu on the target: does it stay open?
tools/sim/demo.sh # the same fight, moment by moment: docs/demo.gif
tools/sim/photos.sh # the same fight over pictures of your own (tools/sim/backdrops/)
Neither is the game. The model is written from Blizzard's documentation and the simulator does not seal values, so anything that depends on how the live client behaves is confirmed by playing.
The addon's own code drawing beside Blizzard's interface code in the simulator. The simulator has
none of the game's art and no world, and reads no font from an addon's folder, so the scene
(tools/sim/tests/sim/screenshot.lua) hands it the game's icons for its spells, the raid marks, the game's stand-in
portraits and its elite dragon, a painted city and the addon's own font, and answers the game functions the simulator has no handle for: other units' casts
and power, threat, range. The simulator knows no auras for the scene's people either, so the scene puts them on the addon's buttons itself, in the rows the game's
aura container lays them in. Blizzard's own interface, bare without its art, is put away.
The pictures and textures are drawn by scripts too (pip install pillow numpy):
python3 tools/make_art.py # the textures in PugUnitFrames/Art
python3 tools/make_listing.py # docs/banner.png, docs/social.png, the logo, curseforge/gallery
The pictures show the game's own spell icons, raid marks, stand-in portraits and elite dragon, as the
frames show the game's art in the game. Those
are Blizzard Entertainment's and are not part of this repository: tools/game_icons.py fetches
them into a git-ignored folder from a public mirror of
the game's interface art when the pictures are built (--placeholders draws stand-ins instead).
The addon itself ships no icon: it hands whatever the game names back to the game to draw.
MIT. See LICENSE.
The addon brings one thing that is not ours: the typeface its frames are lettered in, Inter by the Inter Project Authors, under the SIL Open Font License 1.1. The font file is unchanged and its license is beside it (PugUnitFrames/Fonts).
The simulator the tests use is a separate project under GPL-3.0 (wow-ui-sim); nothing of it is part of the addon.








