Module ...
Module that handles message history in a mouse wheel scrollable zone
Functions
| _M:call (str, ...) | Appends text to the log This method is set as the call methamethod too, this means it is usable like this: log = LogDisplay.new(...) log("foo %s", s) | 
| _M:empty () | Clear the log | 
| _M:getLines (number) | Get Last Lines From Log | 
| _M:init (x, y, w, h, max, fontname, fontsize, color, bgcolor) | Creates the log zone | 
| _M:resize (x, y, w, h) | Resize the display area | 
| _M:scrollUp (i) | Scroll the zone | 
Functions
- _M:call (str, ...)
- 
Appends text to the log This method is set as the call methamethod too, this means it is usable like this:
 log = LogDisplay.new(...)
 log("foo %s", s)Parameters- str:
- ...:
 
- _M:empty ()
- Clear the log
- _M:getLines (number)
- 
Get Last Lines From Log
Parameters- number: number of lines to retrieve
 
- _M:init (x, y, w, h, max, fontname, fontsize, color, bgcolor)
- 
Creates the log zone
Parameters- x:
- y:
- w:
- h:
- max:
- fontname:
- fontsize:
- color:
- bgcolor:
 
- _M:resize (x, y, w, h)
- 
Resize the display area
Parameters- x:
- y:
- w:
- h:
 
- _M:scrollUp (i)
- 
Scroll the zone
Parameters- i: number representing how many lines to scroll