aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/menu.h
diff options
context:
space:
mode:
authorBenjamin Haisch2010-10-31 19:38:22 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:10 +0100
commitce7f9a088c03e502eaf0709b18c6c02937673f9f (patch)
tree5f5aa4231001aee99e59672c5a4da615c16c2364 /engines/toltecs/menu.h
parent5e154f634a47524fe5d2d260c25812d40802fbc9 (diff)
downloadscummvm-rg350-ce7f9a088c03e502eaf0709b18c6c02937673f9f.tar.gz
scummvm-rg350-ce7f9a088c03e502eaf0709b18c6c02937673f9f.tar.bz2
scummvm-rg350-ce7f9a088c03e502eaf0709b18c6c02937673f9f.zip
TOLTECS: - Work on the menu system (use strings from resources instead of hardcoded ones)
- ...and load the system strings from the resource on startup - Only redraw menu screen when required - Change parameters for some text functions from byte* to const byte* - Rename some mouse vars
Diffstat (limited to 'engines/toltecs/menu.h')
-rw-r--r--engines/toltecs/menu.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/toltecs/menu.h b/engines/toltecs/menu.h
index 5860afd0b3..e71557e751 100644
--- a/engines/toltecs/menu.h
+++ b/engines/toltecs/menu.h
@@ -132,6 +132,7 @@ protected:
bool _editingDescription;
ItemID _editingDescriptionID;
Item *_editingDescriptionItem;
+ bool _needRedraw;
Common::Array<Item> _items;
Common::Array<SavegameItem> _savegames;
@@ -139,7 +140,7 @@ protected:
bool _cfgText, _cfgVoices;
int _cfgMasterVolume, _cfgVoicesVolume, _cfgMusicVolume, _cfgSoundFXVolume, _cfgBackgroundVolume;
- void addClickTextItem(ItemID id, int x, int y, int w, uint fontNum, const byte *caption, byte defaultColor, byte activeColor);
+ 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);
@@ -148,7 +149,7 @@ protected:
ItemID findItemAt(int x, int y);
Item *getItem(ItemID id);
- void setItemCaption(Item *item, const byte *caption);
+ void setItemCaption(Item *item, const char *caption);
void initMenu(MenuID menuID);
@@ -158,7 +159,7 @@ protected:
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, byte *text);
+ void drawString(int16 x, int16 y, int w, uint fontNum, byte color, const char *text);
void initSavegames();
void setSavegameCaptions();