Class engine.HotkeysDisplay

Hotkeys Display

Methods

engine.HotkeysDisplay:init (actor, x, y, w, h, bgcolor[, fontname="DroidSansMono"][, fontsize=10])

Init

engine.HotkeysDisplay:setColumns (nb)

Sets the display into nb columns

engine.HotkeysDisplay:enableShadow (v)

Enable our shadows??

engine.HotkeysDisplay:resize (x, y, w, h)

Resize the display area

engine.HotkeysDisplay:display ()

Displays the hotkeys, keybinds & cooldowns

engine.HotkeysDisplay:toScreen ()

To screen function override

engine.HotkeysDisplay: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.HotkeysDisplay:init (actor, x, y, w, h, bgcolor[, fontname="DroidSansMono"][, fontsize=10])
Init

Parameters:

  • actor Actor
  • x number x coordinate
  • y number y coordinate
  • w number width
  • h number height
  • bgcolor table background color
  • fontname string (default "DroidSansMono")
  • fontsize number (default 10)
engine.HotkeysDisplay:setColumns (nb)
Sets the display into nb columns

Parameters:

  • nb
engine.HotkeysDisplay:enableShadow (v)
Enable our shadows??

Parameters:

  • v
engine.HotkeysDisplay:resize (x, y, w, h)
Resize the display area

Parameters:

  • x number x coordinate
  • y number y coordinate
  • w number width
  • h number height
engine.HotkeysDisplay:display ()
Displays the hotkeys, keybinds & cooldowns
engine.HotkeysDisplay:toScreen ()
To screen function override
engine.HotkeysDisplay: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

Parameters:

  • 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
generated by LDoc 1.4.3