Implemented the last menu (the settings screen). Walking speed, text speed,

and speech modes (text only, speech only, speech & text) can now be
configured. Toggling music and sound in general is not enabled yet.
Also formatted the static menu resources a bit differently, made
sure some vars in the menu code always got initalized, and
fixed a slight formatting error :).

svn-id: r21145
This commit is contained in:
Oystein Eftevaag 2006-03-08 13:15:13 +00:00
parent 4c1e4c6987
commit 39c9af43ae
8 changed files with 305 additions and 49 deletions

View file

@ -28,7 +28,7 @@
#include "common/savefile.h"
#include "common/system.h"
#define CURRENT_VERSION 3
#define CURRENT_VERSION 4
namespace Kyra {
void KyraEngine::loadGame(const char *fileName) {
@ -178,6 +178,14 @@ void KyraEngine::loadGame(const char *fileName) {
snd_playWanderScoreViaMap(_lastMusicCommand, 1);
}
if (version >= 4) {
_configTextspeed = in->readByte();
_configWalkspeed = in->readByte();
_configMusic = in->readByte();
_configSounds = in->readByte();
_configVoice = in->readByte();
}
if (queryGameFlag(0x2D)) {
loadMainScreen(8);
loadBitmap("AMULET3.CPS", 10, 10, 0);
@ -310,6 +318,12 @@ void KyraEngine::saveGame(const char *fileName, const char *saveName) {
out->writeSint16BE(_lastMusicCommand);
out->writeByte(_configTextspeed);
out->writeByte(_configWalkspeed);
out->writeByte(_configMusic);
out->writeByte(_configSounds);
out->writeByte(_configVoice);
out->flush();
// check for errors