Enhanced/NamePlates: remove. Not needed

This commit is contained in:
andrew6180
2023-05-31 15:41:31 -07:00
parent 1fbdc4f542
commit cbaf9f0bb3
6 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -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
+8 -8
View File
@@ -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
+2
View File
@@ -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()