diff options
author | Paul Gilbert | 2011-12-27 20:39:04 +1100 |
---|---|---|
committer | Paul Gilbert | 2011-12-27 20:39:04 +1100 |
commit | 9fdba870c92c50ba828b9a70ade377c683549d9f (patch) | |
tree | e9e66076010ee434be7afe2dd30bbc15d0234c9a /engines/tsage/ringworld2 | |
parent | 364bc93918c2e21c9b45c6229e2dbae1487f4a18 (diff) | |
download | scummvm-rg350-9fdba870c92c50ba828b9a70ade377c683549d9f.tar.gz scummvm-rg350-9fdba870c92c50ba828b9a70ade377c683549d9f.tar.bz2 scummvm-rg350-9fdba870c92c50ba828b9a70ade377c683549d9f.zip |
TSAGE: Moved the R2R AUTODOC_ITEMS array to be part of the scene 825.
Since this is the only scene that uses it, it makes as much sense to have it as part of the scene than part of the staticres file.
Diffstat (limited to 'engines/tsage/ringworld2')
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_scenes0.cpp | 17 | ||||
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_scenes0.h | 1 |
2 files changed, 17 insertions, 1 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_scenes0.cpp b/engines/tsage/ringworld2/ringworld2_scenes0.cpp index 225e4f3e0b..9eb3e2b713 100644 --- a/engines/tsage/ringworld2/ringworld2_scenes0.cpp +++ b/engines/tsage/ringworld2/ringworld2_scenes0.cpp @@ -3269,18 +3269,33 @@ void Scene825::Button::setButton(int buttonId) { } void Scene825::Button::setText(int textId) { + Scene825 *scene = (Scene825 *)R2_GLOBALS._sceneManager._scene; + _buttonId = textId; _lookLineNum = textId; _sceneText.remove(); if (_buttonId != 0) - _sceneText.setup(AUTODOC_ITEMS[textId - 1]); + _sceneText.setup(scene->_autodocItems[textId - 1]); } /*--------------------------------------------------------------------------*/ Scene825::Scene825(): SceneExt() { _menuId = _frame1 = _frame2 = 0; + + // Setup Autodoc items list + _autodocItems[0] = MAIN_MENU; + _autodocItems[1] = DIAGNOSIS; + _autodocItems[2] = ADVANCED_PROCEDURES; + _autodocItems[3] = VITAL_SIGNS; + _autodocItems[4] = OPEN_DOOR; + _autodocItems[5] = TREATMENTS; + _autodocItems[6] = NO_MALADY_DETECTED; + _autodocItems[7] = NO_TREATMENT_REQUIRED; + _autodocItems[8] = ACCESS_CODE_REQUIRED; + _autodocItems[9] = INVALID_ACCESS_CODE; + _autodocItems[10] = FOREIGN_OBJECT_EXTRACTED; } void Scene825::postInit(SceneObjectList *OwnerList) { diff --git a/engines/tsage/ringworld2/ringworld2_scenes0.h b/engines/tsage/ringworld2/ringworld2_scenes0.h index 7a36b8f15f..8ee8c09873 100644 --- a/engines/tsage/ringworld2/ringworld2_scenes0.h +++ b/engines/tsage/ringworld2/ringworld2_scenes0.h @@ -443,6 +443,7 @@ public: SequenceManager _sequenceManager1; SceneText _sceneText; int _menuId, _frame1, _frame2; + const char *_autodocItems[11]; public: Scene825(); virtual void synchronize(Serializer &s); |