| 78 | } |
| 79 | |
| 80 | void UIMenuBar::showPrevMenu() { |
| 81 | if ( mCurrentMenu ) { |
| 82 | auto index = getMenuIndex( mCurrentMenu ); |
| 83 | if ( index != eeINDEX_NOT_FOUND ) |
| 84 | showMenu( static_cast<int>( index ) - 1 >= 0 ? index - 1 : mButtons.size() - 1 ); |
| 85 | } else if ( !mButtons.empty() ) { |
| 86 | showMenu( 0 ); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | UIMenuBar::~UIMenuBar() { |
| 91 | destroyMenus(); |