Skip to content

Commit

Permalink
another name, more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Jan 6, 2025
1 parent e74d346 commit d08e86b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ElvUI/Core/Modules/Nameplates/Nameplates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function NP:SetCVars()
E:SetCVar('nameplatePlayerMaxDistance', 60)
end

function NP:CombatToggle(cvar, option, switch)
function NP:CombatCVar(cvar, option, switch)
if option == 'TOGGLE_ON' then
E:SetCVar(cvar, switch and 1 or 0)
elseif option == 'TOGGLE_OFF' then
Expand All @@ -223,13 +223,13 @@ function NP:CombatToggle(cvar, option, switch)
end

function NP:PLAYER_REGEN_DISABLED()
NP:CombatToggle('nameplateShowFriends', NP.db.showFriendlyCombat, true)
NP:CombatToggle('nameplateShowEnemies', NP.db.showEnemyCombat, true)
NP:CombatCVar('nameplateShowFriends', NP.db.showFriendlyCombat, true)
NP:CombatCVar('nameplateShowEnemies', NP.db.showEnemyCombat, true)
end

function NP:PLAYER_REGEN_ENABLED()
NP:CombatToggle('nameplateShowFriends', NP.db.showFriendlyCombat)
NP:CombatToggle('nameplateShowEnemies', NP.db.showEnemyCombat)
NP:CombatCVar('nameplateShowFriends', NP.db.showFriendlyCombat)
NP:CombatCVar('nameplateShowEnemies', NP.db.showEnemyCombat)
end

function NP:Style(unit)
Expand Down

0 comments on commit d08e86b

Please sign in to comment.