Commit 81131a8a authored by Azilroka's avatar Azilroka
Browse files

Fix NamePlate Clickable Settings

parent 80babe4a
......@@ -2274,9 +2274,9 @@ local function GetUnitSettings(unit, name)
max = function()
if unit == 'PLAYER' then
return (NP.db.plateSize.personalHeight or 20)
elseif unit == "FRIENDLY_PLAYER" or unit == "ENEMY_PLAYER" then
elseif unit == "FRIENDLY_PLAYER" or unit == "FRIENDLY_NPC" then
return (NP.db.plateSize.friendlyHeight or 20)
elseif unit == "ENEMY_NPC" or unit == "FRIENDLY_NPC" then
elseif unit == "ENEMY_PLAYER" or unit == "ENEMY_NPC" then
return (NP.db.plateSize.enemyHeight or 20)
else
return 20
......@@ -2413,9 +2413,9 @@ local function GetUnitSettings(unit, name)
max = function()
if unit == 'PLAYER' then
return (NP.db.plateSize.personalWidth or 250)
elseif unit == "FRIENDLY_PLAYER" or unit == "ENEMY_PLAYER" then
elseif unit == "FRIENDLY_PLAYER" or unit == "FRIENDLY_NPC" then
return (NP.db.plateSize.friendlyWidth or 250)
elseif unit == "ENEMY_NPC" or unit == "FRIENDLY_NPC" then
elseif unit == "ENEMY_PLAYER" or unit == "ENEMY_NPC" then
return (NP.db.plateSize.enemyWidth or 250)
else
return 250
......@@ -2432,9 +2432,9 @@ local function GetUnitSettings(unit, name)
max = function()
if unit == 'PLAYER' then
return (NP.db.plateSize.personalHeight or 20)
elseif unit == "FRIENDLY_PLAYER" or unit == "ENEMY_PLAYER" then
elseif unit == "FRIENDLY_PLAYER" or unit == "FRIENDLY_NPC" then
return (NP.db.plateSize.friendlyHeight or 20)
elseif unit == "ENEMY_NPC" or unit == "FRIENDLY_NPC" then
elseif unit == "ENEMY_PLAYER" or unit == "ENEMY_NPC" then
return (NP.db.plateSize.enemyHeight or 20)
else
return 20
......@@ -2601,9 +2601,9 @@ local function GetUnitSettings(unit, name)
max = function()
if unit == 'PLAYER' then
return (NP.db.plateSize.personalWidth or 250)
elseif unit == "FRIENDLY_PLAYER" or unit == "ENEMY_PLAYER" then
elseif unit == "FRIENDLY_PLAYER" or unit == "FRIENDLY_NPC" then
return (NP.db.plateSize.friendlyWidth or 250)
elseif unit == "ENEMY_NPC" or unit == "FRIENDLY_NPC" then
elseif unit == "ENEMY_PLAYER" or unit == "ENEMY_NPC" then
return (NP.db.plateSize.enemyWidth or 250)
else
return 250
......@@ -2620,9 +2620,9 @@ local function GetUnitSettings(unit, name)
max = function()
if unit == 'PLAYER' then
return (NP.db.plateSize.personalHeight or 20)
elseif unit == "FRIENDLY_PLAYER" or unit == "ENEMY_PLAYER" then
elseif unit == "FRIENDLY_PLAYER" or unit == "FRIENDLY_NPC" then
return (NP.db.plateSize.friendlyHeight or 20)
elseif unit == "ENEMY_NPC" or unit == "FRIENDLY_NPC" then
elseif unit == "ENEMY_PLAYER" or unit == "ENEMY_NPC" then
return (NP.db.plateSize.enemyHeight or 20)
else
return 20
......@@ -3734,9 +3734,9 @@ local function GetUnitSettings(unit, name)
max = function()
if unit == 'PLAYER' then
return (NP.db.plateSize.personalWidth or 250)
elseif unit == "FRIENDLY_PLAYER" or unit == "ENEMY_PLAYER" then
elseif unit == "FRIENDLY_PLAYER" or unit == "FRIENDLY_NPC" then
return (NP.db.plateSize.friendlyWidth or 250)
elseif unit == "ENEMY_NPC" or unit == "FRIENDLY_NPC" then
elseif unit == "ENEMY_PLAYER" or unit == "ENEMY_NPC" then
return (NP.db.plateSize.enemyWidth or 250)
else
return 250
......@@ -3754,9 +3754,9 @@ local function GetUnitSettings(unit, name)
max = function()
if unit == 'PLAYER' then
return (NP.db.plateSize.personalHeight or 20)
elseif unit == "FRIENDLY_PLAYER" or unit == "ENEMY_PLAYER" then
elseif unit == "FRIENDLY_PLAYER" or unit == "FRIENDLY_NPC" then
return (NP.db.plateSize.friendlyHeight or 20)
elseif unit == "ENEMY_NPC" or unit == "FRIENDLY_NPC" then
elseif unit == "ENEMY_PLAYER" or unit == "ENEMY_NPC" then
return (NP.db.plateSize.enemyHeight or 20)
else
return 20
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment