From fe5658ca175810f7ea6cbcaa078e6fc86faf36f1 Mon Sep 17 00:00:00 2001 From: Matthew Stewart Date: Wed, 30 May 2018 21:06:31 -0400 Subject: STARTREK: Mission 1 finished --- engines/startrek/menu.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'engines/startrek/menu.cpp') diff --git a/engines/startrek/menu.cpp b/engines/startrek/menu.cpp index d6929d0d5c..1f67fb288c 100644 --- a/engines/startrek/menu.cpp +++ b/engines/startrek/menu.cpp @@ -653,7 +653,6 @@ int StarTrekEngine::handleMenuEvents(uint32 ticksUntilClickingEnabled, bool arg4 switch(event.type) { case TREKEVENT_TICK: { - case TREKEVENT_MOUSEMOVE: // FIXME: actual game only uses TICK event here Common::Point mousePos = _gfx->getMousePos(); int buttonIndex = getMenuButtonAt(_activeMenu->sprites, _activeMenu->numButtons, mousePos.x, mousePos.y); if (buttonIndex != -1) { @@ -676,11 +675,11 @@ int StarTrekEngine::handleMenuEvents(uint32 ticksUntilClickingEnabled, bool arg4 } // Not added: updating mouse position (scummvm handles that) - // sub_10492(); - // sub_10A91(); + // sub_10492(); // TODO + // updateActorAnimations(); // TODO: uncomment and fix animations under textboxes _gfx->drawAllSprites(); - // sub_10BE7(); - // sub_2A4B1(); + // sub_10BE7(); // TODO + _sound->checkLoopMusic(); if (_finishedPlayingSpeech != 0) { _finishedPlayingSpeech = 0; @@ -688,7 +687,7 @@ int StarTrekEngine::handleMenuEvents(uint32 ticksUntilClickingEnabled, bool arg4 return TEXTBUTTON_SPEECH_DONE; } } - // sub_1E88C(); + _gfx->incPaletteFadeLevel(); _frameIndex++; if (ticksUntilClickingEnabled != 0 && _clockTicks >= tickWhenClickingEnabled) -- cgit v1.2.3