SHERLOCK: RT: Don't allow skipping intro until title is shown

This commit is contained in:
Paul Gilbert 2015-08-16 15:01:57 -04:00
parent 1a9b30a9d3
commit 169404b5f0
2 changed files with 10 additions and 2 deletions

View File

@ -98,6 +98,11 @@ void TattooEngine::startScene() {
ui._mask1 = _res->load("res08a.msk");
break;
case STARTING_INTRO_SCENE:
// Disable input so that the intro can't be skipped until the game's logo has been shown
ui._lockoutTimer = STARTUP_KEYS_DISABLED_DELAY;
break;
case OVERHEAD_MAP:
case OVERHEAD_MAP2:
// Show the map

View File

@ -41,7 +41,10 @@ namespace Sherlock {
namespace Tattoo {
#define BUTTON_SIZE 15 // Button width/height
// Button width/height
#define BUTTON_SIZE 15
// How long to play the intro before it can be skipped
#define STARTUP_KEYS_DISABLED_DELAY 200
class WidgetBase;
@ -55,7 +58,6 @@ public:
class TattooUserInterface : public UserInterface {
friend class WidgetBase;
private:
int _lockoutTimer;
int _scriptZone;
int _cAnimFramePause;
WidgetInventory _inventoryWidget;
@ -104,6 +106,7 @@ public:
Common::SeekableReadStream *_mask, *_mask1;
Common::Point _maskOffset;
int _maskCounter;
int _lockoutTimer;
ImageFile *_interfaceImages;
WidgetCredits _creditsWidget;
WidgetOptions _optionsWidget;