#include <Default3DMenu.H>
Inherits IS3D::DrawObj.
Public Types | |
enum | ItemState { ENABLED, DISABLED, HIGHLIGHTED, ACTIVATED } |
Public Member Functions | |
Default3DMenu (const std::string &configName) | |
Default3DMenu (const std::string &configName, Array< std::string > disableTriggers, Array< std::string > enableTriggers) | |
virtual | ~Default3DMenu () |
void | trackerMove (EventRef e) |
void | trackerMoveInMenu (EventRef e) |
void | trackerMoveBtnDown (EventRef e) |
void | menuBtnOn (EventRef e) |
void | menuBtnOff (EventRef e) |
ItemState | getItemState (const int i) |
void | setItemState (const int i, ItemState s) |
void | menuEnable () |
void | menuDisable () |
void | chooseItem (const int i) |
void | draw () |
Override this function and place your G3D draw calls inside it. | |
Protected Member Functions | |
void | init (const std::string &configName, Array< std::string > disableTriggers, Array< std::string > enableTriggers) |
void | drawTextOnBox (const std::string &str, AABox box, Color4 color, Color4 outline) |
Protected Attributes | |
std::string | _title |
Array< std::string > | _items |
Array< ItemState > | _states |
CoordinateFrame | _initialFrame |
Array< AABox > | _boxes |
GFontRef | _font |
double | _textHeight |
double | _padding |
Color4 | _outlineCol |
Color4 | _titleFG |
Color4 | _titleBG |
Color4 | _itemFG |
Color4 | _itemBG |
Color4 | _disabledFG |
Color4 | _disabledBG |
Color4 | _highltFG |
Color4 | _highltBG |
Color4 | _activatedFG |
Color4 | _activatedBG |
FsaRef | _fsa |
CoordinateFrame | _dragOffset |
bool | _firstDrag |
IS3D::Default3DMenu::Default3DMenu | ( | const std::string & | configName | ) |
IS3D::Default3DMenu::Default3DMenu | ( | const std::string & | configName, | |
Array< std::string > | disableTriggers, | |||
Array< std::string > | enableTriggers | |||
) |
virtual IS3D::Default3DMenu::~Default3DMenu | ( | ) | [virtual] |
void IS3D::Default3DMenu::trackerMove | ( | EventRef | e | ) |
void IS3D::Default3DMenu::trackerMoveInMenu | ( | EventRef | e | ) |
void IS3D::Default3DMenu::trackerMoveBtnDown | ( | EventRef | e | ) |
void IS3D::Default3DMenu::menuBtnOn | ( | EventRef | e | ) |
void IS3D::Default3DMenu::menuBtnOff | ( | EventRef | e | ) |
void IS3D::Default3DMenu::menuEnable | ( | ) |
void IS3D::Default3DMenu::menuDisable | ( | ) |
void IS3D::Default3DMenu::chooseItem | ( | const int | i | ) |
void IS3D::Default3DMenu::draw | ( | ) | [virtual] |
void IS3D::Default3DMenu::init | ( | const std::string & | configName, | |
Array< std::string > | disableTriggers, | |||
Array< std::string > | enableTriggers | |||
) | [protected] |
void IS3D::Default3DMenu::drawTextOnBox | ( | const std::string & | str, | |
AABox | box, | |||
Color4 | color, | |||
Color4 | outline | |||
) | [protected] |
std::string IS3D::Default3DMenu::_title [protected] |
Array<std::string> IS3D::Default3DMenu::_items [protected] |
Array<ItemState> IS3D::Default3DMenu::_states [protected] |
Referenced by getItemState(), and setItemState().
CoordinateFrame IS3D::Default3DMenu::_initialFrame [protected] |
Array<AABox> IS3D::Default3DMenu::_boxes [protected] |
GFontRef IS3D::Default3DMenu::_font [protected] |
double IS3D::Default3DMenu::_textHeight [protected] |
double IS3D::Default3DMenu::_padding [protected] |
Color4 IS3D::Default3DMenu::_outlineCol [protected] |
Color4 IS3D::Default3DMenu::_titleFG [protected] |
Color4 IS3D::Default3DMenu::_titleBG [protected] |
Color4 IS3D::Default3DMenu::_itemFG [protected] |
Color4 IS3D::Default3DMenu::_itemBG [protected] |
Color4 IS3D::Default3DMenu::_disabledFG [protected] |
Color4 IS3D::Default3DMenu::_disabledBG [protected] |
Color4 IS3D::Default3DMenu::_highltFG [protected] |
Color4 IS3D::Default3DMenu::_highltBG [protected] |
Color4 IS3D::Default3DMenu::_activatedFG [protected] |
Color4 IS3D::Default3DMenu::_activatedBG [protected] |
FsaRef IS3D::Default3DMenu::_fsa [protected] |
CoordinateFrame IS3D::Default3DMenu::_dragOffset [protected] |
bool IS3D::Default3DMenu::_firstDrag [protected] |