Class engine.HotkeysIconsDisplay
Display of hotkeys with icons
Methods
engine.HotkeysIconsDisplay:init (actor, x, y, w, h, bgcolor[, fontname="DroidSansMono"][, fontsize=10], icon_w, icon_h)
Init
engine.HotkeysIconsDisplay:setColumns (nb)
Sets the display into nb columns
engine.HotkeysIconsDisplay:enableShadow (v)
Enable our shadows
engine.HotkeysIconsDisplay:resize (x, y, w, h, iw, ih)
Resize the display area
engine.HotkeysIconsDisplay:toScreen ()
Our toScreen override
engine.HotkeysIconsDisplay:onMouse (button, mx, my, click, on_over, on_click)
Call when a mouse event arrives in this zone
This is optional, only if you need mouse support
Methods
- engine.HotkeysIconsDisplay:init (actor, x, y, w, h, bgcolor[, fontname="DroidSansMono"][, fontsize=10], icon_w, icon_h)
-
Init
Parameters:
- engine.HotkeysIconsDisplay:setColumns (nb)
-
Sets the display into nb columns
Parameters:
- nb
- engine.HotkeysIconsDisplay:enableShadow (v)
-
Enable our shadows
Parameters:
- v
- engine.HotkeysIconsDisplay:resize (x, y, w, h, iw, ih)
-
Resize the display area
Parameters:
- x number x coordinate
- y number y coordinate
- w number width
- h number height
- iw number icon width
- ih number icon height
- engine.HotkeysIconsDisplay:toScreen ()
- Our toScreen override
- engine.HotkeysIconsDisplay:onMouse (button, mx, my, click, on_over, on_click)
-
Call when a mouse event arrives in this zone
This is optional, only if you need mouse supportParameters:
- button string
- mx number mouse x
- my number mouse y
- click boolean did they click
- on_over function callback for hover
- on_click function callback for click