so guys, Could you help me with a peace of code i can't figure out whats wrong!
I'm starting to learn lua/xml and can't solve this one by myself.
Code:
<UI ................>
...
<Frame .....>
...
<Layers>
<Layer level="OVERLAY">
<FontString inherits="GameFontNormal" name="HelpMainText">
<Anchors>
<Anchor point="TOP" relativeTo="$parent">
<Offset><AbsDimension x="0" y="-30"/></Offset>
</Anchor>
</Anchors>
<Scripts>
HelpMainText:SetText("teste");
</Scripts>
</FontString>
</Layer>
</Layers>
</Frame>
</UI>
The text setted under the script just doesn't show up, if I use the text attribute at the frontstring, like this:
Code:
<FontString inherits="GameFontNormal" text="teste">
It works, so I think the problem is within the script part of the code.
I can't use the text attribute cuz I need a variable to be displayed on this fontstring
Any ideas?