diff options
author | Paul Gilbert | 2011-10-31 11:35:04 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-10-31 11:35:04 +1100 |
commit | b6239f3b3da789fc996ff3f2310777be9de1e298 (patch) | |
tree | 783471845087a0f43681c17126be9d7a969911a7 /engines/tsage/user_interface.cpp | |
parent | ef1f96b674fe4840c553e915f02eae45666cdf3b (diff) | |
download | scummvm-rg350-b6239f3b3da789fc996ff3f2310777be9de1e298.tar.gz scummvm-rg350-b6239f3b3da789fc996ff3f2310777be9de1e298.tar.bz2 scummvm-rg350-b6239f3b3da789fc996ff3f2310777be9de1e298.zip |
TSAGE: Display UI cursor correctly in R2RW
Diffstat (limited to 'engines/tsage/user_interface.cpp')
-rw-r--r-- | engines/tsage/user_interface.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/tsage/user_interface.cpp b/engines/tsage/user_interface.cpp index f6eae80d9c..9657d25875 100644 --- a/engines/tsage/user_interface.cpp +++ b/engines/tsage/user_interface.cpp @@ -266,7 +266,10 @@ void UICollection::draw() { /*--------------------------------------------------------------------------*/ UIElements::UIElements(): UICollection() { - _cursorVisage.setVisage(1, 5); + if (g_vm->getGameID() == GType_Ringworld2) + _cursorVisage.setVisage(5, 1); + else + _cursorVisage.setVisage(1, 5); g_saver->addLoadNotifier(&UIElements::loadNotifierProc); _characterIndex = 0; } @@ -302,7 +305,8 @@ void UIElements::synchronize(Serializer &s) { } void UIElements::process(Event &event) { - if (_clearScreen && GLOBALS._player._enabled && (GLOBALS._sceneManager._sceneNumber != 50)) { + if (_clearScreen && GLOBALS._player._enabled && + ((g_vm->getGameID() != GType_BlueForce) || (GLOBALS._sceneManager._sceneNumber != 50))) { if (_bounds.contains(event.mousePos)) { // Cursor inside UI area if (!_cursorChanged) { @@ -310,7 +314,8 @@ void UIElements::process(Event &event) { // Inventory icon being displayed, so leave alone } else { // Change to the inventory use cursor - GfxSurface surface = _cursorVisage.getFrame(6); + int cursorId = (g_vm->getGameID() == GType_Ringworld2) ? 11 : 6; + GfxSurface surface = _cursorVisage.getFrame(cursorId); GLOBALS._events.setCursor(surface); } _cursorChanged = true; |