diff options
author | Peter Kohaut | 2018-12-15 22:40:07 +0100 |
---|---|---|
committer | Peter Kohaut | 2018-12-15 23:02:58 +0100 |
commit | 2f242a10daee5d95510c43f686f83e3bfb9e3f50 (patch) | |
tree | f021bbe73487f258fe6002aa65662225937d9c67 /engines/bladerunner/ui/ui_scroll_box.cpp | |
parent | 1d12eb4c11d2ae89c4b06d86d6af98b5ef02f8fe (diff) | |
download | scummvm-rg350-2f242a10daee5d95510c43f686f83e3bfb9e3f50.tar.gz scummvm-rg350-2f242a10daee5d95510c43f686f83e3bfb9e3f50.tar.bz2 scummvm-rg350-2f242a10daee5d95510c43f686f83e3bfb9e3f50.zip |
BLADERUNNER: Added time control and game pausing
Diffstat (limited to 'engines/bladerunner/ui/ui_scroll_box.cpp')
-rw-r--r-- | engines/bladerunner/ui/ui_scroll_box.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/bladerunner/ui/ui_scroll_box.cpp b/engines/bladerunner/ui/ui_scroll_box.cpp index a030e534c5..d39e580cd3 100644 --- a/engines/bladerunner/ui/ui_scroll_box.cpp +++ b/engines/bladerunner/ui/ui_scroll_box.cpp @@ -62,7 +62,7 @@ UIScrollBox::UIScrollBox(BladeRunnerEngine *vm, UIScrollBoxCallback *lineSelecte _isVisible = false; _style = style; _center = center; - _timeLastScroll = _vm->getTotalPlayTime(); + _timeLastScroll = _vm->getTotalPlayTime(); // Original game is using system timer _timeLastCheckbox = _vm->getTotalPlayTime(); _timeLastHighlight = _vm->getTotalPlayTime(); @@ -113,7 +113,7 @@ void UIScrollBox::show() { _scrollAreaDownHover = false; _scrollBarHover = false; - _timeLastScroll = _vm->getTotalPlayTime(); + _timeLastScroll = _vm->getTotalPlayTime(); // Original game is using system timer _timeLastCheckbox = _vm->getTotalPlayTime(); _timeLastHighlight = _vm->getTotalPlayTime(); @@ -267,7 +267,7 @@ void UIScrollBox::handleMouseDown(bool alternateButton) { if (!alternateButton) { if (_scrollUpButtonHover) { _scrollUpButtonState = 2; - _timeLastScroll = _vm->getTotalPlayTime() - 160; + _timeLastScroll = _vm->getTotalPlayTime() - 160; // Original game is using system timer } else { _scrollUpButtonState = 1; } @@ -283,13 +283,13 @@ void UIScrollBox::handleMouseDown(bool alternateButton) { } if (_scrollAreaUpHover) { _scrollAreaUpState = 2; - _timeLastScroll = _vm->getTotalPlayTime() - 160; + _timeLastScroll = _vm->getTotalPlayTime() - 160; // Original game is using system timer } else { _scrollAreaUpState = 1; } if (_scrollAreaDownHover) { _scrollAreaDownState = 2; - _timeLastScroll = _vm->getTotalPlayTime() - 160; + _timeLastScroll = _vm->getTotalPlayTime() - 160; // Original game is using system timer } else { _scrollAreaDownState = 1; } @@ -321,7 +321,7 @@ int UIScrollBox::getSelectedLineData() { } void UIScrollBox::draw(Graphics::Surface &surface) { - int timeNow = _vm->getTotalPlayTime(); + int timeNow = _vm->getTotalPlayTime(); // Original game is using system timer // update scrolling if (_scrollUpButtonState == 2 && _scrollUpButtonHover) { |