Skip to content

Commit

Permalink
Add Role Icons
Browse files Browse the repository at this point in the history
  • Loading branch information
eTzmNcbkrng committed Oct 22, 2023
1 parent 1a41427 commit a9c100a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ShestakUI/Libs/oUF/Elements/GroupRoleIndicator.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local _, ns = ...
local oUF = ns.oUF

if(oUF:IsClassic()) then return end
if(oUF:IsVanilla() or oUF:IsTBC()) then return end

local function Update(self, event)
local element = self.GroupRoleIndicator
Expand Down
2 changes: 1 addition & 1 deletion ShestakUI/Modules/UnitFrames/Layout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ local function Shared(self, unit)
end

-- LFD role icons
if T.Mainline and C.raidframe.icons_role == true then
if (T.Mainline or T.Wrath) and C.raidframe.icons_role == true then
self.GroupRoleIndicator = self.Health:CreateTexture(nil, "OVERLAY")
self.GroupRoleIndicator:SetSize(12, 12)
self.GroupRoleIndicator:SetPoint("TOPLEFT", 10, 8)
Expand Down
4 changes: 2 additions & 2 deletions ShestakUI/Modules/UnitFrames/RaidDPS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ local function Shared(self, unit)
if suffix == "pet" or (suffix == "target" and unit ~= "tank") then
self:Tag(self.Info, "[GetNameColor][NameArena]")
else
if T.Mainline and unit == "party" and C.raidframe.icons_role ~= true then
if (T.Mainline or T.Wrath) and unit == "party" and C.raidframe.icons_role ~= true then
self:Tag(self.Info, "[LFD] [GetNameColor][NameShort]")
else
self:Tag(self.Info, "[GetNameColor][NameShort]")
end
end

-- LFD role icons
if T.Mainline and C.raidframe.icons_role == true and not (suffix == "pet" or suffix == "target") then
if (T.Mainline or T.Wrath) and C.raidframe.icons_role == true and not (suffix == "pet" or suffix == "target") then
self.GroupRoleIndicator = self.Health:CreateTexture(nil, "OVERLAY")
self.GroupRoleIndicator:SetSize(12, 12)
self.GroupRoleIndicator:SetPoint("TOPRIGHT", self.Health, 2, 5)
Expand Down
2 changes: 1 addition & 1 deletion ShestakUI/Modules/UnitFrames/RaidHeal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ local function Shared(self, unit)
end

-- LFD role icons
if T.Mainline and C.raidframe.icons_role == true and not (suffix == "target") then
if (T.Mainline or T.Wrath) and C.raidframe.icons_role == true and not (suffix == "target") then
self.GroupRoleIndicator = self.Health:CreateTexture(nil, "OVERLAY")
self.GroupRoleIndicator:SetSize(10 * C.raidframe.icon_multiplier, 10 * C.raidframe.icon_multiplier)
self.GroupRoleIndicator:SetPoint("TOP", self.Health, 0, 6)
Expand Down

0 comments on commit a9c100a

Please sign in to comment.