aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/events.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2011-10-31 15:11:27 +1100
committerPaul Gilbert2011-10-31 15:12:27 +1100
commitc15a67879ca65daa21c58c794c2f66e12edad0c8 (patch)
tree86a0255f99417d21c0e97fbc67082455abb6fa50 /engines/tsage/events.cpp
parentf56dc4151dfd2f82df3c1459cf218cc4b3a30ec0 (diff)
downloadscummvm-rg350-c15a67879ca65daa21c58c794c2f66e12edad0c8.tar.gz
scummvm-rg350-c15a67879ca65daa21c58c794c2f66e12edad0c8.tar.bz2
scummvm-rg350-c15a67879ca65daa21c58c794c2f66e12edad0c8.zip
TSAGE: Added inventory item cursor support for R2RW
Diffstat (limited to 'engines/tsage/events.cpp')
-rw-r--r--engines/tsage/events.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/engines/tsage/events.cpp b/engines/tsage/events.cpp
index 8958482404..2c4efe5640 100644
--- a/engines/tsage/events.cpp
+++ b/engines/tsage/events.cpp
@@ -221,7 +221,8 @@ void EventsClass::setCursor(CursorType cursorType) {
case CURSOR_WALK:
default:
- if (g_vm->getGameID() == GType_BlueForce) {
+ switch (g_vm->getGameID()) {
+ case GType_BlueForce:
if (cursorType == CURSOR_WALK) {
cursor = g_resourceManager->getSubResource(1, 5, 1, &size);
} else {
@@ -231,11 +232,25 @@ void EventsClass::setCursor(CursorType cursorType) {
questionEnabled = true;
}
_currentCursor = cursorType;
- } else {
+ break;
+ case GType_Ringworld2:
+ if (cursorType == CURSOR_WALK) {
+ cursor = CURSOR_WALK_DATA;
+ delFlag = false;
+ } else {
+ // Inventory icon
+ InvObject *invObject = g_globals->_inventory->getItem((int)cursorType);
+ cursor = g_resourceManager->getSubResource(6, invObject->_strip, invObject->_frame, &size);
+ questionEnabled = true;
+ }
+ _currentCursor = cursorType;
+ break;
+ default:
// For Ringworld, always treat as the walk cursor
cursor = CURSOR_WALK_DATA;
_currentCursor = CURSOR_WALK;
delFlag = false;
+ break;
}
break;
}