X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/3d660c55b38f95a6f03209d1f7d1174d0e7d48e7..c809e5da99427a93b5ad5eb010a1cb1cba507ec2:/OmaPower/AltPower.lua 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");