nameplates: add option to set target zoom factor

This commit is contained in:
shagu
2020-07-12 11:07:35 +02:00
parent cd76ac0b72
commit bc8f05f843
3 changed files with 6 additions and 3 deletions
+3 -2
View File
@@ -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