Esempio n. 1
0
GLvoid LevelEditor::quitEditor()
{
    isMoving = true;
    emit stopAmbientMusic();
    emit playEffect(EFFECT_STOMP);
    currentActions->setPrimaryAction(EXIT_TO_MENU);
}
Esempio n. 2
0
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);
}
Esempio n. 3
0
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;
}
Esempio n. 4
0
void Area::stopSound() {
	stopAmbientMusic();
	stopAmbientSound();
}