Skip to content

Feedback

trubblegum edited this page Mar 31, 2012 · 6 revisions

Text (using element.label as text), which fades over element.life seconds and then removes itself.

Note that element.pos.w and element.pos.h are set to 0, so that feedback elements do not interfere with mouse input.

local element = Gspot:feedback(label, pos, parent, autopos)
local element = Gspot:feedback(label)

Additional constructor arguments :

bool or nil autopos if true or nil, element will position itself in the top left corner of the screen, and shift existing auto-positioned elements down.
Additional values :
number (0-255) alpha used for fading
number (seconds) life indicates maximum lifespan of this element.
bool autopos indicates if the element's positioning is being handled automatically.
number Gspot.feedback.lines the number of lines currently in the feedback queue.
Reserved behaviours : update