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>