aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/menu_views.h
diff options
context:
space:
mode:
authorPaul Gilbert2014-10-18 11:20:50 -0400
committerPaul Gilbert2014-10-18 11:20:50 -0400
commit72303564f70573dc4bacd9c726dc626920bf21e8 (patch)
tree0609776637669a2681c66641fd36027a1578f645 /engines/mads/menu_views.h
parent22aaf995ed4f5131ae9cf6753d228718a96293f3 (diff)
downloadscummvm-rg350-72303564f70573dc4bacd9c726dc626920bf21e8.tar.gz
scummvm-rg350-72303564f70573dc4bacd9c726dc626920bf21e8.tar.bz2
scummvm-rg350-72303564f70573dc4bacd9c726dc626920bf21e8.zip
MADS: Hook up Rex game endings to show the correct animation and/or credits
Diffstat (limited to 'engines/mads/menu_views.h')
-rw-r--r--engines/mads/menu_views.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/engines/mads/menu_views.h b/engines/mads/menu_views.h
index 6faa665bff..c13213c3ed 100644
--- a/engines/mads/menu_views.h
+++ b/engines/mads/menu_views.h
@@ -36,6 +36,7 @@ class MenuView: public FullScreenDialog {
protected:
bool _breakFlag;
bool _redrawFlag;
+ Common::String _filename;
virtual void doFrame() = 0;
@@ -51,6 +52,8 @@ public:
virtual ~MenuView() {}
virtual void show();
+
+ Common::String getResourceName();
};
struct TextLine {
@@ -107,11 +110,6 @@ private:
int getParameter(const char **paramP);
/**
- * Called when the script is finished
- */
- void scriptDone();
-
- /**
* Reset the game palette
*/
void resetPalette();
@@ -119,6 +117,11 @@ protected:
virtual void display();
virtual void doFrame();
+
+ /**
+ * Called when the script is finished
+ */
+ virtual void scriptDone();
public:
/**
* Queue the given text resource for display
@@ -201,8 +204,6 @@ private:
int getParameter();
- void scriptDone();
-
void loadNextResource();
protected:
virtual void display();
@@ -210,6 +211,8 @@ protected:
virtual void doFrame();
virtual bool onEvent(Common::Event &event);
+
+ virtual void scriptDone();
public:
/**
* Queue the given text resource for display