SCUMM: Change _defaultTalkDelay to _defaultTextSpeed
From now on we're reasoning in terms of text speed, just like the interpreter does, which means: delay == 9 - speed. This allows us to sync the internal GUI and the ScummVM GUI more easily, and allows for a better correspondence to the original interpreters.
This commit is contained in:
parent
457bcb67db
commit
2417448791
6 changed files with 31 additions and 32 deletions
|
@ -1156,9 +1156,9 @@ bool ScummEngine::executeMainMenuOperation(int op, int mouseX) {
|
|||
ScummEngine::drawDirtyScreenParts();
|
||||
break;
|
||||
case GUI_CTRL_TEXT_SPEED_SLIDER:
|
||||
_defaultTalkDelay = CLIP<int>(9 - (mouseX - 108) / 9, 0, 9);
|
||||
ConfMan.setInt("original_gui_text_speed", _defaultTalkDelay);
|
||||
setTalkSpeed(9 - _defaultTalkDelay);
|
||||
_defaultTextSpeed = CLIP<int>((mouseX - 108) / 9, 0, 9);
|
||||
ConfMan.setInt("original_gui_text_speed", _defaultTextSpeed);
|
||||
setTalkSpeed(_defaultTextSpeed);
|
||||
syncSoundSettings();
|
||||
ConfMan.flushToDisk();
|
||||
updateMainMenuControls();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue