Thread Tools Display Modes
Prev Previous Post   Next Post Next
09-08-10, 08:47 AM   #1
ezarra
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 123
Putting Text on an overlay

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
__________________
Dude, if you wanted to win, why'd you let me play?
 
 

WoWInterface » AddOns, Compilations, Macros » Cataclysm Beta » Putting Text on an overlay


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off