Fix: Avoid nil crash in StyleButton and missing PVP label in Tooltip

This commit is contained in:
massdivide
2025-04-21 20:17:51 -04:00
parent 2ca6775f97
commit cbb7c5d1a5
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -288,6 +288,8 @@ function E:FontTemplate(fs, font, fontSize, fontStyle)
end
function E:StyleButton(button, noHover, noPushed, noChecked)
if not button then return end
if button.SetHighlightTexture and not button.hover and not noHover then
local hover = button:CreateTexture()
hover:SetTexture(1, 1, 1, 0.3)