c809e5d - Add name prefix when in vehicle
[wowui.git] / OmaPower / AltPower.lua
index 5ab7742..eeb2c42 100644 (file)
@@ -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");