Skip to content

Commit

Permalink
Update TOC for 4.4.1, fixes #133
Browse files Browse the repository at this point in the history
  • Loading branch information
brittyazel committed Nov 12, 2024
1 parent 51f3cdd commit 87ed4ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion EnhancedRaidFrames.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 11504, 40400, 110005
## Interface: 11504, 40401, 110005
## Title: Enhanced Raid Frames
## Notes: Enhances the Blizzard raid frames with configurable Buff/Debuff indicators
## IconTexture: Interface\Icons\spell_holy_borrowedtime
Expand Down
17 changes: 5 additions & 12 deletions Modules/TargetMarkers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,22 +95,15 @@ function EnhancedRaidFrames:UpdateTargetMarker(frame, setAppearance)
if index and index >= 1 and index <= 8 then
-- Get the full texture path for the marker
local texture = UnitPopupRaidTarget1ButtonMixin:GetIcon() or "Interface\\TargetingFrame\\UI-RaidTargetingIcons"

local coords = {}
-- Get the texture coordinates for the marker
if not self.isWoWClassic then
-- 11.0 changed GetTextureCoords to return the coords unpacked
-- 1.15.4 updated to match retail, only WoW Cataclysm Classic still uses the old way
coords.tCoordLeft, coords.tCoordRight, coords.tCoordTop, coords.tCoordBottom = _G["UnitPopupRaidTarget" .. index .. "ButtonMixin"]:GetTextureCoords()
else
coords = _G["UnitPopupRaidTarget" .. index .. "ButtonMixin"]:GetTextureCoords()
end


-- Get the texture coordinates for the marker icon
local tCoordLeft, tCoordRight, tCoordTop, tCoordBottom = _G["UnitPopupRaidTarget" .. index .. "ButtonMixin"]:GetTextureCoords()

-- Set the marker texture using trilinear filtering (reduces pixelation)
frame.ERF_targetMarkerFrame:SetTexture(texture, nil, nil, "TRILINEAR")

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

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

0 comments on commit 87ed4ea

Please sign in to comment.