22 #ifndef TOLTECS_MENU_H 23 #define TOLTECS_MENU_H 25 #include "common/array.h" 26 #include "common/str-array.h" 50 kItemIdBackgroundDown,
78 int run(MenuID menuId);
89 byte defaultColor, activeColor;
98 : _slotNum(-1), _description(
"") {}
100 : _slotNum(slotNum), _description(description) {}
107 MenuID _currMenuID, _newMenuID;
110 int _savegameListTopIndex;
111 bool _editingDescription;
112 ItemID _editingDescriptionID;
113 Item *_editingDescriptionItem;
120 void addClickTextItem(ItemID
id,
int x,
int y,
int w, uint fontNum,
const char *caption, byte defaultColor, byte activeColor);
122 void drawItem(ItemID itemID,
bool active);
123 void handleMouseMove(
int x,
int y);
124 void handleMouseClick(
int x,
int y);
127 ItemID findItemAt(
int x,
int y);
128 Item *getItem(ItemID
id);
129 void setItemCaption(
Item *item,
const char *caption);
131 void initMenu(MenuID menuID);
133 void enableItem(ItemID
id);
134 void disableItem(ItemID
id);
136 void enterItem(ItemID
id);
137 void leaveItem(ItemID
id);
138 void clickItem(ItemID
id);
140 void restoreRect(
int x,
int y,
int w,
int h);
141 void shadeRect(
int x,
int y,
int w,
int h, byte color1, byte color2);
142 void drawString(int16 x, int16 y,
int w, uint fontNum, byte color,
const char *text);
146 int loadSavegamesList();
147 void setSavegameCaptions(
bool scrollToBottom);
148 void scrollSavegames(
int delta);
149 void clickSavegameItem(ItemID
id);
150 void setCfgText(
bool value,
bool active);
151 void setCfgVoices(
bool value,
bool active);
152 void drawVolumeBar(ItemID itemID);
153 void changeVolumeBar(ItemID itemID,
int delta);
Definition: animation.h:28
Definition: keyboard.h:294