@@ -83,15 +83,15 @@ function DF:CreateStatusIcons(frame)
8383 -- ========================================
8484 frame .summonIcon = CreateStatusIcon (overlay , 16 )
8585 frame .summonIcon :SetPoint (" CENTER" , frame , " CENTER" , 0 , 0 )
86- frame .summonIcon .texture : SetTexture ( " Interface\\ RaidFrame\\ Raid-Icon-SummonPending" )
86+ DF : SetUpgradedStatusIcon ( frame .summonIcon .texture , " Interface\\ RaidFrame\\ Raid-Icon-SummonPending" )
8787 frame .summonIcon .text :SetTextColor (0.6 , 0.2 , 1 , 1 ) -- Purple for summon
8888
8989 -- ========================================
9090 -- RESURRECTION ICON (incoming res status)
9191 -- ========================================
9292 frame .resurrectionIcon = CreateStatusIcon (overlay , 16 )
9393 frame .resurrectionIcon :SetPoint (" CENTER" , frame , " CENTER" , 0 , 10 )
94- frame .resurrectionIcon .texture : SetTexture ( " Interface\\ RaidFrame\\ Raid-Icon-Rez" )
94+ DF : SetUpgradedStatusIcon ( frame .resurrectionIcon .texture , " Interface\\ RaidFrame\\ Raid-Icon-Rez" )
9595 frame .resurrectionIcon .text :SetTextColor (0.2 , 1 , 0.2 , 1 ) -- Green for res
9696 frame .resurrectionIcon .unitFrame = frame
9797 frame .resurrectionIcon :EnableMouse (true )
@@ -131,16 +131,15 @@ function DF:CreateStatusIcons(frame)
131131 -- ========================================
132132 frame .phasedIcon = CreateStatusIcon (overlay , 16 )
133133 frame .phasedIcon :SetPoint (" TOPRIGHT" , frame , " TOPRIGHT" , - 2 , - 2 )
134- frame .phasedIcon .texture :SetTexture (" Interface\\ TargetingFrame\\ UI-PhasingIcon" )
135- frame .phasedIcon .texture :SetTexCoord (0.15625 , 0.84375 , 0.15625 , 0.84375 )
134+ DF :SetUpgradedStatusIcon (frame .phasedIcon .texture , " Interface\\ TargetingFrame\\ UI-PhasingIcon" )
136135 frame .phasedIcon .text :SetTextColor (0.5 , 0.5 , 1 , 1 ) -- Blue-ish for phased
137136
138137 -- ========================================
139138 -- AFK ICON (unit is away from keyboard)
140139 -- ========================================
141140 frame .afkIcon = CreateStatusIcon (overlay , 32 )
142141 frame .afkIcon :SetPoint (" CENTER" , frame , " CENTER" , 0 , 0 )
143- frame .afkIcon .texture : SetTexture ( " Interface\\ FriendsFrame\\ StatusIcon-Away" )
142+ DF : SetUpgradedStatusIcon ( frame .afkIcon .texture , " Interface\\ FriendsFrame\\ StatusIcon-Away" )
144143 DF :SafeSetFont (frame .afkIcon .text , nil , 12 , " OUTLINE" )
145144 frame .afkIcon .text :SetTextColor (1 , 0.5 , 0 , 1 ) -- Orange for AFK
146145 -- Timer text (separate from main text, shown below/after)
@@ -155,7 +154,7 @@ function DF:CreateStatusIcons(frame)
155154 -- ========================================
156155 frame .vehicleIcon = CreateStatusIcon (overlay , 16 )
157156 frame .vehicleIcon :SetPoint (" BOTTOMRIGHT" , frame , " BOTTOMRIGHT" , - 2 , 2 )
158- frame .vehicleIcon .texture : SetTexture ( " Interface\\ Vehicles\\ UI-Vehicles-Raid-Icon" )
157+ DF : SetUpgradedStatusIcon ( frame .vehicleIcon .texture , " Interface\\ Vehicles\\ UI-Vehicles-Raid-Icon" )
159158 frame .vehicleIcon .text :SetTextColor (0.4 , 0.8 , 1 , 1 ) -- Light blue for vehicle
160159
161160 -- ========================================
@@ -339,8 +338,7 @@ function DF:UpdateSummonIcon(frame)
339338 end
340339
341340 if showIcon then
342- frame .summonIcon .texture :SetTexture (texture )
343- frame .summonIcon .texture :SetTexCoord (0 , 1 , 0 , 1 )
341+ DF :SetUpgradedStatusIcon (frame .summonIcon .texture , texture )
344342 ApplyIconSettings (frame .summonIcon , db , " summonIcon" )
345343
346344 -- Show as text or icon based on setting
@@ -411,7 +409,7 @@ function DF:UpdateResurrectionIcon(frame)
411409 resCache [unit ] = 1
412410 resTimer = resTimer or C_Timer .NewTicker (0.25 , ResTimerCleanup )
413411 end
414- frame .resurrectionIcon .texture : SetTexture ( " Interface\\ RaidFrame\\ Raid-Icon-Rez" )
412+ DF : SetUpgradedStatusIcon ( frame .resurrectionIcon .texture , " Interface\\ RaidFrame\\ Raid-Icon-Rez" )
415413 frame .resurrectionIcon .texture :SetVertexColor (0 , 1 , 0 , 1 )
416414 ApplyIconSettings (frame .resurrectionIcon , db , " resurrectionIcon" )
417415 frame .resurrectionIcon :Show ()
@@ -420,15 +418,15 @@ function DF:UpdateResurrectionIcon(frame)
420418 -- Was casting, now stopped → pending accept (yellow)
421419 -- Store timestamp so we can expire after 60s
422420 resCache [unit ] = GetTime ()
423- frame .resurrectionIcon .texture : SetTexture ( " Interface\\ RaidFrame\\ Raid-Icon-Rez" )
421+ DF : SetUpgradedStatusIcon ( frame .resurrectionIcon .texture , " Interface\\ RaidFrame\\ Raid-Icon-Rez" )
424422 frame .resurrectionIcon .texture :SetVertexColor (1 , 1 , 0 , 0.75 )
425423 ApplyIconSettings (frame .resurrectionIcon , db , " resurrectionIcon" )
426424 frame .resurrectionIcon :Show ()
427425 return
428426 elseif resCache [unit ] and resCache [unit ] ~= 1 then
429427 -- Still showing pending accept (check not expired)
430428 if (GetTime () - resCache [unit ]) <= RES_ACCEPT_TIMEOUT then
431- frame .resurrectionIcon .texture : SetTexture ( " Interface\\ RaidFrame\\ Raid-Icon-Rez" )
429+ DF : SetUpgradedStatusIcon ( frame .resurrectionIcon .texture , " Interface\\ RaidFrame\\ Raid-Icon-Rez" )
432430 frame .resurrectionIcon .texture :SetVertexColor (1 , 1 , 0 , 0.75 )
433431 ApplyIconSettings (frame .resurrectionIcon , db , " resurrectionIcon" )
434432 frame .resurrectionIcon :Show ()
@@ -661,11 +659,9 @@ function DF:UpdatePhasedIcon(frame)
661659 -- cached == -1 means LFG (other party), anything else means phased
662660 local isLFG = (cached == - 1 )
663661 if isLFG and db .phasedIconShowLFGEye then
664- frame .phasedIcon .texture :SetTexture (" Interface\\ LFGFrame\\ LFG-Eye" )
665- frame .phasedIcon .texture :SetTexCoord (0.14 , 0.235 , 0.28 , 0.47 )
662+ DF :SetUpgradedStatusIcon (frame .phasedIcon .texture , " Interface\\ LFGFrame\\ LFG-Eye" )
666663 else
667- frame .phasedIcon .texture :SetTexture (" Interface\\ TargetingFrame\\ UI-PhasingIcon" )
668- frame .phasedIcon .texture :SetTexCoord (0.15625 , 0.84375 , 0.15625 , 0.84375 )
664+ DF :SetUpgradedStatusIcon (frame .phasedIcon .texture , " Interface\\ TargetingFrame\\ UI-PhasingIcon" )
669665 end
670666 ApplyIconSettings (frame .phasedIcon , db , " phasedIcon" )
671667 ShowIconAsText (frame .phasedIcon , db .phasedIconText or " Phased" , db .phasedIconShowText )
@@ -932,13 +928,12 @@ function DF:UpdateRaidRoleIcon(frame)
932928 if showIcon and role then
933929 local statusText = nil
934930 if role == " MAINTANK" then
935- frame .raidRoleIcon .texture : SetTexture ( " Interface\\ GroupFrame\\ UI-Group-MainTankIcon" )
931+ DF : SetUpgradedStatusIcon ( frame .raidRoleIcon .texture , " Interface\\ GroupFrame\\ UI-Group-MainTankIcon" )
936932 statusText = db .raidRoleIconTextTank or " MT"
937933 else
938- frame .raidRoleIcon .texture : SetTexture ( " Interface\\ GroupFrame\\ UI-Group-MainAssistIcon" )
934+ DF : SetUpgradedStatusIcon ( frame .raidRoleIcon .texture , " Interface\\ GroupFrame\\ UI-Group-MainAssistIcon" )
939935 statusText = db .raidRoleIconTextAssist or " MA"
940936 end
941- frame .raidRoleIcon .texture :SetTexCoord (0 , 1 , 0 , 1 )
942937 ApplyIconSettings (frame .raidRoleIcon , db , " raidRoleIcon" )
943938 ShowIconAsText (frame .raidRoleIcon , statusText , db .raidRoleIconShowText )
944939 frame .raidRoleIcon :Show ()
@@ -1115,7 +1110,7 @@ function DF:UpdateReadyCheckIconEnhanced(frame)
11151110 return
11161111 end
11171112
1118- frame .readyCheckIcon .texture : SetTexture ( texture )
1113+ DF : SetUpgradedStatusIcon ( frame .readyCheckIcon .texture , texture )
11191114
11201115 -- Apply positioning
11211116 local scale = db .readyCheckIconScale or 1.0
0 commit comments