From: Aleksi Blinnikka Date: Sun, 25 Mar 2018 18:03:49 +0000 (+0300) Subject: Add different alt power color for Warlock X-Git-Url: https://www.aleksib.fi/git/wowui.git/commitdiff_plain/43157e64b1540e4b633423a3523f7d031b60de61?ds=inline Add different alt power color for Warlock --- diff --git a/OmaPower/AltPower.lua b/OmaPower/AltPower.lua index 5ab7742..eeb2c42 100644 --- a/OmaPower/AltPower.lua +++ b/OmaPower/AltPower.lua @@ -65,9 +65,12 @@ function f:PLAYER_LOGIN() end f[i]:SetWidth(25); f[i]:SetHeight(25); - -- color is default from SHP - -- TODO different for different classes - f[i]:SetColorTexture(0.9686274509803922, 0.674509803921568, 0.1450980392156863); + if class == "WARLOCK" then + f[i]:SetColorTexture(0.7, 0.3, 0.5); + else + -- color is default from SHP + f[i]:SetColorTexture(0.9686274509803922, 0.674509803921568, 0.1450980392156863); + end end f:RegisterUnitEvent("UNIT_POWER", "player");