unitframes: add option to set happiness icon size

This commit is contained in:
shagu
2020-06-07 14:56:56 +02:00
parent b13b16b672
commit 4a75af79af
3 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -583,8 +583,8 @@ function pfUI.uf:UpdateConfig()
f.restIcon.texture:SetAllPoints(f.restIcon)
f.restIcon:Hide()
f.happinessIcon:SetWidth(12)
f.happinessIcon:SetHeight(12)
f.happinessIcon:SetWidth(tonumber(C.unitframes.pet.happinesssize))
f.happinessIcon:SetHeight(tonumber(C.unitframes.pet.happinesssize))
f.happinessIcon:SetPoint("CENTER", f, "TOPLEFT", default_border, -default_border)
f.happinessIcon.texture:SetTexture(pfUI.media["img:neutral"])
f.happinessIcon.texture:SetAllPoints(f.happinessIcon)