Skip to content

Commit

Permalink
11.0.5 Update
Browse files Browse the repository at this point in the history
Updated retail ToC to 11.0.5.
Minor code fixes.
  • Loading branch information
Grimsbain committed Nov 3, 2024
1 parent 1c8ef75 commit aebfeb7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 5 additions & 3 deletions Core/Functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ function nPlates:UpdateNameColor(frame)
end

if ( UnitIsPlayer(frame.unit) ) then
local healthBar = frame.HealthBarsContainer and frame.HealthBarsContainer.healthBar or frame.healthBar
local healthContainer = frame.HealthBarsContainer or frame
local healthBar = healthContainer.healthBar
local r, g, b = healthBar:GetStatusBarColor()
frame.name:SetTextColor(r, g, b)
return
Expand Down Expand Up @@ -402,7 +403,8 @@ function nPlates:SetSelectionColor(frame)
return
end

local healthBar = frame.HealthBarsContainer and frame.HealthBarsContainer.healthBar or frame.healthBar
local healthContainer = frame.HealthBarsContainer or frame
local healthBar = healthContainer.healthBar

if ( UnitIsUnit(frame.displayedUnit, "target") ) then
if ( self:GetOption("WhiteSelectionColor") ) then
Expand Down Expand Up @@ -485,7 +487,7 @@ function nPlates:FixPersonalResourceDisplay(unit)
end
end

-- Wrath Only --
-- Cata Only --

function nPlates:UpdateClassification(frame)
if ( self:IsFrameBlocked(frame) ) then
Expand Down
7 changes: 3 additions & 4 deletions Retail/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ function nPlatesMixin:OnNamePlateAdded(unit)
nPlates:UpdateStatusText(unitFrame)
nPlates:UpdateHealthColor(unitFrame)
nPlates:UpdateName(unitFrame)

nPlates:FixPersonalResourceDisplay(unit)
end

Expand Down Expand Up @@ -346,9 +345,9 @@ function nPlates:SetupAnchors(frame, setupOptions)
local castBar = frame.castBar

healthContainer:SetHeight(14)

-- The alpha setting is used to detect the player resource frame.
if ( setupOptions.healthBarAlpha ~= 1 ) then
-- Used to detect the player resource frame.
if ( frame.unit ~= nil ) then
healthBar:SetPoint("BOTTOMLEFT", castBar, "TOPLEFT", 0, 5)
healthBar:SetPoint("BOTTOMRIGHT", castBar, "TOPRIGHT", 0, 5)
end
Expand Down
4 changes: 2 additions & 2 deletions nPlates.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface: 110002
## Interface: 110005
## Title: |cffCC3333 n|rPlates
## Notes: Nameplates for NeavUI.
## Author: Grimsbain
## Version: 2.90
## Version: 2.91
## IconTexture: Interface\AddOns\nPlates\Media\Addon_Icon.png
## SavedVariablesPerCharacter: nPlatesDB
## RequiredDeps: Blizzard_NamePlates
Expand Down

0 comments on commit aebfeb7

Please sign in to comment.