WoW:ChatFrame: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(Link in a code...)
Line 6: Line 6:
-- Print the chat frame number on its respective [[Widget_API#MessageFrame|MessageFrame]]
-- Print the chat frame number on its respective [[Widget_API#MessageFrame|MessageFrame]]
<pre>for i = 1, NUM_CHAT_WINDOWS do
<pre>for i = 1, NUM_CHAT_WINDOWS do
     getglobal("ChatFrame"..i):[[API_MessageFrame_AddMessage|AddMessage]]("This is ChatFrame"..i, 0, 0, 0, 0);
     getglobal("ChatFrame"..i):AddMessage("This is ChatFrame"..i, 0, 0, 0, 0);
end</pre>
end</pre>


{{DEFAULTSORT:ChatFrame}}
{{DEFAULTSORT:ChatFrame}}

Revision as of 15:49, 4 July 2009

WoW API

ChatFrame

-- Print the chat frame number on its respective MessageFrame

for i = 1, NUM_CHAT_WINDOWS do
     getglobal("ChatFrame"..i):AddMessage("This is ChatFrame"..i, 0, 0, 0, 0);
end