diff options
author | Filippos Karapetis | 2007-05-06 17:18:11 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-05-06 17:18:11 +0000 |
commit | b9cdca27eeefd445be97938577290967ffe0bf32 (patch) | |
tree | 02ce72792ba83a3fd306e6e30abcc70e3eff9c50 /engines | |
parent | ae3e16c970c04cec5b60b691d5008166a8835f46 (diff) | |
download | scummvm-rg350-b9cdca27eeefd445be97938577290967ffe0bf32.tar.gz scummvm-rg350-b9cdca27eeefd445be97938577290967ffe0bf32.tar.bz2 scummvm-rg350-b9cdca27eeefd445be97938577290967ffe0bf32.zip |
Added (non-functional) save and load buttons in the options panel of IHNM
svn-id: r26767
Diffstat (limited to 'engines')
-rw-r--r-- | engines/saga/displayinfo.h | 4 | ||||
-rw-r--r-- | engines/saga/interface.cpp | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/engines/saga/displayinfo.h b/engines/saga/displayinfo.h index 8fad29305b..6bf58eca9b 100644 --- a/engines/saga/displayinfo.h +++ b/engines/saga/displayinfo.h @@ -329,7 +329,9 @@ static PanelButton IHNM_OptionPanelButtons[] = { // TODO: Add Voices widget here {kPanelButtonOption, 19,149, 200,25, kTextQuitGame,'q',0, 0,0,0}, //quit {kPanelButtonOption, 19,177, 200,25, kTextContinuePlaying,'c',0, 0,0,0}, //continue - //..... + // TODO: Implement load/save + {kPanelButtonOption, 244,164, 79,23, kTextLoad,'l',0, 0,0,0}, //load + {kPanelButtonOption, 335,164, 79,23, kTextSave,'s',0, 0,0,0}, //save }; static PanelButton IHNM_QuitPanelButtons[] = { diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index fafc36f724..60974f4425 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -725,6 +725,7 @@ void Interface::drawOption() { Rect rect2; PanelButton *panelButton; Point textPoint; + Point point; backBuffer = _vm->_gfx->getBackBuffer(); @@ -733,6 +734,15 @@ void Interface::drawOption() { for (i = 0; i < _optionPanel.buttonsCount; i++) { panelButton = &_optionPanel.buttons[i]; + + // TODO: This probably works for the button background, but the resources are still not loeaded + // (_optionPanel.sprites) + /* + point.x = _optionPanel.x + panelButton->xOffset; + point.y = _optionPanel.y + panelButton->yOffset; + _vm->_sprite->draw(backBuffer, _vm->getDisplayClip(), _optionPanel.sprites, i, point, 256); + */ + if (panelButton->type == kPanelButtonOption) { drawPanelButtonText(backBuffer, &_optionPanel, panelButton); } |