diff options
author | Paul Gilbert | 2014-10-18 11:20:50 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-10-18 11:20:50 -0400 |
commit | 72303564f70573dc4bacd9c726dc626920bf21e8 (patch) | |
tree | 0609776637669a2681c66641fd36027a1578f645 /engines/mads/nebular/menu_nebular.cpp | |
parent | 22aaf995ed4f5131ae9cf6753d228718a96293f3 (diff) | |
download | scummvm-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/nebular/menu_nebular.cpp')
-rw-r--r-- | engines/mads/nebular/menu_nebular.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/mads/nebular/menu_nebular.cpp b/engines/mads/nebular/menu_nebular.cpp index 717e3f6cf9..46dc411678 100644 --- a/engines/mads/nebular/menu_nebular.cpp +++ b/engines/mads/nebular/menu_nebular.cpp @@ -375,6 +375,21 @@ bool AdvertView::onEvent(Common::Event &event) { return false; } +/*------------------------------------------------------------------------*/ + +void RexAnimationView::scriptDone() { + AnimationView::scriptDone(); + + Common::String s = getResourceName(); + if (s == "rexend1") { + TextView::execute(_vm, "ending1"); + } else if (s == "rexend2") { + TextView::execute(_vm, "ending2"); + } else if (s == "rexend3") { + TextView::execute(_vm, "credits"); + } +} + } // End of namespace Nebular } // End of namespace MADS |