ScummVM API documentation
Toltecs::MenuSystem Class Reference

Classes

struct  Item
 
struct  SavegameItem
 

Public Member Functions

 MenuSystem (ToltecsEngine *vm)
 
int run (MenuID menuId)
 
void update ()
 
void handleEvents ()
 

Protected Member Functions

void addClickTextItem (ItemID id, int x, int y, int w, uint fontNum, const char *caption, byte defaultColor, byte activeColor)
 
void drawItem (ItemID itemID, bool active)
 
void handleMouseMove (int x, int y)
 
void handleMouseClick (int x, int y)
 
void handleKeyDown (const Common::KeyState &kbd)
 
ItemID findItemAt (int x, int y)
 
ItemgetItem (ItemID id)
 
void setItemCaption (Item *item, const char *caption)
 
void initMenu (MenuID menuID)
 
void enableItem (ItemID id)
 
void disableItem (ItemID id)
 
void enterItem (ItemID id)
 
void leaveItem (ItemID id)
 
void clickItem (ItemID id)
 
void restoreRect (int x, int y, int w, int h)
 
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)
 
SavegameItemgetSavegameItemByID (ItemID id)
 
int loadSavegamesList ()
 
void setSavegameCaptions (bool scrollToBottom)
 
void scrollSavegames (int delta)
 
void clickSavegameItem (ItemID id)
 
void setCfgText (bool value, bool active)
 
void setCfgVoices (bool value, bool active)
 
void drawVolumeBar (ItemID itemID)
 
void changeVolumeBar (ItemID itemID, int delta)
 

Protected Attributes

ToltecsEngine_vm
 
Graphics::Surface_background
 
bool _running
 
MenuID _currMenuID
 
MenuID _newMenuID
 
ItemID _currItemID
 
int _top
 
int _savegameListTopIndex
 
bool _editingDescription
 
ItemID _editingDescriptionID
 
Item_editingDescriptionItem
 
bool _needRedraw
 
bool _returnToGame
 
Common::Array< Item_items
 
Common::Array< SavegameItem_savegames
 

The documentation for this class was generated from the following file: