This commit is contained in:
massdivide
2025-04-21 20:53:47 -04:00
parent cbb7c5d1a5
commit 390067cdbd
2 changed files with 4 additions and 6 deletions
-2
View File
@@ -288,8 +288,6 @@ function E:FontTemplate(fs, font, fontSize, fontStyle)
end end
function E:StyleButton(button, noHover, noPushed, noChecked) function E:StyleButton(button, noHover, noPushed, noChecked)
if not button then return end
if button.SetHighlightTexture and not button.hover and not noHover then if button.SetHighlightTexture and not button.hover and not noHover then
local hover = button:CreateTexture() local hover = button:CreateTexture()
hover:SetTexture(1, 1, 1, 0.3) hover:SetTexture(1, 1, 1, 0.3)
+2 -2
View File
@@ -197,10 +197,10 @@ function TT:UPDATE_MOUSEOVER_UNIT(_, unit)
local pvpFlag = "" local pvpFlag = ""
local diffColor = GetQuestDifficultyColor(level) local diffColor = GetQuestDifficultyColor(level)
if UnitIsPVP(unit) then if UnitIsPVP(unit) then
local pvpText = HELPFRAME_HOME_ISSUE3_HEADER or "PVP" local pvpText = HELPFRAME_HOME_ISSUE3_HEADER or "PVP"
pvpFlag = format(" (%s)", pvpText) pvpFlag = format(" (%s)", pvpText)
end end
levelLine:SetText(format("|cff%02x%02x%02x%s|r%s %s%s", diffColor.r * 255, diffColor.g * 255, diffColor.b * 255, level > 0 and level or "??", classification[creatureClassification] or "", creatureType or "", pvpFlag)) levelLine:SetText(format("|cff%02x%02x%02x%s|r%s %s%s", diffColor.r * 255, diffColor.g * 255, diffColor.b * 255, level > 0 and level or "??", classification[creatureClassification] or "", creatureType or "", pvpFlag))
end end