diff options
author | Benjamin Haisch | 2010-11-03 11:58:17 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-20 22:43:10 +0100 |
commit | 1cb95f36e72dd4b4e86a0a1bf49e1b797c5781c2 (patch) | |
tree | 6c09c5f5adb105b44db5813e9491e02911a3711a /engines/toltecs/menu.h | |
parent | 9698127c5d78c92f99032d55dec5fe1feb773ae4 (diff) | |
download | scummvm-rg350-1cb95f36e72dd4b4e86a0a1bf49e1b797c5781c2.tar.gz scummvm-rg350-1cb95f36e72dd4b4e86a0a1bf49e1b797c5781c2.tar.bz2 scummvm-rg350-1cb95f36e72dd4b4e86a0a1bf49e1b797c5781c2.zip |
TOLTECS: - More work on the menu system, saving and loading from there is now possible
- Add blastSprite method which draws a sprite directly to the frontScreen without the renderQueue
- Add F10 scancode in sfHandleInput to open the menu
Diffstat (limited to 'engines/toltecs/menu.h')
-rw-r--r-- | engines/toltecs/menu.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/engines/toltecs/menu.h b/engines/toltecs/menu.h index e71557e751..12f48ca875 100644 --- a/engines/toltecs/menu.h +++ b/engines/toltecs/menu.h @@ -114,17 +114,18 @@ protected: }; struct SavegameItem { - Common::String _filename; + int _slotNum; Common::String _description; SavegameItem() - : _filename(""), _description("") {} - SavegameItem(Common::String filename, Common::String description) - : _filename(filename), _description(description) {} + : _slotNum(-1), _description("") {} + SavegameItem(int slotNum, Common::String description) + : _slotNum(slotNum), _description(description) {} }; ToltecsEngine *_vm; Graphics::Surface *_background; + bool _running; MenuID _currMenuID, _newMenuID; ItemID _currItemID; int _top; @@ -161,7 +162,9 @@ protected: void shadeRect(int x, int y, int w, int h, byte color1, byte color2); void drawString(int16 x, int16 y, int w, uint fontNum, byte color, const char *text); - void initSavegames(); + SavegameItem *getSavegameItemByID(ItemID id); + + int loadSavegamesList(); void setSavegameCaptions(); void scrollSavegames(int delta); void clickSavegameItem(ItemID id); |