Shadowed Unit Frames
SUF focuses on a simple configuration while maintaining the flexibility that most users will care about, preventing unnecessary bloating of the addon that sacrifices performance. While you aren't going to be able to set the health bar to be exactly 3.14 pixels outside of the unit frames, you can change options you actually care about such as bar height, ordering, frame height and so on. To speed up configuration, you can configure multiple units at the same time through the global configuration. For example, if you want to set the height of the Player, Target, Focus and Party frames to 50 then the height of Target's Target, Target's Target of Target, Focus Target to 30 you can easily do this by changing two options instead of having to do it seven times.
However, should you need a little bit of extra configuration do not despair! An advanced option is included that will unlock additional configuration giving finer control over the configuration.
Shadowed Unit Frames in WoW Classic
There is in-development Beta versions available for WoW Classic!
Note that WoW Classic does not provide all the information that you might be used to:
- There is no Focus Frame
- Information about the HP of enemies is not available, and they'll show as 100 HP
- Cast Bars for anyone but the player himself are not available
- Debuffs have no duration information
Some of this data can be restored with additional libraries/addons, but it'll always be guesswork and potentially inaccurate. Shadowed Unit Frames comes bundled with LibClassicDurations for debuff durations. Mob HP can be provided by Real Mob Health, which you need to install manually.
Note on copying your layout from Retail to Classic:
In general you cannot copy your layout between the two versions, since they are quite different, and doing so will result in certain elements exclusive to one version (like Pet Happiness on Classic) not always working properly. There are some provisions in the code that makes copying from Retail to Classic mostly work, use at your own risk - however, never copy a Layout from Classic to Retail, this will absolutely result in the Class-specific power bars and other elements not available on Classic to cease to function.
Slash commands: /shadoweduf (/suf)
Anchoring
Are you driven crazy by your party frames not aligning up exactly with your player frames, even if it's only half a pixel off? The anchoring system will let you solve all alignment issues, by allowing you to anchor a frame to another and set a simple offset from the frame it is anchored to, or by manually setting the X/Y position of the frame.
Using the screen shot as an example, if you drag the player frame the other frames will move with the player frame preserving the alignment and spacing. Each frame can still be manually positioned wherever you want, but this gives you a way of easily anchoring and moving frames around without having to use a ruler.
Zone configuration (Disabling options/units by zone type)
Units and modules can be enabled or disabled based on the type of zone you are in. For example, if you want to see party targets and party pets while you are in an arena but nowhere else then you can use the visibility options to enable it only while inside an arena. Modules can also be disabled by zone type, if you want to see party auras while in a raid instance but nowhere else you can disable the module in raid instances only.
Profiles do not have to be swapped and it is all automatic.
Units
Supports unit frames are as follows:
Player: Player, Pet, Pet Target
General: Target, Target of Target, Target of Target of Target, Focus, Focus Target
Party: Party, Party Pets, Party Targets, Party ToT
Raid: Raid, Raid Pet, Main Tank, Main Tank Target, Main Assist, Main Assist Target, Boss, Boss Target, Boss ToT, Main Assist ToT, Main Tank ToT
Arena: Arena, Arena Target, Arena Pets, Arena ToT
Battleground: Battleground, Battleground Target, Battleground Target
Features
- Tags: Includes a simple tagging system that can be customized in virtually any way using Lua, even if something isn't included by default odds are you can make the tags
- Incoming Heals: Supports the Blizzard Events for incoming heal data, no external libraries needed
- Auras: Can be set to only show auras you casted, or can cast on others. Can enlarge auras that you casted, and hide the cooldown ring on the timers of auras you didn't cast as well to make it more obvious which ones you casted and which ones you didn't
- Aura Timers: You will need a mod such as OmniCC to show timers on buffs and debuffs
- Aura Indicators: Display colored squares or icons for certain auras on any unit
- Fader: Fades frames when out of combat and inactive (100% mana/no target)
- Class Power (Eclipse, Holy Power, etc): Supports all of the class power features from Eclipse to Burning Embers.
- Highlighting: Border highlighting of frames based on mousing over them, curable debuffs, aggro or you are targeting/focusing them
- Range Checking: Fades frames out that are out of range of you
- Exportable Layouts: If you have a layout, or your friend has a layout you want to try out you can export/import SUF layouts by going to /suf -> Layout Manager
- Profiles: You can change from any profile to another one without reloading your UI, should you want to use a completely different layout based on zone you can easily switch profiles without hassle
Pretty much all the general unit frame settings are in, health bars, cast bars, power bars, portraits, indicators and so on.
Modules
Basic module support is included, should you be interested in building a module see the documentation on github for more information.
Feedback
For feature requests and bug reports, please continue to use the Ticket tracker. Feel free to ask on the thread first, if you're unsure what to do!
Great job with the Unit Frames. I love its simplicity.
However, I noticed the Tank & Tank Target only works if Raid Leader uses Blizzard's Raid UI to set Main Tanks, etc. My guild doesn't use this feature. And then I can't see any Tank windows up in raids. Is there a way to make SUF see oRA2 or CTRA enabled Tanks to show up on Tank Windows?
Thanks in advance :)
ShadowedUnitFrames\modules\auras.lua:144: attempt to index field 'auras' (a nil value)
ShadowedUnitFrames\modules\auras.lua:365: in function <...nterface\AddOns\ShadowedUnitFrames\modules\auras.lua:351>
ShadowedUnitFrames\modules\auras.lua:500: in function `?'
ShadowedUnitFrames\modules\units.lua:272: in function <...nterface\AddOns\ShadowedUnitFrames\modules\units.lua:269>
---
ShadowedUnitFrames\modules\auras.lua:144: attempt to index field 'auras' (a nil value)
ShadowedUnitFrames\modules\auras.lua:365: in function <...nterface\AddOns\ShadowedUnitFrames\modules\auras.lua:351>
ShadowedUnitFrames\modules\auras.lua:494: in function `?'
ShadowedUnitFrames\modules\units.lua:180: in function `FullUpdate'
ShadowedUnitFrames\modules\units.lua:439: in function `CheckUnitGUID'
ShadowedUnitFrames\modules\units.lua:281: in function <...nterface\AddOns\ShadowedUnitFrames\modules\units.lua:278>
<in C code>: in function `Show'
Interface\FrameXML\SecureStateDriver.lua:72: in function <Interface\FrameXML\SecureStateDriver.lua:62>:
Interface\FrameXML\SecureStateDriver.lua:111: in function <Interface\FrameXML\SecureStateDriver.lua:81>:
---
ShadowedUnitFrames\modules\auras.lua:144: attempt to index field 'auras' (a nil value)
ShadowedUnitFrames\modules\auras.lua:365: in function <...nterface\AddOns\ShadowedUnitFrames\modules\auras.lua:351>
ShadowedUnitFrames\modules\auras.lua:494: in function `?'
ShadowedUnitFrames\modules\units.lua:272: in function <...nterface\AddOns\ShadowedUnitFrames\modules\units.lua:269>
--
You had asked earlier if I was upgrading or it had been a fresh install, it was an upgrade, I've been using suf for a while now. Is there perhaps something wrong with my saved variables, and I should try wiping them?
Firstly thanks for a great UI.
I have a problem with SUF, after the patch I cant use the focus function anymore, it simply gets blocked. Also I would like to know wether it is possible to get both health and mana bars, to show how many percent theres left on them, instead of a numeric value.
if( text == "" or ( copper > 0 and gold <= 10 ) ) then
into this:
if( text == "" or ( copper > 0 or gold <= 10 ) ) then
thanks a million, shadowedunitframes is starting to overtake discordmods' position in my list of 'most memorable mods' :D
sidenote - is there a method to assign a specific color to text? to elaborate; something similar to "GetClassColor(unit)"... something like "GetColorRed" - infact that might even be a nice option in general, since my druid's orange looks great on my blue manabar, while its hard to read when used on my mage/shaman :)
There are two options for coloring, one is to use the color codes like "|cff101010" manually, another is to call ShadowUF:Hex which will generate it for you based off an RGB percentage you pass, for example:
local text = ShadowUF:Hex(1, 0, 0) .. "Foo Bar|r"
Will give you a red color code and "Foo Bar" will show up as read, the |r at the end is to prevent the color from "leaking," if you did say:
local text = ShadowUF:Hex(1, 0, 0) .. "Apple|r Orange"
The |r prevents "Orange" from showing up in red.
Hex is just, Hex(r, g, b), 0 = none of that color, 1 = all of that color, ShadowUF:Hex(1, 0.60, 0.40) means 100% red, 60% green, 40% blue.
I wanted to make my auction-character his very own special UI considering I spend roughly 25% of my playtime on it :) When looking the world (of warcraft) through the eyes of a lvl 1, xp-disabled banker - ideas start flowing :)
My bankers' Player-Unitframe has the following layout:
Typical HP/Mana bars, weighted value of 5 vs. 3
Healthbar left: Character name
Healthbar right: Empty untill an idea pops up
Powerbar left: says "Autioneer", as if that is the actual class
Powerbar right: displays the following: Wealth: 8941.2761
thats where I'm stuck; I managed to get in the "." to atleast know where the value goes from gold into silver+copper, but ideally it should probably look like this: Wealth: 8941g 27s 61c
This is the tag I made to get where I am now:
function(unit, unitOwner)
return (GetMoney(unitOwner) / 10000) end
I've tried adding the following, but without any luck:
local function formatMoney(money)
local gold = floor(math.abs(money) / 10000)
local silver = mod(floor(math.abs(money) / 100), 100)
local copper = mod(floor(math.abs(money)), 100)
Oh and yes I will reduce the size of this post later to reduce other people's scrolling :)
Heres a direct-link screenie of the same UI on my BE, to gives a better idea: http://img.photobucket.com/albums/v142/rolfpietersen/BankUIExample.jpg
function(unit, unitOwner)
function QuickAuctions:FormatTextMoney(money)
local gold = math.floor(money / COPPER_PER_GOLD)
local silver = math.floor((money - (gold * COPPER_PER_GOLD)) / COPPER_PER_SILVER)
local copper = math.floor(math.fmod(money, COPPER_PER_SILVER))
local text = ""
-- Add gold
if( gold > 0 ) then
text = string.format("%d%s ", gold, "g")
end
-- Add silver
if( silver > 0 and ( not truncate or gold < 100 ) ) then
text = string.format("%s%d%s ", text, silver, "s")
end
-- Add copper if we have no silver/gold found, or if we actually have copper
if( text == "" or ( copper > 0 and gold <= 10 ) ) then
text = string.format("%s%d%s ", text, copper, "c")
end
return string.trim(text)
end
return (GetMoney(unitOwner) / 10000)
end
2009/09/26 09:14:42-2722-x4]: ShadowedUnitFrames\modules\cast.lua:388 attempt to index field 'castColors' (a nil value)
ShadowedUnitFrames\modules\cast.lua:225 in function `?'
ShadowedUnitFrames\modules\units.lua:272 in function <...nterface\AddOns\ShadowedUnitFrames\modules\units.lua:269
---
[2009/09/26 09:14:44-2722-x579]: ShadowedUnitFrames\modules\cast.lua:164 attempt to index field 'castColors' (a nil value)
---
[2009/09/26 09:14:44-2722-x7]: ShadowedUnitFrames\modules\cast.lua:249 attempt to index field 'castColors' (a nil value)
ShadowedUnitFrames\modules\units.lua:272 in function <...nterface\AddOns\ShadowedUnitFrames\modules\units.lua:269