Class engine.LogFlasher
Module that handles a single message line, with pausing and flashing
Methods
engine.LogFlasher:init (x, y, w, h, max, fontname, fontsize, color, bgcolor)
Creates the log zone
engine.LogFlasher:resize (x, y, w, h)
Resize the display area
engine.LogFlasher:call (style, 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)
engine.LogFlasher:empty (force)
Clear the log
Methods
- engine.LogFlasher:init (x, y, w, h, max, fontname, fontsize, color, bgcolor)
-
Creates the log zone
Parameters:
- x
- y
- w
- h
- max
- fontname
- fontsize
- color
- bgcolor
- engine.LogFlasher:resize (x, y, w, h)
-
Resize the display area
Parameters:
- x
- y
- w
- h
- engine.LogFlasher:call (style, 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:
- style
- str
- ...
- engine.LogFlasher:empty (force)
-
Clear the log
Parameters:
- force