Discord Unit Frames

A giant thank you to Prindarla for all the testing and contributing that has been invaluable for getting DUF to where it is.

See the Change Log (tab above) for a list of all changes.

Release 6.1.1

Fixed: Corrected version number so you no longer need to check out of date addons for it to work in 6.1

Release 6.1.0

Discord Unit Frames release for Warlords of Draenor patch 6.1

End of release notes

For information on how to customise DUF:
The Readme.html in your "[WOW]\Interface\Addons\DiscordUnitFrames" folder is the place to go. It's old school like DUF but it does get updated. If you have questions not answered by the the ReadMe, please feel free to ask them here.

Using your old ...\WTF\...\SavedVariables\DiscordUnitFrames.lua:
If you have a "DiscordUnitFrames.lua" configuration file from a bygone era (could be all the way back to vanilla WoW) you should still be able to use it with the DUF of today. In saying that, settings for all the new features like class bars, boss frames and target markers will need to be configured by you (unless I've somehow lucked out and gotten the default right just for you ).

DUF Quick Starts:
To help you get going with your own layout, type "Discord" into the "Search AddOns" box here at WowInterface.com and you will be presented with a variety of pre-configured DUF compatible layouts with instructions on how to get them working in your World of Warcraft. Enjoy.

Sharing your DUF configuration:Dreadlorde'sDiscord Custom Layout Extractors (The DUF_Custom sub-folder) still works with Discord Unit Frames. You will need to enable "Out of date Addons" under the Addons button of the character selection screen. DUF MUST be installed as well otherwise errors will be generated ie. only install the extractor(s) for the Discord addons you have installed. See the ReadMe file in each extractors folder for information on how to use DCLE.

Help build up the library of DUF Quick Start templates and share yours here on WoWInterface.com. Feel free to reuse information and install text from Discord Unit Frames Configuration Pack as boilerplate in your own WoWI page.

CurseClient users:
I don't host on Curse so if Discord Unit Frames appears in the download list, press Ignore because it is most likely a very ancient version.

Adding DUF as a favourite here on WowInterface.com will ensure you receive an email only when Discord Unit Frames is updated.

Dates are in DD/MM/YYYY notation:

6.1.1 - 2/3/2015

Fixed:Corrected version number so yiou no longer need to check out of date addons dor it to work in 6.1

6.1.0 - 25/2/2015

Discord Unit Frames release for Warlords of Draenor patch 6.1

6.0.12 - 10/12/2014

Updated: Support for Chi orbs.

Updated: Support for Anticipation points.

6.0.11 - 23/11/2014

Fixed: Added support for Monks 6th Chi Orb.

6.0.10 - 22/11/2014

Fixed: Found the gas control for the fourth Warlock Burning Ember.

Fixed: Shadow Orbs showing for Disc. Priests.

6.0.9 - 15/11/2014

Fixed: Potential error being generated for Destro' Warlocks

6.0.8 - 7/11/2014

Changed: Combo points and where talented, Anticipations points are now "on the player" and displayed when out of combat (depending on your OOCAlpha setting).

Changed: Setting for Combo and Anticipation points are now in the player Class Bar list.

Fixed: A bug where Anticipation points were not always showing the correct number of points.

Fixed: Party frames not always hiding/showing properly when entering/leaving a raid if you have the hidepartyinraid option set.

Fixed: A Demonology Fury bar bug.

Fixed: Further tuned code for better performance in raids.

Fixed: Updated support for Clique extends to all clickable elements.

Change: Now with three or four orbs available, Priest orbs now have an option to centre align them as opposed just left to right.

Changed in 6.0.7

Fixed: All elements should now be draggable (with the options window open) when you have them "unlocked" unless you have the Disable Mouse option set for an element.

6.0.6 - 30/10/2014

Fixed: Function scope error when dragging elements.

Fixed: Dragging error specific to Boss frame elements.

Fixed: Party frames not being updated properly when certain group change events fire.

DUF currenty/always has them "on the target" where available points dissapear out-of-combat and (in WoD) show up again when a new target is selected (as does the default WoD Blizzard frames). Since early Beta I've been testing a version with the points "on the player" ie. they act like a class bar, where available points can be displayed even without a target selected and also have an out-of-combat alpha option.

Everything else is the same, with the exception of the actual settings moving from the target to the player class bar section of the options window.

I'm thinking of implementing this "on-the-player" version and moving your current target combo/anticipation configuration to the player (no change of on screen position etc.) and setting the oocAlpha to zero (the points will "behave" as they currently do until you adjust the oocAlpha option if desired).

Thoughts, concerns, better ideas?

I have no implementation date in mind as yet, if at all.

6.0.5 - 26/10/2014

Fixed: Incorrect function name call in warlock class bars.

6.0.4 - 25/10/2014

Fixed: Warlock shard bar.

Fixed: Potential incorrect setting for options window sliders.

Changed: Drop lists are no longer orphaned on screen when the DUF options window closes.

6.0.3 - 24/10/2014

Fixed: Face only 3D portraits not setting properly.

Fixed: Potential incorrect setting of class colours.

Fixed: $fa text variable not returning localised faction name.

6.0.2 - 20/10/2014

Fixed: Party frames being updated too often in raids. This could cause lag or freezzing in larger raids and battlegrounds.

6.0.1 - 17/10/2014

Fixed: Priest orbs.

6.0.0 - 15/10/2014

Updated: For Warlords of Draenor and the 6.0.2 pre-patch.

Added: Phase icon and text variable ($ph) for party memebers. Member is not in the same content phase as the player.

You can now set your focus frame through the unit menu Set Focus option (so long as the focus frame's not set for hidden in DUF Options), and clear the focus frame from the focus frame menu Clear Focus option.

5.1.19 - 25/6/2014

Added the ability to attach individual unit frames to the various attachpoints of UIParent (CENTER, LEFT, RIGHT etc.). The default is still TOPLEFT, TOPLEFT.

Started a cleanup of code to make DUF more efficient and avoid possible tainting of Blizzard globals.

Added a "Short" checkbox beside the "Health Format" dropdowns. Checking this box will display $kh, $kh, $mk, $km health/mana text variables in straight decimal notation for values 1 million and over (1.2m, 10.5m etc.). Once that value drops below 1 million it will be displayed using the format selected in the dropdown. The effect does not apply to the "Non Decimal" option. Leaving the box unchecked uses the pre-5.1.14 formatting.

5.1.13 - 1/12/2013

Fixed party frames not being displayed properly when the group roster was updated (Relira).

Fixed druid mana bar not configuring and not reacting to mana changes.

Fixed warlock demo. bar not configuring.

Fixed running taint caused by the DUF Options being opened. This would cause errors when opening certain in-game windows until the game was re-loaded.

Changed the way formatted heath/mana text variables ($hk, $kh, $mk, $km) are displayed to be more flexible.

You can select when to begin displaying the thousands portion in decimal notation (x.xk, xx.xk, xxx.xk).
In the /DUF options window for each text box (under the "Special" tab) there are two new dropboxes, one for setting "Health Format Break ($hk, $kh)" and one for setting "Mana Format Break ($mk, $km)". The one setting will be used on both their respective current and max. displays. The break points are 1,000, 10,000, 100,000. The default is 100,000.

Once you hit a million the notations become xm or xxm followed by the specified thousand notation.

These options work from 1 - 99,999,999 after which the value is displayed in millions to two decimal places xxx.xxm.

There is also a "Non Decimal" option that just displays the raw numbers comma delimited.

5.1.10 - 6/11/2013
Fixed an error introduced with the removal of the honor bar that saw the Partypet cast bar not being correctly configured during the update.

5.1.9 - 30/10/2013

Made Discord Unit Frames compatible with World of Warcraft 5.4.1.

Updated to fix removal of realmname as a CVar.

5.1.8 - 11/9/2013

Made Discord Unit Frames compatible with World of Warcraft 5.4 : Siege of Orgrimmar

Added new Unconscious status to the $ds text variable

Added new text variablers to display health/mana in thousands (k) and millions (m) to one decimal place eg. 456.3k

In accordance with 5.4 API changes the Honor bar and Rank Icons have been removed (they are useless in 5.3).

The $nr text variable now returns the unit name plus the chosen title ie. "Gladiator xxx" or "xxx, Champion of the Frozen Wastes".

Added a workaround for the bug in Blizzards UIDropDown code.

Added a Flip option for 2D portraits only. It is now possible to have player and target (or any two) 2D portraits facing each other RAWR :p This is a Hail Mary concept, it may not work for all targets (mob/creature portraits).

Fixed the Copy (frame) function in the DUF configuration window. If you have previously attached unit frame elements to the DruidManaBar, DemonicPowerBar or XPBar and you copy the SELF frame you will get an error (selecting an effected element, the "Attach Frame" option will be blank). Changing the Attach Frame will resolve the error (X/Y settings will also need to be changed).

Fixed the Role Icons not showing/hiding when checking the option in the DUF configuration window.

Fixed Combo Points not showing unless you're a Rogue or Druid while the DUF configuration window is open.

5.1.0 - 8 Feb. 2013

Boss frames added.

Fixed some variable typo errors.

Removed some entries in the Options "Attach Frame" dropdown that could be problematic (see the 5.1.1 changes for more information).

5.0.17 - 18/1/2013
Found and fixed the last of the taint errors. The taint and error logs are now clear for DUF issues .

5.0.15 12/12/2001
Added Root Path for your custom textures and fonts (under Misc. Options) - Enter a default path to your custom textures and fonts (a trailing slash "\" is required).
Wherever you have entered a texture or font file name without a fully qualified path, the root path will be prefixed at runtime (if you enter a partially qualified or incorrect path for a texture file or the root path you will see a green blob).

Fixed in 5.0.14a
Fixed the new Custom Paths checkbox not initialsing properly in the DUF Options window.

5.0.14 4/12/2012

The DUF Options window can now be closed using the escape key.

Custom Paths for textures and fonts: (Under Misc. Options) This option allows you to place textures and fonts in a folder(s) other than the hard coded Interface\AddOns\DiscordUnitFrames\CustomTextures\ and Interface\AddOns\DiscordUnitFrames\CustomFonts\. You will have to add the full paths for ALL textures and fonts you use ie. Interface\AddOns\YourFolder\YourTexture. The file extension is not required. Valid file formats are .BLP and .TGA.

This means that, with textures and fonts stored in your own folder you (or people who use a UI package you've uploaded using DUF) don't need to re-copy the artwork or fonts every time DUF is updated.

NOTE: If you change names of, copy, move, add textures and let's not forget typos while in-game, you will have to completly exit WOW and re-start before the "new" textures will register (going back to the character select or account login screens is not good enough).

A bright green blob where your amazing artwork is supposed to appear is a good clue your texture hasn't registered (did I mention typos ;)).

Implemented a new, safer mechanism for hiding the default Blizzard unit frames. At this stage, changing a default show/hide setting in DUF Options will require a /reload (or logout/logon) for the setting(s) to take effect.

Added a fix for errors caused by creeping taint for Druids and Warlocks.

/DUF Options Window. There has been a change when selecting the SELF tab. Two new tabs have been added to the left hand list, Class Properties and Default Properties. These will show/hide the setttings for the Class bars mentioned below as well as the Druid mana bar, Monk harmony bar and Temporary Enchants.

PvP Countdown Timer. I Removed the text from the PvPForever text variable so that when in a PvP zone the timer text will be blank. You can change this variable to anything you like in the LOCALIZATION.LUA file in the DiscordUnitFrames folder.

Warlock Demonic Fury Bar is now a standard Status bar.

Warlock Demonic Fury Bar and Druid Mana Bar Textboxes. These have been added and are specific to their parent status bar ie. they will hide/show along with the parent but the textboxes themselves can be placed anywhere without constraint (See the DUF Options window under Class Properties".

New Text Variables have been added to go along with the new textboxes. These are:

New Unit Role icon. Displays an icon for the unit role (tank/healer/damage).

Added MazzleUI.lua and FizzleUI.lua to the DiscordUnitFramesOptions folder. These are configurations for a Mazzle style layout set for use at 1920x1200 resolution.

MazzleUI is pretty much the original Mazzle layout without any adjustments for updated or additional frames (Temp. Enchants, Druid Mana bar, Role Icons, 3D portraits etc.). FizzleUI is for my modified Mazzle layout (as seen in the screenshot to the right) that doesn't use the background artwork and viewporting of Mazz. It also utalises the DUF 3D portraits.

To use, copy/paste the contents of one or both into your Wow/WTF/Account/[YOUR_ACCOUNT]/SavedVariables/DiscordUnitFrames.lua file after the line "DUF_Settings = {" (save a backup copy before making any changes) while logged out of the game. Log on type /duf, press the "Misc. Options" button (bottom left), select MazzleUI or FizzleUI from the "Load Profile" drop list and press the "Load" button (you may also need to adjust the "Updates per Second" to 15-30 for best performance in larger raids).

4.1.12 27/7/2012

Fix for a bug in the flagged for PvP countdown timer.

Fix for the health and mana bars not displaying in the "default" settup which should help players that are not going to create their own configuration.

Fix for a bug preventing the Druid mana bar from displaying.

4.1.11 2/7/2012 Two new variables have been added for use in text boxes:

$pf - PvP Time Left - Time left until the PvP flag is removed (Player only).

$rn - Realm Name - The realm a unit belongs to for X-realm groups.

4.1.10 25/6/2012 Fixed the Druid Mana bar not displaying properly when exiting the options window. Fixed non Player and Target frames disapearing when changing some options. Fixed several other options bugs

4.1.9 27/5/2012 Fixed a bug with several textbox variable functions displaying incorrect values or not dispalying any value. These were probably not often used or considered variables like Health/Mana Regen per Second/Tick also Unit's Target's Health/Mana, Max Health/Mana, Health/Mana Percent and Level

4.1.8 13/5/2012 Added basic 3D portrait capability. You can display full length or face only 3D portraits (2D is still supported). Build in racial jiggle, sigh, crouch etc. animations are included with added death and ghost animations.

This is not intended to replace a full featured 3D model addon and should not impact performance if you continue to use your favourite.

Fixed a bug being thrown when using the middle mouse button on the element Nudge buttons in the options window. Nudge buttons now nudge 1 on left click, 10 on right click and slide on clicking and holding down the middle mouse button.

4.1.6 2/4/2012 Fixed errors being thrown when dragging some unlocked elements and also mousing over Temp. Enchants while the options window was open (this only happened with non dual wielding specs.).

4.1.5 28/2/2012 Fixed an error being thrown when mousing over the temorary enchant buttons, the weapon tooltip will now be displayed. Clicking these buttons will hide/unhide the default Blizzard temorary enchant buttons so that these buffs can be removed.

4.1.4 18/1/2012 - Fixed a bug where player debuffs were showing their corresponding buff tooltip.

4.1.3 12/1/2012 - Fixed an error being generated if you didn't want to use the DUF specific mm:ss display on buff/debuff/temp. enchant duration timers (thanks Kapone for the "heads up").
It will now show the standard "x d", "x h", "x m", "x s" format returned by the default Blizzard duration function.

4.1.2 8/1/2012 - Hunter Update. From the Blizzard patch notes: "The Happiness/Pet Loyalty System has been removed. Hunters will no longer have to manage Happiness for their? pets, [and the previous damage bonus for pets being happy will now be baseline for all tamed pets.]"

In line with this I've removed the pet happiness icon. The framework is still there so if there is a call for it, it is possible to add a static perma-happy icon back in but DUF was registering for happiness update events which (from my testing) were being generated every tick reguardless of changes to the happiness level (which only occured over the first second when summoning a pet or dismounting). Hunters should see a slight performance improvement in larger raids.

4.1.1 5/1/2012 - *** Performance Update *** I've tuned some of the code for better performance that will be most noticable in larger raids. I've been testing in 40 person AV battlegrounds with DUF running at 25 updates per second with good results (I also run IceHud at 25 updates/sec.(with DogTags) and sRaidFrames with Frequent Updates turned ON as well as various other addons that may or may not effect frame rates).

I've aslo added the option to only repaint the duration timers once every second ie. when they change rather than every time DUF updates (see Misc. Options).

4.1.0 31/12/2011 - Added Druid mana bar (player only). A bar to display a Druids mana level while in bear/cat form. I've not added a text option for this bar but will consider it.

4.0.4 25/12/2011 - Fixed Temporary Enchants.
There is now an option under the Temp. Enchants "Special" button to "Hide the Blizzard Temp. Enchant frame". NOTE: Cancellation of Temp. Enchants is now Protected and (as far as I can tell) can only be accomplished via the default Blizzard TE bar.

4.0.3 18/12/2011 - Fixed (well, improved) the frame rate problem when the options frame is open. Fixed a couple of errors being generated when configuring some options.

4.0.1a 14/12/2011 - Fixed and error being generated because I couldn't figure out how to set the default unit when the options frame is first opened. The error would be generated if any other button was pressed before selecting a particular unit.

4.0.1 14/12/2011 - Updated Discord Unit Frames for compatibility with versions 4.x of World of Warcraft.

There is a problem that confuse me for long time: how can i use 2 different color code in one textbox?

like $cq text $cw text

it only shows like: text text

Can it be solved? thx/

It certainly works. Are you a rogue by any chance? If you are then, checking against yourself (a player frame text box) will give you a class colour of Rogue (yellow) and a difficulty colour of Even (yellow) presuming you haven't modified the context colours.

No, it's not (a known issue). There are a few differences between the MoP Beta and the 5.0.4 release. I'll check it out and post an update.

Edit: /DUF definately works in 5.0.4 although selecting to change a mana bar throws an error. I've fixed this in the latest update. If the "/duf not opening the options window" problem still occures, you may be experiencing a conflict with another, possibly out of date addon.

I'm loving the new Role icons. Thanks again for that.
I have a question about the PvP time remaining ($pf) text option. Is there a way to make it only display when it's actually a timer? I'm on a PvP server and whenever I'm in a contested or enemy zone, I have the word "For" (would say the full "For the duration" if I didn't have the max characters set to 4) where the timer would be if it were counting down.

Thanks for the thumbs up whyttedragun .

I figured that would be annoying and have taken it out for the 5.04/MoP releases. If you want to do it to your current setup, edit the localization.lua file in the World of "Warcraft\Interface\AddOns\DiscordUnitFrames" folder and change the line:

PVPForever = "For the duration",
to:
PVPForever = "",

Asuming there are no more updates between now and the 28th you shouldn't need to change it again.

I'm loving the new Role icons. Thanks again for that.
I have a question about the PvP time remaining ($pf) text option. Is there a way to make it only display when it's actually a timer? I'm on a PvP server and whenever I'm in a contested or enemy zone, I have the word "For" (would say the full "For the duration" if I didn't have the max characters set to 4) where the timer would be if it were counting down.

Love the setup, but Im having a big issue in game. For some reason having discord addon enabled kills my fps. did DS tonight and during all fights where i was in combat, trash and boss i was dropping to like 9fps. I disabled duf and stayed at my normal 60fps. Any ideas? All i did was install the addon, load your profile then went in and disabled all the buff/debuff icons and all the raid/party units as i use vuhdo for that.

It sounds like every frame, textbox and StatusBar is being updated every tick. Open the /DUF Options window and press the "Misc. Options" button. Try setting the "Updates per Second" to something like 15, 20 or 25. Whatever works best for you between getting the information you need in a timely manner and getting the information you need at all .

Love the setup, but Im having a big issue in game. For some reason having discord addon enabled kills my fps. did DS tonight and during all fights where i was in combat, trash and boss i was dropping to like 9fps. I disabled duf and stayed at my normal 60fps. Any ideas? All i did was install the addon, load your profile then went in and disabled all the buff/debuff icons and all the raid/party units as i use vuhdo for that.