diff options
author | Torbjörn Andersson | 2003-12-21 17:55:40 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-12-21 17:55:40 +0000 |
commit | a5eca2df040234e11421351524b305f671b9fdf7 (patch) | |
tree | f204f4039198f9ce6005d4eadfb9e2bef0c05d7e /sword1/menu.h | |
parent | 6df4db88cd9f95cb7112d1d27236c870ea09447d (diff) | |
download | scummvm-rg350-a5eca2df040234e11421351524b305f671b9fdf7.tar.gz scummvm-rg350-a5eca2df040234e11421351524b305f671b9fdf7.tar.bz2 scummvm-rg350-a5eca2df040234e11421351524b305f671b9fdf7.zip |
Highlight the correct (I hope!) menu icon during conversation, and do the
cheesy menu fade-in/fade-out.
svn-id: r11831
Diffstat (limited to 'sword1/menu.h')
-rw-r--r-- | sword1/menu.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sword1/menu.h b/sword1/menu.h index cd6eb3dee0..e8c5aa207d 100644 --- a/sword1/menu.h +++ b/sword1/menu.h @@ -50,7 +50,7 @@ public: SwordMenuIcon(uint8 menuType, uint8 menuPos, uint32 resId, uint32 frame, SwordScreen *screen); bool wasClicked(uint16 mouseX, uint16 mouseY); void setSelect(bool pSel); - void draw(void); + void draw(const byte *fadeMask = NULL, int8 fadeStatus = 0); private: uint8 _menuType, _menuPos; @@ -78,8 +78,10 @@ private: void buildSubjects(void); void buildMenu(void); void showMenu(uint8 menuType); - bool _subjectBarShown; // originally "subject_status" - bool _objectBarShown; // originally "menu_status" + byte _subjectBarStatus; + byte _objectBarStatus; + int8 _fadeSubject; + int8 _fadeObject; uint8 checkMenuClick(uint8 menuType); //- lower menu, speech subjects: SwordMenuIcon *_subjects[16]; @@ -92,6 +94,9 @@ private: SwordScreen *_screen; SwordMouse *_mouse; static const Subject _subjectList[TOTAL_subjects]; + + static const byte _fadeEffectTop[64]; + static const byte _fadeEffectBottom[64]; }; #endif //BSMENU_H |