diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index a6e5b2e9..00000000 Binary files a/.DS_Store and /dev/null differ diff --git a/Libs/.DS_Store b/Libs/.DS_Store deleted file mode 100644 index b0ec55c5..00000000 Binary files a/Libs/.DS_Store and /dev/null differ diff --git a/Modules/.DS_Store b/Modules/.DS_Store deleted file mode 100644 index ad39bfaf..00000000 Binary files a/Modules/.DS_Store and /dev/null differ diff --git a/Modules/UnitFrames/_Core.lua b/Modules/UnitFrames/_Core.lua index 6b2caf35..af4ac068 100755 --- a/Modules/UnitFrames/_Core.lua +++ b/Modules/UnitFrames/_Core.lua @@ -8,18 +8,20 @@ function Module:OnEnable() if db.texture ~= [[Interface\Default]] then local function manaTexture(self) if self and self.powerType then - -- Get Power Color - local powerColor = PowerBarColor[self.powerType] + if self.unit ~= 'player' then + -- Get Power Color + local powerColor = PowerBarColor[self.powerType] - -- Set Texture - self.texture:SetTexture(db.texture) + -- Set Texture + self.texture:SetTexture(db.texture) - -- Set Power Color - if self.unitFrame and self.unitFrame.manabar then - if self.powerType == 0 then - self.unitFrame.manabar:SetStatusBarColor(0, 0.5, 1) - else - self.unitFrame.manabar:SetStatusBarColor(powerColor.r, powerColor.g, powerColor.b) + -- Set Power Color + if self.unitFrame and self.unitFrame.manabar then + if self.powerType == 0 then + self.unitFrame.manabar:SetStatusBarColor(0, 0.5, 1) + else + self.unitFrame.manabar:SetStatusBarColor(powerColor.r, powerColor.g, powerColor.b) + end end end end diff --git a/Modules/UnitFrames/_Player.lua b/Modules/UnitFrames/_Player.lua index 0711f833..c11a867a 100755 --- a/Modules/UnitFrames/_Player.lua +++ b/Modules/UnitFrames/_Player.lua @@ -23,8 +23,26 @@ function Module:OnEnable() end end + local function manaTexture(self) + if self and self.manabar then + -- Get Power Color + local powerColor = PowerBarColor[self.manabar.powerType] + + -- Set Texture + self.manabar.texture:SetTexture(db.texture) + + -- Set Power Color + if self.manabar.powerType == 0 then + self.manabar:SetStatusBarColor(0, 0.5, 1) + else + self.manabar:SetStatusBarColor(powerColor.r, powerColor.g, powerColor.b) + end + end + end + PlayerFrame:HookScript("OnEvent", function(self, event) healthTexture(self, event) + manaTexture(self, event) if not db.unitframes.cornericon then PlayerFrame.PlayerFrameContent.PlayerFrameContentContextual.PlayerPortraitCornerIcon:Hide() diff --git a/SUI.toc b/SUI.toc index 0eb931d0..0f71bf90 100755 --- a/SUI.toc +++ b/SUI.toc @@ -1,6 +1,6 @@ -## Interface: 100205 +## Interface: 100206 ## Author: Syiana & Muleyo -## Version: 10.2.15 +## Version: 10.2.16 ## Title: |cffea00ffS|r|cff00a2ffUI|r ## SavedVariables: SUIDB ## IconTexture: Interface\AddOns\SUI\Media\Icons\SUI