Skip to content

Commit

Permalink
[UnitFrames] Add Role Icons in Wrath now that they've been added in 3…
Browse files Browse the repository at this point in the history
….4.3 (thanks @eTzmNcbkrng / GiatEMINaGOR)
  • Loading branch information
EsreverWoW committed Oct 24, 2023
1 parent 70d81e6 commit de8fc66
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 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
12 changes: 11 additions & 1 deletion ShestakUI_Config/Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,14 @@ do
plugins_over_heal_absorb,
}

if IsClassicBuild() then
local wrath = {
by_role,
icons_phase,
plugins_over_absorb,
plugins_over_heal_absorb,
}

if IsClassicBuild() and not IsWrathBuild() then
HideOptions(classic)
icons_raid_mark:SetPoint("TOPLEFT", icons_role, "BOTTOMLEFT", 0, -8)
icons_ready_check:ClearAllPoints()
Expand All @@ -1698,6 +1705,9 @@ do
icons_sumon:SetPoint("LEFT", icons_leader, "RIGHT", 248, 0)
icons_phase:SetPoint("TOPLEFT", icons_leader, "BOTTOMLEFT", 0, 0)
plugins_auto_resurrection:SetPoint("TOPLEFT", plugins_over_heal_absorb, "BOTTOMLEFT", 0, 0)
elseif IsWrathBuild() then
HideOptions(wrath)
plugins_auto_resurrection:SetPoint("TOPLEFT", plugins_over_heal_absorb, "BOTTOMLEFT", 0, 0)
end
end

Expand Down

0 comments on commit de8fc66

Please sign in to comment.