aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/gui.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2010-02-01 09:53:42 +0000
committerMartin Kiewitz2010-02-01 09:53:42 +0000
commit845c245ff37fc5f269a26a6f57eb55e66b6f1530 (patch)
tree9dfd49dd69e8086aefc230d6a1e1c4135f13fee5 /engines/sci/graphics/gui.cpp
parentc72c2ff71109544ca48d2cfabf1ff735363795c3 (diff)
downloadscummvm-rg350-845c245ff37fc5f269a26a6f57eb55e66b6f1530.tar.gz
scummvm-rg350-845c245ff37fc5f269a26a6f57eb55e66b6f1530.tar.bz2
scummvm-rg350-845c245ff37fc5f269a26a6f57eb55e66b6f1530.zip
SCI: class menu renamed to GfxMenu - now getting called directly, also fix for loading savedgames
svn-id: r47792
Diffstat (limited to 'engines/sci/graphics/gui.cpp')
-rw-r--r--engines/sci/graphics/gui.cpp22
1 files changed, 4 insertions, 18 deletions
diff --git a/engines/sci/graphics/gui.cpp b/engines/sci/graphics/gui.cpp
index a1aeee2033..c1ccd48264 100644
--- a/engines/sci/graphics/gui.cpp
+++ b/engines/sci/graphics/gui.cpp
@@ -61,7 +61,8 @@ SciGui::SciGui(EngineState *state, GfxScreen *screen, GfxPalette *palette, GfxCa
_text16 = new GfxText16(_s->resMan, _cache, _ports, _paint16, _screen);
_controls = new GfxControls(_s->_segMan, _ports, _paint16, _text16, _screen);
_s->_gfxControls = _controls;
- _menu = new Menu(_s->_event, _s->_segMan, this, _ports, _paint16, _text16, _screen, _cursor);
+ _menu = new GfxMenu(_s->_event, _s->_segMan, this, _ports, _paint16, _text16, _screen, _cursor);
+ _s->_gfxMenu = _menu;
}
SciGui::~SciGui() {
@@ -277,23 +278,8 @@ void SciGui::drawMenuBar(bool clear) {
void SciGui::menuReset() {
delete _menu;
- _menu = new Menu(_s->_event, _s->_segMan, this, _ports, _paint16, _text16, _screen, _cursor);
-}
-
-void SciGui::menuAdd(Common::String title, Common::String content, reg_t contentVmPtr) {
- _menu->add(title, content, contentVmPtr);
-}
-
-void SciGui::menuSet(uint16 menuId, uint16 itemId, uint16 attributeId, reg_t value) {
- _menu->setAttribute(menuId, itemId, attributeId, value);
-}
-
-reg_t SciGui::menuGet(uint16 menuId, uint16 itemId, uint16 attributeId) {
- return _menu->getAttribute(menuId, itemId, attributeId);
-}
-
-reg_t SciGui::menuSelect(reg_t eventObject) {
- return _menu->select(eventObject);
+ _menu = new GfxMenu(_s->_event, _s->_segMan, this, _ports, _paint16, _text16, _screen, _cursor);
+ _s->_gfxMenu = _menu;
}
void SciGui::drawPicture(GuiResourceId pictureId, int16 animationNr, bool animationBlackoutFlag, bool mirroredFlag, bool addToFlag, int16 EGApaletteNo) {