Thread Tools Display Modes
04-20-06, 06:23 AM   #1
zcro
A Kobold Labourer
Join Date: Apr 2006
Posts: 1
XML assistance

Hi everyone i have a bit of a problem... im tried to make a very simple lua script that redirects some of the red texting on the scrren to a smaller log window.

I have made the function to redirect and all that, i tested it by sending it to the default chatframe, alot of spam

Anyways now i made my own messageframe and i cant get it to show, im pretty sure its just something simpel but i was hoping you could help me.
<pre>
<ScrollingMessageFrame name="UHR_MSGFRAME" insertMode="TOP" parent="UIParent" frameStrata="LOW" toplevel="true" hidden="false" movable="true" resizable="true" >
<Size>
<AbsDimension x="100" y="32"></AbsDimension>
</Size>
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="50" y="0"></AbsDimension>
</Offset>
</Anchor>
</Anchors>
<FontString inherits="MasterFont" justifyH="CENTER">
<FontHeight>
<AbsValue val="20"/>
</FontHeight>
</FontString>
<Scripts>
<OnLoad>
UHRedirect_OnLoad();
</OnLoad>
</Scripts>
</ScrollingMessageFrame >

function UHRedirect_OnLoad()

UHR_Display_Message("hello world");
end

function UHR_Display_Message(msg)
UHR_MSGFRAME:AddMessage(msg, 1.0, 0.0, 0.0, 1.0, 5);
end
</pre>
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » XML assistance

Thread Tools
Display Modes

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