|
Public Types |
| enum | ItemState { ENABLED,
DISABLED,
HIGHLIGHTED,
ACTIVATED
} |
Public Member Functions |
| | Default3DMenu (const std::string &menuTitle, const Array< std::string > &menuItemNames, const Array< std::string > &eventsToGenerate, const std::string &trackerEventToListenFor, const std::string &buttonEventToListenFor, const CoordinateFrame &initialFrame, double itemHeight, WidgetMgrRef widgetMgr) |
| virtual | ~Default3DMenu () |
| void | processEvent (EventRef event, Array< EventRef > &generatedEvents) |
| void | doGraphics (RenderDevice *rd) |
| bool | pointerOverWidget (Vector3 pointerPosRoomSpace) |
| bool | canReleaseFocus () |
| ItemState | getItemState (const int i) |
| void | setItemState (const int i, ItemState s) |
Protected Member Functions |
| void | menuBtnOn (Array< EventRef > &generatedEvents) |
| void | menuBtnOff () |
| void | trackerMove (EventRef e) |
| void | trackerMoveBtnDown (EventRef e) |
| void | drawTextOnBox (RenderDevice *rd, const std::string &str, AABox box, Color4 color, Color4 outline) |
Protected Attributes |
| std::string | _title |
| Array< std::string > | _items |
| Array< ItemState > | _states |
| 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 |
| CoordinateFrame | _dragOffset |
| bool | _firstDrag |
| bool | _btnDown |
| std::string | _trackerEvent |
| std::string | _btnEvent |
| Array< std::string > | _events |
| BBox | _bbox |
| CoordinateFrame | _frame |