Skip to content

Commit

Permalink
2.85
Browse files Browse the repository at this point in the history
Updated ToC
Bug Fix: Fixed target border sometimes showing the wrong color.
  • Loading branch information
Grimsbain committed Dec 12, 2023
1 parent 4002e4d commit 727ab5c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Core/Functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -401,15 +401,15 @@ function nPlates:SetSelectionColor(frame)
return
end

local r, g, b = frame.healthBar:GetStatusBarColor()
self.borderColor:SetRGB(r, g, b)

if ( UnitIsUnit(frame.displayedUnit, "target") ) then
if ( self:GetOption("WhiteSelectionColor") ) then
self.borderColor:SetRGB(1, 1, 1)
self:SetBeautyBorderColor(frame.healthBar, self.borderColor)
else
local r, g, b = frame.healthBar:GetStatusBarColor()
self.borderColor:SetRGB(r, g, b)
self:SetBeautyBorderColor(frame.healthBar, self.borderColor)
end

self:SetBeautyBorderColor(frame.healthBar, self.borderColor)
else
self:SetBeautyBorderColor(frame.healthBar, self.defaultBorderColor)
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: 100105
## Interface: 100200
## Title: |cffCC3333 n|rPlates
## Notes: Nameplates for NeavUI.
## Author: Grimsbain
## Version: 2.84
## Version: 2.85
## IconTexture: Interface\AddOns\nPlates\Media\Addon_Icon.png
## SavedVariablesPerCharacter: nPlatesDB
## RequiredDeps: Blizzard_NamePlates
Expand Down
4 changes: 2 additions & 2 deletions nPlates_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface: 30402
## Interface: 30403
## Title: |cffCC3333 n|rPlates
## Notes: Nameplates for NeavUI.
## Author: Grimsbain
## Version: 2.84
## Version: 2.85
## SavedVariablesPerCharacter: nPlatesDB
## RequiredDeps: Blizzard_NamePlates
## LoadWith: Blizzard_NamePlates
Expand Down

0 comments on commit 727ab5c

Please sign in to comment.