From 72303564f70573dc4bacd9c726dc626920bf21e8 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 18 Oct 2014 11:20:50 -0400 Subject: MADS: Hook up Rex game endings to show the correct animation and/or credits --- engines/mads/nebular/menu_nebular.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'engines/mads/nebular/menu_nebular.cpp') 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 -- cgit v1.2.3