aboutsummaryrefslogtreecommitdiff
path: root/sword1/menu.h
diff options
context:
space:
mode:
authorRobert Göffringmann2003-12-17 01:47:47 +0000
committerRobert Göffringmann2003-12-17 01:47:47 +0000
commit34d1751fe402936455fc8b57b28cb6c3eda11285 (patch)
tree4915c2d545063455d34c0d91c3cc341e45b17fae /sword1/menu.h
parentd81746ada8e7013759eafd7154dd81d488910d22 (diff)
downloadscummvm-rg350-34d1751fe402936455fc8b57b28cb6c3eda11285.tar.gz
scummvm-rg350-34d1751fe402936455fc8b57b28cb6c3eda11285.tar.bz2
scummvm-rg350-34d1751fe402936455fc8b57b28cb6c3eda11285.zip
fixed resMan bug about closing of sections and started adding menu support
svn-id: r11695
Diffstat (limited to 'sword1/menu.h')
-rw-r--r--sword1/menu.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/sword1/menu.h b/sword1/menu.h
index e17a8a7d38..7ee1e04cbc 100644
--- a/sword1/menu.h
+++ b/sword1/menu.h
@@ -37,6 +37,14 @@ struct Subject {
uint32 frameNo;
};
+struct MenuObject {
+ int32 textDesc;
+ uint32 bigIconRes;
+ uint32 bigIconFrame;
+ uint32 luggageIconRes;
+ uint32 useScript;
+};
+
class SwordMenuIcon {
public:
SwordMenuIcon(uint8 menuType, uint8 menuPos, uint32 resId, uint32 frame, SwordScreen *screen);
@@ -66,15 +74,24 @@ public:
private:
void buildSubjects(void);
- void clearMenu(uint8 menuType);
+ void buildMenu(void);
+ void showMenu(uint8 menuType);
+ bool _subjectBarShown; // originally "subject_status"
+ bool _objectBarShown; // originally "menu_status"
uint8 checkMenuClick(uint8 menuType);
+ //- lower menu, speech subjects:
SwordMenuIcon *_subjects[16];
uint32 _subjectBar[16];
+ //- top menu, items
+ SwordMenuIcon *_objects[TOTAL_pockets];
+ uint32 _menuList[TOTAL_pockets];
+ uint32 _inMenu;
+ uint32 _secondItem;
SwordScreen *_screen;
SwordMouse *_mouse;
static const Subject _subjectList[TOTAL_subjects];
-
+ static const MenuObject _objectDefs[TOTAL_pockets + 1];
};
#endif //BSMENU_H