MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / Prev

Method Prev

src/music_gui.cpp:276–282  ·  view source on GitHub ↗

Skip to previous track */

Source from the content-addressed store, hash-verified

274
275/** Skip to previous track */
276void MusicSystem::Prev()
277{
278 this->ChangePlaylistPosition(-1);
279 if (_settings_client.music.playing) this->Play();
280
281 InvalidateWindowData(WC_MUSIC_WINDOW, 0);
282}
283
284/** Check that music is playing if it should, and that appropriate playlist is active for game/main menu */
285void MusicSystem::CheckStatus()

Callers 3

DeleteCharMethod · 0.45
MovePrevMethod · 0.45
OnClickMethod · 0.45

Calls 3

PlayMethod · 0.95
InvalidateWindowDataFunction · 0.70

Tested by

no test coverage detected