GLvoid LevelEditor::quitEditor() { isMoving = true; emit stopAmbientMusic(); emit playEffect(EFFECT_STOMP); currentActions->setPrimaryAction(EXIT_TO_MENU); }
void Area::playAmbientMusic(Common::UString music) { stopAmbientMusic(); // TODO Day/Night if (music.empty()) music = _musicDay; if (music.empty()) return; _ambientMusic = playSound(music, Sound::kSoundTypeMusic, true); }
void Area::hide() { if (!_visible) return; removeFocus(); stopAmbientMusic(); GfxMan.lockFrame(); // Hide objects for (ObjectList::iterator o = _objects.begin(); o != _objects.end(); ++o) (*o)->hide(); // Hide area geometry model if (_model) _model->show(); GfxMan.unlockFrame(); unloadModels(); _visible = false; }
void Area::stopSound() { stopAmbientMusic(); stopAmbientSound(); }