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()
|
||||
|
||||
@@ -1994,10 +1994,10 @@ function EE:GetOptions()
|
||||
equipmentInfoGroup = EquipmentInfoOptions(),
|
||||
mapGroup = MapOptions(),
|
||||
minimapGroup = MinimapOptions(),
|
||||
namePlatesGroup = NamePlatesOptions(),
|
||||
-- namePlatesGroup = NamePlatesOptions(),
|
||||
tooltipGroup = TooltipOptions(),
|
||||
unitframesGroup = UnitFrameOptions(),
|
||||
loseControlGroup = LoseControlOptions(),
|
||||
-- loseControlGroup = LoseControlOptions(),
|
||||
interruptGroup = InterruptTrackerOptions(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,5 @@
|
||||
<Include file="Actionbars\Load_Actionbars.xml"/>
|
||||
<Include file="Watchframe\Load_Watchframe.xml"/>
|
||||
<Include file="Datatexts\Load_Datatexts.xml"/>
|
||||
<Include file="Nameplates\Load_Nameplates.xml"/>
|
||||
<Include file="Unitframes\Load_Unitframes.xml"/>
|
||||
</Ui>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
<Script file="Movers.lua"/>
|
||||
<Script file="QuestLevel.lua"/>
|
||||
<Script file="QuestReward.lua"/>
|
||||
<Script file="LoseControl.lua"/>
|
||||
<Script file="AlreadyKnown.lua"/>
|
||||
<Script file="TrainAllSkills.lua"/>
|
||||
<Script file="UndressButton.lua"/>
|
||||
|
||||
Reference in New Issue
Block a user