WoW:API LoggingChat: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(upsated to new template) |
||
Line 1: | Line 1: | ||
{{ | {{wowapi}} __NOTOC__ | ||
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section --> | |||
Toggles the chat logging and returns teh current state. | |||
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args --> | |||
isLogging = LoggingChat([newState]) | |||
== Parameters == | |||
=== Arguments === | |||
<!-- List each argument, together with its type --> | |||
:([newState]) | |||
:;newState : Boolean - toggles chat logging | |||
=== Returns === | |||
<!-- List each return value, together with its type --> | |||
:;isLogging : Boolean - current state of logging | |||
== Example == | |||
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory --> | |||
if (LoggingChat()) then | if (LoggingChat()) then | ||
DEFAULT_CHAT_FRAME:AddMessage("chatlog IS running",1,0,0); | DEFAULT_CHAT_FRAME:AddMessage("chatlog IS running",1,0,0); | ||
Line 17: | Line 29: | ||
LoggingChat(1); | LoggingChat(1); | ||
DEFAULT_CHAT_FRAME:AddMessage("Chat beeing logged to logs\\WOWChatLog.txt"); | DEFAULT_CHAT_FRAME:AddMessage("Chat beeing logged to logs\\WOWChatLog.txt"); | ||
end | end | ||
Revision as of 10:16, 28 July 2006
← WoW API < LoggingChat
Toggles the chat logging and returns teh current state.
isLogging = LoggingChat([newState])
Parameters
Arguments
:([newState])
:;newState : Boolean - toggles chat logging
Returns
:;isLogging : Boolean - current state of logging
Example
if (LoggingChat()) then DEFAULT_CHAT_FRAME:AddMessage("chatlog IS running",1,0,0); else DEFAULT_CHAT_FRAME:AddMessage("chatlog IS NOT running... starting"); LoggingChat(1); DEFAULT_CHAT_FRAME:AddMessage("Chat beeing logged to logs\\WOWChatLog.txt"); end