new InputMenu()
Creates a new InputMenu object.
An Input Menu lists key strokes and other input available
for the user to interact with the system.
- Source:
Members
-
<private> el
-
Holds a reference to the caption's DOM elements.
- Source:
Methods
-
draw()
-
A noop.
- Source:
-
init(opt_options=)
-
Initialize an instance of InputMenu.
Parameters:
Name Type Argument Default Description opt_options=
Object <optional>
A map of initial properties. opt_options.world
Object <optional>
A world. opt_options.position
string <optional>
'top left' A text representation of the menu's location. Possible values are 'top left', 'top center', 'top right', 'bottom left', 'bottom center', 'bottom right', 'center'. opt_options.opacity
number <optional>
0.75 The menu's opacity. opt_options.color
Array <optional>
255, 255, 255 The menu's color. opt_options.borderWidth
number <optional>
1 The menu's border width. opt_options.borderStyle
string <optional>
'solid' The menu's border style. opt_options.borderColor
Array <optional>
204, 204, 204 The menu's border color. - Source:
-
remove()
-
Removes the menu's DOM element.
- Source: