aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/mads_menus.h
diff options
context:
space:
mode:
authorPaul Gilbert2010-03-27 07:14:52 +0000
committerPaul Gilbert2010-03-27 07:14:52 +0000
commit38f2c1b7a4eaa3dc136c6cd3c29d2b76f223d153 (patch)
tree3b2ca7201c4e9f7f4241444d0b148d65dcded66b /engines/m4/mads_menus.h
parentc73a50b4e31e5c5326bab3b3c6ca9f7a5354c2b0 (diff)
downloadscummvm-rg350-38f2c1b7a4eaa3dc136c6cd3c29d2b76f223d153.tar.gz
scummvm-rg350-38f2c1b7a4eaa3dc136c6cd3c29d2b76f223d153.tar.bz2
scummvm-rg350-38f2c1b7a4eaa3dc136c6cd3c29d2b76f223d153.zip
Completed dialog item selection code
svn-id: r48409
Diffstat (limited to 'engines/m4/mads_menus.h')
-rw-r--r--engines/m4/mads_menus.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/m4/mads_menus.h b/engines/m4/mads_menus.h
index 44e2c0d358..3ef49cd6ee 100644
--- a/engines/m4/mads_menus.h
+++ b/engines/m4/mads_menus.h
@@ -91,12 +91,12 @@ public:
void updateState();
};
-enum DialogTextState {STATE_DESELECTED = 0, STATE_HIGHLIGHTED = 1, STATE_SELECTED = 2};
+enum DialogTextState {STATE_DESELECTED = 0, STATE_SELECTED = 1, STATE_UNKNOWN = 2};
class DialogTextEntry {
public:
bool in_use;
- int state;
+ DialogTextState state;
Common::Point pos;
char text[80];
Font *font;
@@ -112,7 +112,7 @@ public:
enum MadsTextAlignment { ALIGN_CENTER = -1, ALIGN_CHAR_CENTER = -2, RIGHT_ALIGN = -3 };
-class RexDialogView: public MadsView {
+class RexDialogView : public MadsView {
private:
int _priorSceneId;
@@ -121,6 +121,7 @@ private:
void loadBackground();
void loadMenuSprites();
protected:
+ MadsDialogType _dialogType;
M4Surface *_backgroundSurface;
RGBList *_bgPalData;
SpriteAsset *_menuSprites;
@@ -148,9 +149,10 @@ public:
virtual void updateState();
virtual void onRefresh(RectList *rects, M4Surface *destSurface);
+ virtual bool onEvent(M4EventType eventType, int32 param1, int x, int y, bool &captureEvents);
};
-class RexGameMenuDialog: public RexDialogView {
+class RexGameMenuDialog : public RexDialogView {
private:
void addLines();
public: