Commit 72af0588 authored by Simpy's avatar Simpy 🐹

make a note

parent c5c99d1c
......@@ -105,18 +105,6 @@ function NP:SetCVars()
SetCVar('nameplateShowSelf', (NP.db.units.PLAYER.useStaticPosition or not NP.db.units.PLAYER.enable) and 0 or 1)
SetCVar('nameplateShowAll', NP.db.visibility.showAll and 1 or 0) -- NP Show Always
SetCVar('nameplateShowEnemyGuardians', NP.db.visibility.enemy.guardians and 1 or 0)
SetCVar('nameplateShowEnemyMinions', NP.db.visibility.enemy.minions and 1 or 0)
SetCVar('nameplateShowEnemyMinus', NP.db.visibility.enemy.minus and 1 or 0)
SetCVar('nameplateShowEnemyPets', NP.db.visibility.enemy.pets and 1 or 0)
SetCVar('nameplateShowEnemyTotems', NP.db.visibility.enemy.totems and 1 or 0)
SetCVar('nameplateShowFriendlyGuardians', NP.db.visibility.friendly.guardians and 1 or 0)
SetCVar('nameplateShowFriendlyMinions', NP.db.visibility.friendly.minions and 1 or 0)
SetCVar('nameplateShowFriendlyNPCs', NP.db.visibility.friendly.npcs and 1 or 0)
SetCVar('nameplateShowFriendlyPets', NP.db.visibility.friendly.pets and 1 or 0)
SetCVar('nameplateShowFriendlyTotems', NP.db.visibility.friendly.totems and 1 or 0)
if NP.db.units.ENEMY_NPC.questIcon.enable or NP.db.units.FRIENDLY_NPC.questIcon.enable then
SetCVar('showQuestTrackingTooltips', 1)
end
......@@ -128,6 +116,18 @@ function NP:SetCVars()
SetCVar('nameplateOtherTopInset', -1)
SetCVar('nameplateOtherBottomInset', -1)
end
-- the order of these is important !!
SetCVar('nameplateShowEnemyMinions', NP.db.visibility.enemy.minions and 1 or 0)
SetCVar('nameplateShowEnemyGuardians', NP.db.visibility.enemy.guardians and 1 or 0)
SetCVar('nameplateShowEnemyMinus', NP.db.visibility.enemy.minus and 1 or 0)
SetCVar('nameplateShowEnemyPets', NP.db.visibility.enemy.pets and 1 or 0)
SetCVar('nameplateShowEnemyTotems', NP.db.visibility.enemy.totems and 1 or 0)
SetCVar('nameplateShowFriendlyMinions', NP.db.visibility.friendly.minions and 1 or 0)
SetCVar('nameplateShowFriendlyGuardians', NP.db.visibility.friendly.guardians and 1 or 0)
SetCVar('nameplateShowFriendlyNPCs', NP.db.visibility.friendly.npcs and 1 or 0)
SetCVar('nameplateShowFriendlyPets', NP.db.visibility.friendly.pets and 1 or 0)
SetCVar('nameplateShowFriendlyTotems', NP.db.visibility.friendly.totems and 1 or 0)
end
function NP:PLAYER_REGEN_DISABLED()
......
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