| 182 | } |
| 183 | |
| 184 | UISelectButton* UIMenuBar::getButton( const String& buttonText ) const { |
| 185 | for ( const auto& it : mButtons ) |
| 186 | if ( it.first->getText() == buttonText ) |
| 187 | return it.first; |
| 188 | return nullptr; |
| 189 | } |
| 190 | |
| 191 | UISelectButton* UIMenuBar::getButton( const Uint32& index ) const { |
| 192 | eeASSERT( index < mButtons.size() ); |
no test coverage detected