diff --git a/api/config.lua b/api/config.lua index 41ccde11..55a8e1eb 100644 --- a/api/config.lua +++ b/api/config.lua @@ -656,6 +656,7 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("nameplates", nil, "targetglow", "1") pfUI:UpdateConfig("nameplates", nil, "glowcolor", "1,1,1,1") pfUI:UpdateConfig("nameplates", nil, "targetzoom", "0") + pfUI:UpdateConfig("nameplates", nil, "targetzoomval", ".40") pfUI:UpdateConfig("nameplates", nil, "notargalpha", ".75") pfUI:UpdateConfig("nameplates", nil, "healthtexture", "Interface\\AddOns\\pfUI\\img\\bar") pfUI:UpdateConfig("nameplates", "name", "fontstyle", "OUTLINE") diff --git a/modules/gui.lua b/modules/gui.lua index 04066e76..7f443f00 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -2084,11 +2084,12 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function () CreateGUIEntry(T["Nameplates"], nil, function() CreateConfig(U["nameplates"], T["Show On Hostile Units"], C.nameplates, "showhostile", "checkbox") CreateConfig(U["nameplates"], T["Show On Friendly Units"], C.nameplates, "showfriendly", "checkbox") + CreateConfig(U["nameplates"], T["Inactive Nameplate Alpha"], C.nameplates, "notargalpha", "dropdown", pfUI.gui.dropdowns.percent_small) CreateConfig(U["nameplates"], T["Draw Border Around Target Nameplate"], C.nameplates, "targethighlight", "checkbox") CreateConfig(U["nameplates"], T["Draw Glow Around Target Nameplate"], C.nameplates, "targetglow", "checkbox") CreateConfig(U["nameplates"], T["Glow Color Around Target Nameplate"], C.nameplates, "glowcolor", "color") CreateConfig(U["nameplates"], T["Zoom Target Nameplate"], C.nameplates, "targetzoom", "checkbox") - CreateConfig(U["nameplates"], T["Inactive Nameplate Alpha"], C.nameplates, "notargalpha", "dropdown", pfUI.gui.dropdowns.percent_small) + CreateConfig(U["nameplates"], T["Target Nameplate Zoom Factor"], C.nameplates, "targetzoomval", "dropdown", pfUI.gui.dropdowns.percent_small) CreateConfig(U["nameplates"], T["Nameplate Width"], C.nameplates, "width") CreateConfig(U["nameplates"], T["Enable Class Colors On Enemies"], C.nameplates, "enemyclassc", "checkbox") CreateConfig(U["nameplates"], T["Enable Class Colors On Friends"], C.nameplates, "friendclassc", "checkbox") diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 7a3d3506..45eaabe1 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -667,8 +667,9 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () -- target zoom local w, h = nameplate.health:GetWidth(), nameplate.health:GetHeight() if target and C.nameplates.targetzoom == "1" then - local wc = tonumber(C.nameplates.width)*1.4 - local hc = tonumber(C.nameplates.heighthealth)*1.3 + local zoomval = tonumber(C.nameplates.targetzoomval)+1 + local wc = tonumber(C.nameplates.width)*zoomval + local hc = tonumber(C.nameplates.heighthealth)*(zoomval*.9) local animation = false if wc >= w then