* Initializes all the elements in the Audio Options screen. * @param game Pointer to the core game. * @param origin Game section that originated this state. */
| 32 | * @param origin Game section that originated this state. |
| 33 | */ |
| 34 | OptionsNoAudioState::OptionsNoAudioState(Game *game, OptionsOrigin origin) : OptionsBaseState(game, origin) |
| 35 | { |
| 36 | setCategory(_btnAudio); |
| 37 | |
| 38 | // Create objects |
| 39 | _txtError = new Text(218, 136, 94, 8); |
| 40 | |
| 41 | add(_txtError); |
| 42 | |
| 43 | centerAllSurfaces(); |
| 44 | |
| 45 | // Set up objects |
| 46 | _txtError->setColor(Palette::blockOffset(8)+10); |
| 47 | _txtError->setAlign(ALIGN_CENTER); |
| 48 | _txtError->setVerticalAlign(ALIGN_MIDDLE); |
| 49 | _txtError->setBig(); |
| 50 | _txtError->setWordWrap(true); |
| 51 | _txtError->setText(tr("STR_NO_AUDIO_HARDWARE_DETECTED")); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * |
nothing calls this directly
no test coverage detected