Skip to content

Commit 87ed4ea

Browse files
committed
Update TOC for 4.4.1, fixes #133
1 parent 51f3cdd commit 87ed4ea

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

EnhancedRaidFrames.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Interface: 11504, 40400, 110005
1+
## Interface: 11504, 40401, 110005
22
## Title: Enhanced Raid Frames
33
## Notes: Enhances the Blizzard raid frames with configurable Buff/Debuff indicators
44
## IconTexture: Interface\Icons\spell_holy_borrowedtime

Modules/TargetMarkers.lua

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,22 +95,15 @@ function EnhancedRaidFrames:UpdateTargetMarker(frame, setAppearance)
9595
if index and index >= 1 and index <= 8 then
9696
-- Get the full texture path for the marker
9797
local texture = UnitPopupRaidTarget1ButtonMixin:GetIcon() or "Interface\\TargetingFrame\\UI-RaidTargetingIcons"
98-
99-
local coords = {}
100-
-- Get the texture coordinates for the marker
101-
if not self.isWoWClassic then
102-
-- 11.0 changed GetTextureCoords to return the coords unpacked
103-
-- 1.15.4 updated to match retail, only WoW Cataclysm Classic still uses the old way
104-
coords.tCoordLeft, coords.tCoordRight, coords.tCoordTop, coords.tCoordBottom = _G["UnitPopupRaidTarget" .. index .. "ButtonMixin"]:GetTextureCoords()
105-
else
106-
coords = _G["UnitPopupRaidTarget" .. index .. "ButtonMixin"]:GetTextureCoords()
107-
end
108-
98+
99+
-- Get the texture coordinates for the marker icon
100+
local tCoordLeft, tCoordRight, tCoordTop, tCoordBottom = _G["UnitPopupRaidTarget" .. index .. "ButtonMixin"]:GetTextureCoords()
101+
109102
-- Set the marker texture using trilinear filtering (reduces pixelation)
110103
frame.ERF_targetMarkerFrame:SetTexture(texture, nil, nil, "TRILINEAR")
111104

112105
-- Set the texture coordinates to the correct icon of the larger texture
113-
frame.ERF_targetMarkerFrame:SetTexCoord(coords.tCoordLeft, coords.tCoordRight, coords.tCoordTop, coords.tCoordBottom)
106+
frame.ERF_targetMarkerFrame:SetTexCoord(tCoordLeft, tCoordRight, tCoordTop, tCoordBottom)
114107

115108
-- Set the marker opacity
116109
frame.ERF_targetMarkerFrame:SetAlpha(self.db.profile.markerAlpha)

0 commit comments

Comments
 (0)