MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / OptionsNoAudioState

Method OptionsNoAudioState

src/Menu/OptionsNoAudioState.cpp:34–52  ·  view source on GitHub ↗

* Initializes all the elements in the Audio Options screen. * @param game Pointer to the core game. * @param origin Game section that originated this state. */

Source from the content-addressed store, hash-verified

32 * @param origin Game section that originated this state.
33 */
34OptionsNoAudioState::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 *

Callers

nothing calls this directly

Calls 6

setColorMethod · 0.45
setAlignMethod · 0.45
setVerticalAlignMethod · 0.45
setBigMethod · 0.45
setWordWrapMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected