aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/scene.h
diff options
context:
space:
mode:
authorPaul Gilbert2009-11-26 11:48:43 +0000
committerPaul Gilbert2009-11-26 11:48:43 +0000
commit5afc0e5ed7499e94201b7d2f723ef2556319be46 (patch)
tree44617cf18aa60cf5059ddd75081fe7e814cb424a /engines/m4/scene.h
parent6f45ecff1a260ef404c6f30a5866d2130e9815de (diff)
downloadscummvm-rg350-5afc0e5ed7499e94201b7d2f723ef2556319be46.tar.gz
scummvm-rg350-5afc0e5ed7499e94201b7d2f723ef2556319be46.tar.bz2
scummvm-rg350-5afc0e5ed7499e94201b7d2f723ef2556319be46.zip
Added the basics of a action list display
svn-id: r46152
Diffstat (limited to 'engines/m4/scene.h')
-rw-r--r--engines/m4/scene.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/engines/m4/scene.h b/engines/m4/scene.h
index 092ae8372b..b684750b18 100644
--- a/engines/m4/scene.h
+++ b/engines/m4/scene.h
@@ -127,6 +127,29 @@ private:
void nextCommonCursor();
};
+enum FontMode {MODE_0, MODE_1, MODE_2};
+
+class InterfaceElement: public View {
+protected:
+ void setFontMode(FontMode newMode);
+public:
+ InterfaceElement(M4Engine *vm, const Common::Rect &viewBounds, bool transparent = true);
+ ~InterfaceElement() {};
+};
+
+class ActionsView: public InterfaceElement {
+private:
+ int _highlightedAction;
+
+ void getActionRect(int actionId, Common::Rect &bounds);
+public:
+ ActionsView(M4Engine *vm);
+ ~ActionsView() {};
+
+ void onRefresh(RectList *rects, M4Surface *destSurface);
+ bool onEvent(M4EventType eventType, int param1, int x, int y, bool &captureEvents);
+};
+
} // End of namespace M4
#endif