Fixed an issue with tooltip icons not showing on classic and vanilla

This commit is contained in:
Tercio Jose
2024-03-13 21:28:28 -03:00
parent 5f6ad0efd8
commit 42abffa680
2 changed files with 9 additions and 3 deletions
+6 -2
View File
@@ -17,7 +17,7 @@ local max = math.max
--api locals
local PixelUtil = PixelUtil or DFPixelUtil
local version = 23
local version = 24
local CONST_MENU_TYPE_MAINMENU = "main"
local CONST_MENU_TYPE_SUBMENU = "sub"
@@ -1202,7 +1202,11 @@ function DF:CreateCoolTip()
if (leftIconSettings[10]) then
menuButton.leftIconMask:SetTexture(leftIconSettings[10])
else
menuButton.leftIconMask:SetTexture([[Interface\COMMON\common-iconmask]])
if (DF.IsDragonflightAndBeyond()) then
menuButton.leftIconMask:SetTexture([[Interface\COMMON\common-iconmask]])
else
menuButton.leftIconMask:SetTexture([[Interface\CHATFRAME\chatframebackground]])
end
end
local colorRed, colorGreen, colorBlue, colorAlpha = DF:ParseColors(leftIconSettings[8])