Module ...
Module that handles multiplayer chats
Functions
| _M:filterMessage (item) | Filter messages | 
| _M:getCurrentTarget () | Gets the current talk target, channel or whisper | 
| _M:getLog (channel, extra) | Returns the full log | 
| _M:getUserInfo (login) | Get user infos | 
| _M:init () | Creates the log zone | 
| _M:registerTalkEvents (fct) | Register to receive events | 
| _M:resize (x, y, w, h, fontname, fontsize, color, bgcolor) | Resize the display area | 
| _M:scrollUp (i) | Scroll the zone | 
| _M:setCurrentTarget (channel, name, no_switch) | Sets the current talk target, channel or whisper | 
| _M:setupOnGame () | Hook up in the current running game | 
| _M:showLogDialog (title, shadow) | Make a dialog popup with the full log | 
| _M:showUserInfo (login) | Display user infos | 
| _M:talkBox (on_end, only_friends) | Request a line to send | 
| _M:unregisterTalkEvents (fct) | Register to not receive events | 
Functions
- _M:filterMessage (item)
- 
Filter messages
Parameters- item:
 
- _M:getCurrentTarget ()
- Gets the current talk target, channel or whisper
- _M:getLog (channel, extra)
- 
Returns the full log
Parameters- channel:
- extra:
 
- _M:getUserInfo (login)
- 
Get user infos
Parameters- login:
 
- _M:init ()
- Creates the log zone
- _M:registerTalkEvents (fct)
- 
Register to receive events
Parameters- fct:
 
- _M:resize (x, y, w, h, fontname, fontsize, color, bgcolor)
- 
Resize the display area
Parameters- x:
- y:
- w:
- h:
- fontname:
- fontsize:
- color:
- bgcolor:
 
- _M:scrollUp (i)
- 
Scroll the zone
Parameters- i: number representing how many lines to scroll
 
- _M:setCurrentTarget (channel, name, no_switch)
- 
Sets the current talk target, channel or whisper
Parameters- channel:
- name:
- no_switch:
 
- _M:setupOnGame ()
- Hook up in the current running game
- _M:showLogDialog (title, shadow)
- 
Make a dialog popup with the full log
Parameters- title:
- shadow:
 
- _M:showUserInfo (login)
- 
Display user infos
Parameters- login:
 
- _M:talkBox (on_end, only_friends)
- 
Request a line to send
Parameters- on_end:
- only_friends:
 
- _M:unregisterTalkEvents (fct)
- 
Register to not receive events
Parameters- fct: