Class: OptionBox

OptionBox(center, w, h, text) → {OptionBox}

new OptionBox(center, w, h, text) → {OptionBox}

Constructor for option boxes which is the UI element for choices.
Parameters:
Name Type Description
center 2DArray
w int
h int
text ObjectArray
Source:
Returns:
Type
OptionBox

Methods

deSelect() → {void}

Unhighlights the current selected option.
Source:
Returns:
Type
void

draw(camera) → {void}

Draws the option boxes onto current camera.
Parameters:
Name Type Description
camera CameraObject
Source:
Returns:
Type
void

select() → {void}

Highlights the current selected option.
Source:
Returns:
Type
void