WoW:ChatFrame: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Added by egingell)
 
m (Move page script moved page ChatFrame to ChatFrame without leaving a redirect)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{wowapi}}
{{wowapi|nosort=1}}
{{stub/API}}


Added by [[user:egingell|egingell]].
ChatFrame


ChatFrame
-- Print the chat frame number on its respective [[Widget_API#MessageFrame|MessageFrame]]
<pre>for i = 1, NUM_CHAT_WINDOWS do
    getglobal("ChatFrame"..i):AddMessage("This is ChatFrame"..i, 0, 0, 0, 0);
end</pre>


-- Print the chat frame number on its respective [[Widget_API#MessageFrame|MessageFrame]]
{{DEFAULTSORT:ChatFrame}}
for i = 1, NUM_CHAT_WINDOWS do
    getglobal("ChatFrame"..i):[[API_MessageFrame_AddMessage|AddMessage]]("This is ChatFrame"..i, 0, 0, 0, 0);
end

Latest revision as of 04:47, 15 August 2023

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