Enhanced/NamePlates: remove. Not needed
This commit is contained in:
+1
-1
@@ -998,7 +998,7 @@ do
|
||||
end
|
||||
|
||||
do
|
||||
local gold, silver = '|A:nameplates-icon-elite-gold:16:16|a', '|A:nameplates-icon-elite-silver:16:16|a'
|
||||
local gold, silver = CreateAtlasMarkup("nameplates-icon-elite-gold", 0.4, 0, 0), CreateAtlasMarkup("nameplates-icon-elite-silver", 0.4, 0, 0)
|
||||
local typeIcon = { elite = gold, worldboss = gold, rareelite = silver, rare = silver }
|
||||
E:AddTag('classification:icon', 'UNIT_NAME_UPDATE', function(unit)
|
||||
if UnitIsPlayer(unit) then return end
|
||||
|
||||
@@ -138,14 +138,14 @@ local function ColorPath(self, ...)
|
||||
--[[ Override: Health.UpdateColor(self, event, unit)
|
||||
Used to completely override the internal function for updating the widgets' colors.
|
||||
|
||||
* self - the parent object
|
||||
* event - the event triggering the update (string)
|
||||
* unit - the unit accompanying the event (string)
|
||||
--]]
|
||||
local _, unit = ...
|
||||
local args
|
||||
if unit and self.isNamePlate then
|
||||
if (event == "UNIT_THREAT_SITUATION_UPDATE" or event == "UNIT_FLAGS") and unit == "player" then
|
||||
* self - the parent object
|
||||
* event - the event triggering the update (string)
|
||||
* unit - the unit accompanying the event (string)
|
||||
--]]
|
||||
local _, unit = ...
|
||||
local args
|
||||
if unit and self.isNamePlate then
|
||||
if ((event == "UNIT_THREAT_SITUATION_UPDATE" or event == "UNIT_FLAGS") and unit == "player") or event == "UNIT_THREAT_LIST_UPDATE" then
|
||||
args = { ... }
|
||||
args[2] = self.unit
|
||||
elseif unit:sub(1, 9) ~= "nameplate" then
|
||||
|
||||
@@ -145,6 +145,8 @@ function NP:SetCVars()
|
||||
NP:SetCVar('nameplateShowFriendlyGuardians', NP.db.visibility.friendly.guardians and 1 or 0)
|
||||
NP:SetCVar('nameplateShowFriendlyTotems', NP.db.visibility.friendly.totems and 1 or 0)
|
||||
NP:SetCVar('nameplateShowFriendlyPets', NP.db.visibility.friendly.pets and 1 or 0)
|
||||
NP:SetCVar('showVKeyCastbar', 1)
|
||||
SetNamePlateCastBarMode(1)
|
||||
end
|
||||
|
||||
function NP:PLAYER_REGEN_DISABLED()
|
||||
|
||||
Reference in New Issue
Block a user