mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 03:06:01 +00:00
unitframes: add option to set happiness icon size
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user