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!
Using shadowed unit frames breaks blizzard edit mode currently when dragging frames and updating it
...izzard_EditMode/Mainline/EditModeSystemTemplates.lua:535: attempt to perform arithmetic on local 'left' (a nil value)
[string "@Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua"]:535: in function `GetScaledSelectionSides'
[string "@Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua"]:507: in function `IsVerticallyAlignedWithFrame'
[string "@Blizzard_EditMode/Mainline/EditModeSystemTemplates.lua"]:725: in function `GetFrameMagneticEligibility'
[string "@Blizzard_EditMode/Mainline/EditModeUtil.lua"]:152: in function `GetEligibleMagneticFrames'
[string "@Blizzard_EditMode/Mainline/EditModeUtil.lua"]:341: in function `GetMagneticFrameInfoOptions'
[string "@Blizzard_EditMode/Mainline/EditModeUtil.lua"]:424: in function `GetMagneticFrameInfos'
[string "@Blizzard_EditMode/Mainline/EditModeManager.lua"]:961: in function `RefreshSnapPreviewLines'
[string "@Blizzard_EditMode/Mainline/EditModeManager.lua"]:72: in function <...ddOns/Blizzard_EditMode/Mainline/EditModeManager.lua:70>
Reputations seem to be throwing errors
134x ShadowedUnitFrames/modules/xp.lua:89: attempt to call global 'GetWatchedFactionInfo' (a nil value)
[string "@ShadowedUnitFrames/modules/xp.lua"]:89: in function `UpdateRep'
[string "@ShadowedUnitFrames/modules/xp.lua"]:139: in function `?'
[string "@ShadowedUnitFrames/modules/units.lua"]:36: in function `FullUpdate'
[string "@ShadowedUnitFrames/modules/units.lua"]:375: in function `CheckUnitStatus'
[string "@ShadowedUnitFrames/modules/units.lua"]:614: in function <ShadowedUnitFrames/modules/units.lua:440>
[string "=[C]"]: in function `SetAttribute'
[string "@ShadowedUnitFrames/modules/units.lua"]:964: in function `LoadUnit'
[string "@ShadowedUnitFrames/modules/units.lua"]:1337: in function `InitializeFrame'
[string "@ShadowedUnitFrames/ShadowedUnitFrames.lua"]:281: in function `LoadUnits'
[string "@ShadowedUnitFrames/ShadowedUnitFrames.lua"]:86: in function `OnInitialize'
[string "@ShadowedUnitFrames/ShadowedUnitFrames.lua"]:947: in function <...aceShadowedUnitFrames/ShadowedUnitFrames.lua:945>
Locals:
self = <table> {
moduleHasBar = true
moduleKey = "xpBar"
moduleName = "XP/Rep bar"
}
frame = SUFUnitplayer {
auras = <table> {
}
castBar = Frame {
}
powerBar = StatusBar {
}
disableRangeAlpha = false
unitType = "player"
indicators = Frame {
}
unitInitialized = true
unit = "player"
fontStrings = <table> {
}
TopEdge = Texture {
}
unitOwner = "player"
fullUpdates = <table> {
}
fader = Frame {
}
combatText = Frame {
}
incHeal = StatusBar {
}
portraitModel = PlayerModel {
}
portrait = PlayerModel {
}
registeredEvents = <table> {
}
healthBar = StatusBar {
}
druidBar = StatusBar {
}
altPowerBar = StatusBar {
}
visibility = <table> {
}
isDead = false
xpBar = Frame {
}
unitGUID = "Player-75-03E0D2CE"
Center = Texture {
}
RightEdge = Texture {
}
LeftEdge = Texture {
}
unitRealType = "player"
BottomEdge = Texture {
}
BottomRightCorner = Texture {
}
BottomLeftCorner = Texture {
}
TopRightCorner = Texture {
}
backdropInfo = <table> {
}
vehicleUnit = "vehicle"
incAbsorb = StatusBar {
}
comboPoints = Frame {
}
TopLeftCorner = Texture {
}
highFrame = Frame {
}
topFrameLevel = 5
highlight = Frame {
}
healAbsorb = StatusBar {
}
unitEventOverrides = <table> {
}
}
(*temporary) = nil
(*temporary) = "attempt to call global 'GetWatchedFactionInfo' (a nil value)"
L = <table> {
Hi everyone I just have one question.. after updating I have a shadow outline under my pets name and power % no idea how to get rid of it please help... I had fixed it b4 by going into the layout folder and setting the shadowstring to (0,0) but now it's back.. If anyone has another solution that would be great
Alpha Version works for now, yes, just use the Alpha Version for now ;P
In reply to Fangi: it "works" but still throws a lot of errors:
118x ShadowedUnitFrames/modules/health.lua:65: attempt to call global 'UnitDebuff' (a nil value)
[string "@ShadowedUnitFrames/modules/health.lua"]:65: in function `?'
[string "@ShadowedUnitFrames/modules/units.lua"]:36: in function `FullUpdate'
[string "@ShadowedUnitFrames/modules/units.lua"]:375: in function `CheckUnitStatus'
[string "@ShadowedUnitFrames/modules/units.lua"]:614: in function <ShadowedUnitFrames/modules/units.lua:440>
[string "=[C]"]: in function `SetAttribute'
[string "@ShadowedUnitFrames/modules/units.lua"]:964: in function `LoadUnit'
[string "@ShadowedUnitFrames/modules/units.lua"]:1337: in function `InitializeFrame'
[string "@ShadowedUnitFrames/ShadowedUnitFrames.lua"]:281: in function `LoadUnits'
[string "@ShadowedUnitFrames/ShadowedUnitFrames.lua"]:86: in function `OnInitialize'
[string "@ShadowedUnitFrames/ShadowedUnitFrames.lua"]:947: in function <...aceShadowedUnitFrames/ShadowedUnitFrames.lua:945>
Locals:
self = <table> {
moduleHasBar = true
moduleName = "Health bar"
moduleKey = "healthBar"
}
frame = SUFUnitplayer {
unitGUID = "Player-1402-0A2766B4"
Center = Texture {
}
highFrame = Frame {
}
auras = <table> {
}
registeredEvents = <table> {
}
BottomEdge = Texture {
}
RightEdge = Texture {
}
BottomRightCorner = Texture {
}
topFrameLevel = 5
BottomLeftCorner = Texture {
}
TopRightCorner = Texture {
}
TopLeftCorner = Texture {
}
backdropInfo = <table> {
}
vehicleUnit = "vehicle"
visibility = <table> {
}
healAbsorb = StatusBar {
}
incAbsorb = StatusBar {
}
indicators = Frame {
}
incHeal = StatusBar {
}
unitInitialized = true
unitRealType = "player"
healthBar = StatusBar {
}
unit = "player"
fontStrings = <table> {
}
unitOwner = "player"
unitType = "player"
TopEdge = Texture {
}
fullUpdates = <table> {
}
LeftEdge = Texture {
}
}
hadDebuff = nil
id = 1
(*temporary) = nil
(*temporary) = "player"
(*temporary) = 1
(*temporary) = "attempt to call global 'UnitDebuff' (a nil value)"
canCure = <table> {
}
if it doesn't for you its cause you didn't do /run C_CVar.SetCVar('loadDeprecationFallbacks', 0) ReloadUI() which makes basically every other addon work but SUF.
In reply to Fangi: Its working, but makes water coasts with plants glitch. Noticed at Ohnara Ruszathar Reach. I tested everything else, its from SUF.
In reply to Flanell88: Agree. Version 4.4.9 make the same negative effect...:(
In reply to Flanell88: disable 3d portraits seems to fix the water flickering for me
Is my fixes working with TWW Pre-patch
https://github.com/Hyphie24/ShadowedUnitFrames
In reply to Hyphie24:
No it's not working, just tested.
In reply to hybrid_: Try now, some how when I updated SUF from the author it didn't pull in the changes they did over time nor my initial changes from beta. I just straight re-uploaded everything and I noticed it.
unitframe dont seem to be working. /suf also not working. :(
love to have a way to increase the size of the combat/ resting icon...
Greetings,
how can i set up Aura reorder for boss frames? cant find anything related. Need it for better dots tracking on boss frames.
Thanks.
Trying to come up with a new tag that will show the target of target and either their reaction color or class color, depending on player or NPC. Can someone help me with this? I’ve tried working off existing ones but it’s been a struggle.
Hello reporting: i am getting this lua Error, it began to appear when i started using the option Range Indicator on boss and focus frame
1x [ADDON_ACTION_BLOCKED] AddOn 'ShadowedUnitFrames' tried to call the protected function 'CheckInteractDistance()'.
[string "@!BugGrabber/BugGrabber.lua"]:485: in function <!BugGrabber/BugGrabber.lua:485>
[string "=[C]"]: in function `CheckInteractDistance'
[string "@ShadowedUnitFrames/modules/range.lua"]:53: in function <ShadowedUnitFrames/modules/range.lua:33>
[string "@ShadowedUnitFrames/modules/range.lua"]:100: in function `?'
[string "@ShadowedUnitFrames/modules/units.lua"]:21: in function `FullUpdate'
[string "@ShadowedUnitFrames/modules/units.lua"]:205: in function <ShadowedUnitFrames/modules/units.lua:202>
[string "=[C]"]: in function `Show'
[string "@Blizzard_FrameXML/RestrictedFrames.lua"]:374: in function `Show'
[string " if( name ~= "childchanged" ) then return end
local visible = 0
for i=1, self:GetAttribute("totalChildren") do
if( self:GetFrameRef("child" .. i):IsShown() ) then
visible = visible + 1
end
end
if( visible == 0 ) then
self:Hide()
return
end
local child = self:GetFrameRef("child1")
local xMod = math.abs(self:GetAttribute("xMod"))
local yMod = math.abs(self:GetAttribute("yMod"))
local offset = self:GetAttribute("baseOffset")
self:SetWidth(xMod * ((child:GetWidth() * (visible - 1)) + (offset * (visible - 1))) + child:GetWidth())
self:SetHeight(yMod * ((child:GetHeight() * (visible - 1)) + (offset * (visible - 1))) + child:GetHeight())
self:Show()
"]:22: in function <[string " if( name ~= "childchanged" ) then return ..."]:1>
[string "=(tail call)"]: ?
[string "=[C]"]: ?
[string "@Blizzard_FrameXML/RestrictedExecution.lua"]:484: in function <...aceBlizzard_FrameXML/RestrictedExecution.lua:447>
...
[string " if( name == "state-unitexists" ) then
if( value ) then
self:Show()
else
self:Hide()
end
local parent = self:GetParent()
parent:SetAttribute("childChanged", self:GetAttribute("unitID"))
end
"]:9: in function <[string " if( name == "state-unitexists" ) then..."]:1>
[string "=(tail call)"]: ?
[string "=[C]"]: ?
[string "@Blizzard_FrameXML/RestrictedExecution.lua"]:484: in function <...aceBlizzard_FrameXML/RestrictedExecution.lua:447>
[string "=(tail call)"]: ?
[string "@Blizzard_FrameXML/SecureHandlers.lua"]:422: in function <Blizzard_FrameXML/SecureHandlers.lua:417>
[string "=(tail call)"]: ?
[string "=[C]"]: in function `SetAttribute'
[string "@Blizzard_FrameXML/SecureStateDriver.lua"]:79: in function <...rfaceBlizzard_FrameXML/SecureStateDriver.lua:73>
[string "@Blizzard_FrameXML/SecureStateDriver.lua"]:137: in function <...rfaceBlizzard_FrameXML/SecureStateDriver.lua:119>
Locals:
Skipped (In Encounter)
Thought the alpha version might be for tww beta, but no luck dam
hello, im reporting cataclysm suf, there is a problem with range check for classes, when i am in my mage and i need to see if my priest for power infusion is in range (40 yd) in raid frames is fine, but when i am in my warlock is not showing 40 yd range in raid frame it fade at 30 yd, and i though my priest is too far when he is not, the config is the same for my warlock and mage so is something with range per class
Any chance Retail 11.0.0.?
In reply to Malicone: Retail 11.0 is not out yet.