29 #ifndef AVALANCHE_DROPDOWN_H 30 #define AVALANCHE_DROPDOWN_H 32 #include "common/str.h" 35 class AvalancheEngine;
39 typedef void (DropDownMenu::*MenuFunc)();
40 static const Color kMenuBackgroundColor = kColorLightgray;
41 static const Color kMenuBorderColor = kColorBlack;
46 char _trigger, _altTrigger;
49 MenuFunc _setupFunc, _chooseFunc;
51 void init(
char trig,
char alTtrig,
Common::String title, byte pos, MenuFunc setupFunc, MenuFunc chooseFunc,
DropDownMenu *menu);
54 bool parseAltTrigger(
char key);
72 int16 _flx1, _flx2, _fly;
83 void select(byte which);
92 void displayOption(byte y,
bool highlit);
93 void moveHighlight(int8 inc);
96 void parseKey(
char c);
106 void createMenuItem(
char trig,
Common::String title,
char altTrig, MenuFunc setupFunc, MenuFunc chooseFunc);
108 void chooseMenuItem(int16 x);
113 void setupMenuItem(byte which);
115 void parseAltTrigger(
char c);
133 void resetVariables();
136 static const byte kIndent = 5;
137 static const byte kSpacing = 10;
153 void findWhatYouCanDoWithIt();
154 void drawMenuText(int16 x, int16 y,
char trigger,
Common::String text,
bool valid,
bool highlighted);
157 char getThingChar(byte which);
158 byte getNameChar(People whose);
161 void setupMenuGame();
162 void setupMenuFile();
163 void setupMenuAction();
164 void setupMenuPeople();
165 void setupMenuObjects();
166 void setupMenuWith();
170 void runMenuAction();
171 void runMenuObjects();
172 void runMenuPeople();
176 void parseKey(
char r,
char re);
181 #endif // AVALANCHE_DROPDOWN_H Definition: dropdown.h:60
Definition: animation.h:32
Definition: dropdown.h:43
Definition: avalanche.h:74