Skip to content

Commit

Permalink
Don't construct Role Icons in Classic
Browse files Browse the repository at this point in the history
This also fixes them showing in test frames
  • Loading branch information
Luckyone961 committed Nov 19, 2024
1 parent 37dc3f4 commit 5c3bc6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ElvUI/Core/Modules/UnitFrames/Elements/RoleIcons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ local UnitAffectingCombat = UnitAffectingCombat
local UnitGroupRolesAssigned = UnitGroupRolesAssigned

function UF:Construct_RoleIcon(frame)
if E.Classic then return end

local tex = frame.RaisedElementParent.TextureParent:CreateTexture(nil, 'ARTWORK')
tex:Size(17)
tex:Point('BOTTOM', frame.Health, 'BOTTOM', 0, 2)
Expand Down
2 changes: 1 addition & 1 deletion ElvUI/Core/Modules/UnitFrames/UnitFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1332,10 +1332,10 @@ do
end

if iconRoles[which] then
UF:Configure_RoleIcon(frame)
UF:Configure_ReadyCheckIcon(frame)

if not E.Classic then
UF:Configure_RoleIcon(frame)
UF:Configure_SummonIcon(frame)
UF:Configure_AltPowerBar(frame)
end
Expand Down

0 comments on commit 5c3bc6f

Please sign in to comment.