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
+1
View File
@@ -328,6 +328,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", "tttarget", "overhealperc", "10")
pfUI:UpdateConfig("unitframes", "pet", "happinessicon", "0")
pfUI:UpdateConfig("unitframes", "pet", "happinesssize", "12")
pfUI:UpdateConfig("unitframes", "pet", "width", "100")
pfUI:UpdateConfig("unitframes", "pet", "height", "14")
pfUI:UpdateConfig("unitframes", "pet", "pheight", "4")
+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)
+1
View File
@@ -1605,6 +1605,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(U[c], T["Show Leader Icon"], C.unitframes[c], "leadericon", "checkbox")
if c == "pet" then
CreateConfig(U[c], T["Show Happiness Icon"], C.unitframes[c], "happinessicon", "checkbox")
CreateConfig(U[c], T["Happiness Icon Size"], C.unitframes[c], "happinesssize")
end
CreateConfig(U[c], T["Show Raid Mark"], C.unitframes[c], "raidicon", "checkbox")
CreateConfig(U[c], T["Raid Mark Size"], C.unitframes[c], "raidiconsize")