diff options
author | Eugene Sandulenko | 2014-01-05 00:08:26 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2014-01-05 00:53:31 +0200 |
commit | 7cb50d7066ebebde5f9682f384cedd87462f6ccf (patch) | |
tree | 2572d16a72739658d63e15a7ab29dcf5b1fe0bda | |
parent | 2f82ff1eee40561c134f2035daf941fd78fcdb16 (diff) | |
download | scummvm-rg350-7cb50d7066ebebde5f9682f384cedd87462f6ccf.tar.gz scummvm-rg350-7cb50d7066ebebde5f9682f384cedd87462f6ccf.tar.bz2 scummvm-rg350-7cb50d7066ebebde5f9682f384cedd87462f6ccf.zip |
FULLPIPE: Implement scene23_updateCursor()
-rw-r--r-- | engines/fullpipe/constants.h | 1 | ||||
-rw-r--r-- | engines/fullpipe/scenes/scene23.cpp | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/engines/fullpipe/constants.h b/engines/fullpipe/constants.h index b7ffcb8d20..7d74a1a61e 100644 --- a/engines/fullpipe/constants.h +++ b/engines/fullpipe/constants.h @@ -790,6 +790,7 @@ namespace Fullpipe { #define PIC_SC23_BTN2 1730 #define PIC_SC23_BTN3 1731 #define PIC_SC23_BTN4 1732 +#define PIC_SC23_LADDERU 3411 #define ST_CND_5 1713 #define ST_GRFG_BALD 1675 #define ST_GRFG_EMPTY 1674 diff --git a/engines/fullpipe/scenes/scene23.cpp b/engines/fullpipe/scenes/scene23.cpp index 5facd760bb..6d7d074f72 100644 --- a/engines/fullpipe/scenes/scene23.cpp +++ b/engines/fullpipe/scenes/scene23.cpp @@ -134,4 +134,22 @@ void scene23_initScene(Scene *sc) { g_fp->_currentScene = oldsc; } +int scene23_updateCursor() { + g_fp->updateCursorCommon(); + + if (g_fp->_objectIdAtCursor == PIC_SC23_LADDERU) { + if (g_vars->scene23_var05) + return g_fp->_cursorId; + + g_fp->_cursorId = getGameLoaderInventory()->getSelectedItemId() ? PIC_CSR_GOU : PIC_CSR_ITN; // FIXME check + } + + if (g_fp->_objectIdAtCursor == PIC_SC23_BTN1 || g_fp->_objectIdAtCursor == PIC_SC23_BTN2 + || g_fp->_objectIdAtCursor == PIC_SC23_BTN3 || g_fp->_objectIdAtCursor == PIC_SC23_BTN4 + || g_fp->_objectIdAtCursor == ANI_CALENDWHEEL) + g_fp->_cursorId = PIC_CSR_LIFT; + + return g_fp->_cursorId; +} + } // End of namespace Fullpipe |