in my XML I have
Code:
<StatusBar name="EZXPBarXP" inherits="TextStatusBar" frameStrata="LOW">
<Size>
<AbsDimension x="118" y="5"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="EZXPBar" relativePoint="TOPLEFT">
<Offset>
<AbsDimension x="5" y="-5"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnEvent>
EZXPBar_OnEvent(event);
</OnEvent>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
<BarColor r="0.5" g="0" b="0.5"/>
<Layers>
<Layer level="OVERLAY">
<FontString name="EZXPBar_TEXT" inherits="GameFontNormalSmall">
<Shadow/>
<Color r="1" g="1" b="0"/>
</FontString>
</Layer>
</Layers>
</StatusBar>
Now, I am trying to set the text and color in my lua:
Code:
if (GetXPExhaustion() ~= nil) then
EZXPBarXP:SetStatusBarColor(0.8,0.6,0);
EZXPBar_TEXT:SetText(COLOR1 ..dispRP );
else
EZXPBar_TEXT:SetText(COLOR1 .. dispXP);
EZXPBarXP:SetStatusBarColor(0,0,1);
end
Trouble is, neither the color not the text setting appear to do anything at all