diff options
author | Strangerke | 2015-12-13 14:04:00 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:34:02 +0100 |
commit | c837e67070913166177a19b2d0d6d925d4569c83 (patch) | |
tree | 9c6b22c7f59ce00a4473520519da8e93a281e569 /engines/lab/special.cpp | |
parent | 7efd471a92ca6a8d9f7e2c9acdd17be847b7ef73 (diff) | |
download | scummvm-rg350-c837e67070913166177a19b2d0d6d925d4569c83.tar.gz scummvm-rg350-c837e67070913166177a19b2d0d6d925d4569c83.tar.bz2 scummvm-rg350-c837e67070913166177a19b2d0d6d925d4569c83.zip |
LAB: Move interface functions to EventMan
Diffstat (limited to 'engines/lab/special.cpp')
-rw-r--r-- | engines/lab/special.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/lab/special.cpp b/engines/lab/special.cpp index 5b2da2a3be..0024adbc80 100644 --- a/engines/lab/special.cpp +++ b/engines/lab/special.cpp @@ -142,9 +142,9 @@ void LabEngine::loadJournalData() { Common::File *journalFile = _resource->openDataFile("P:JImage"); Utils *utils = _utils; - _journalGadgetList.push_back(createButton( 80, utils->vgaScaleY(162) + utils->svgaCord(1), 0, VKEY_LTARROW, new Image(journalFile), new Image(journalFile))); // back - _journalGadgetList.push_back(createButton(194, utils->vgaScaleY(162) + utils->svgaCord(1), 2, 0, new Image(journalFile), new Image(journalFile))); // cancel - _journalGadgetList.push_back(createButton(144, utils->vgaScaleY(164) - utils->svgaCord(1), 1, VKEY_RTARROW, new Image(journalFile), new Image(journalFile))); // forward + _journalGadgetList.push_back(_event->createButton( 80, utils->vgaScaleY(162) + utils->svgaCord(1), 0, VKEY_LTARROW, new Image(journalFile), new Image(journalFile))); // back + _journalGadgetList.push_back(_event->createButton(194, utils->vgaScaleY(162) + utils->svgaCord(1), 2, 0, new Image(journalFile), new Image(journalFile))); // cancel + _journalGadgetList.push_back(_event->createButton(144, utils->vgaScaleY(164) - utils->svgaCord(1), 1, VKEY_RTARROW, new Image(journalFile), new Image(journalFile))); // forward delete journalFile; _anim->_noPalChange = true; @@ -236,14 +236,14 @@ void LabEngine::drawJournal(uint16 wipenum, bool needFade) { Gadget *forwardGadget = _event->getGadget(2); if (_journalPage == 0) - disableGadget(backGadget, 15); + _event->disableGadget(backGadget, 15); else - enableGadget(backGadget); + _event->enableGadget(backGadget); if (_lastPage) - disableGadget(forwardGadget, 15); + _event->disableGadget(forwardGadget, 15); else - enableGadget(forwardGadget); + _event->enableGadget(forwardGadget); if (needFade) _graphics->fade(true, 0); @@ -321,7 +321,7 @@ void LabEngine::doJournal() { delete[] _blankJournal; delete[] journalBackImage._imageData; - freeButtonList(&_journalGadgetList); + _event->freeButtonList(&_journalGadgetList); _graphics->closeFont(_journalFont); ScreenImage._imageData = _graphics->getCurrentDrawingBuffer(); |