Fixed some colors in armory not updating immideately
Darth Predator [09-17-17 - 22:24]
Fixed some colors in armory not updating immideately
diff --git a/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua b/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
index 90c8465..9d6bccd 100644
--- a/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
+++ b/ElvUI_SLE/modules/Armory/CharacterArmory/CharacterArmory.lua
@@ -1254,9 +1254,9 @@ do --<< Artifact Monitor >>
self.ArtifactMonitor:Show()
if (GetLocale() == "ruRU") then
- self.ArtifactMonitor.TraitRank:SetText(LEVEL..' : '..COLORSTRING_ARTIFACT..Artifact_Rank)
+ self.ArtifactMonitor.TraitRank:SetText(KF:Color_Value(LEVEL..' : '..COLORSTRING_ARTIFACT..Artifact_Rank))
else
- self.ArtifactMonitor.TraitRank:SetText(RANK..' : '..COLORSTRING_ARTIFACT..Artifact_Rank)
+ self.ArtifactMonitor.TraitRank:SetText(KF:Color_Value(RANK..' : '..COLORSTRING_ARTIFACT..Artifact_Rank))
end
if E.db.sle.Armory.Character.Artifact.ShortValues then
self.ArtifactMonitor.CurrentPower:SetText(Legion_ArtifactData.Power)
@@ -1627,6 +1627,10 @@ KF.Modules.CharacterArmory = function()
_G["CharacterModelFrameBackgroundOverlay"]:SetPoint('TOPLEFT', CharacterModelFrame, 0, 0)
_G["CharacterModelFrameBackgroundOverlay"]:SetPoint('BOTTOMRIGHT', CharacterModelFrame, 0, 0)
end
+
+ hooksecurefunc(E, "UpdateMedia", function(self)
+ CA.ArtifactMonitor.BarExpected:SetStatusBarColor(unpack(E.media.rgbvaluecolor))
+ end)
CA:ElvOverlayToggle()
if SLE._Compatibility["DejaCharacterStats"] then