mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
FULLPIPE: Implement ModalMainMenu::setSliderPos()
This commit is contained in:
parent
e6c6eac9af
commit
23f15c754f
@ -71,6 +71,7 @@ FullpipeEngine::FullpipeEngine(OSystem *syst, const ADGameDescription *gameDesc)
|
||||
_flgSoundList = true;
|
||||
|
||||
_sfxVolume = 0;
|
||||
_musicVolume = 0;
|
||||
|
||||
_inputController = 0;
|
||||
_inputDisabled = false;
|
||||
|
@ -164,6 +164,7 @@ public:
|
||||
void setMusicVolume(int vol);
|
||||
|
||||
int _sfxVolume;
|
||||
int _musicVolume;
|
||||
|
||||
GlobalMessageQueueList *_globalMessageQueueList;
|
||||
MessageHandler *_messageHandlers;
|
||||
|
@ -1144,7 +1144,31 @@ void ModalMainMenu::enableDebugMenuButton() {
|
||||
}
|
||||
|
||||
void ModalMainMenu::setSliderPos() {
|
||||
warning("STUB: ModalMainMenu::setSliderPos()");
|
||||
int x = 173 * (g_fp->_sfxVolume + 3000) / 3000 + 65;
|
||||
PictureObject *obj = _areas[_menuSliderIdx]->picObjD;
|
||||
|
||||
if (x >= 65) {
|
||||
if (x > 238)
|
||||
x = 238;
|
||||
} else {
|
||||
x = 65;
|
||||
}
|
||||
|
||||
obj->setOXY(x, obj->_oy);
|
||||
_areas[_menuSliderIdx]->picObjL->setOXY(x, obj->_oy);
|
||||
|
||||
x = 173 * g_fp->_musicVolume / 255 + 65;
|
||||
obj = _areas[_musicSliderIdx]->picObjD;
|
||||
|
||||
if (x >= 65) {
|
||||
if (x > 238)
|
||||
x = 238;
|
||||
} else {
|
||||
x = 65;
|
||||
}
|
||||
|
||||
obj->setOXY(x, obj->_oy);
|
||||
_areas[_musicSliderIdx]->picObjL->setOXY(x, obj->_oy);
|
||||
}
|
||||
|
||||
ModalHelp::ModalHelp() {
|
||||
|
@ -204,6 +204,8 @@ void FullpipeEngine::updateSoundVolume() {
|
||||
}
|
||||
|
||||
void FullpipeEngine::setMusicVolume(int vol) {
|
||||
_musicVolume = vol;
|
||||
|
||||
debug(3, "STUB FullpipeEngine::setMusicVolume()");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user