diff options
author | Paul Gilbert | 2014-05-04 14:32:58 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-05-04 14:32:58 -0400 |
commit | ff5b97e75af06e07692eb9ddd9da73055997eefe (patch) | |
tree | 2606dcf73787a2d4b041bc41286396f1c03c43a9 /engines/mads/nebular/dialogs_nebular.h | |
parent | f894b3f1269203793214a750cbd5a9ae022d2d8c (diff) | |
download | scummvm-rg350-ff5b97e75af06e07692eb9ddd9da73055997eefe.tar.gz scummvm-rg350-ff5b97e75af06e07692eb9ddd9da73055997eefe.tar.bz2 scummvm-rg350-ff5b97e75af06e07692eb9ddd9da73055997eefe.zip |
MADS: In progress greyscale fading for picking up inventory items
Diffstat (limited to 'engines/mads/nebular/dialogs_nebular.h')
-rw-r--r-- | engines/mads/nebular/dialogs_nebular.h | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/engines/mads/nebular/dialogs_nebular.h b/engines/mads/nebular/dialogs_nebular.h index b5ee090efa..fd4d6e706e 100644 --- a/engines/mads/nebular/dialogs_nebular.h +++ b/engines/mads/nebular/dialogs_nebular.h @@ -49,9 +49,9 @@ private: public: virtual void showDialog(); - virtual void showItem(int objectId, int msgId, int arg); + virtual void showItem(int objectId, int messageId, int speech = -1); - virtual bool show(int id); + virtual bool show(int messageId, int objectId = -1); }; struct HOGANUS { @@ -79,7 +79,27 @@ public: /** * Show the dialog */ - bool show(); + virtual void show(); +}; + +class PictureDialog : public TextDialog { +private: + int _objectId; + bool _cyclingActive; + byte _palette[PALETTE_SIZE]; + uint32 _palFlags[PALETTE_COUNT]; + RGBList _rgbList; + + /** + * Sets up the palette and fades the screen to gray + */ + void setupPalette(); +public: + PictureDialog(MADSEngine *vm, const Common::Point &pos, int maxChars, int objectId); + + virtual ~PictureDialog(); + + virtual void show(); }; enum DialogTextAlign { ALIGN_CENTER = -1, ALIGN_AT_CENTER = -2, ALIGN_RIGHT = -3 }; |