aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichieSams2013-09-07 18:08:20 -0500
committerRichieSams2013-09-09 11:16:36 -0500
commit5c3cfaa6d2428da3ed33bcdf163008457df8000b (patch)
tree04f48045c0ab1b20f0cf40cb56f9b09823914923
parent46278f6f59505050d516460094237e30abaa58e0 (diff)
downloadscummvm-rg350-5c3cfaa6d2428da3ed33bcdf163008457df8000b.tar.gz
scummvm-rg350-5c3cfaa6d2428da3ed33bcdf163008457df8000b.tar.bz2
scummvm-rg350-5c3cfaa6d2428da3ed33bcdf163008457df8000b.zip
ZVISION: Implement ActionPreloadAnimation::execute()
-rw-r--r--engines/zvision/actions.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/zvision/actions.cpp b/engines/zvision/actions.cpp
index d91c3b879d..86eca58411 100644
--- a/engines/zvision/actions.cpp
+++ b/engines/zvision/actions.cpp
@@ -33,6 +33,7 @@
#include "zvision/zork_raw.h"
#include "zvision/zork_avi_decoder.h"
#include "zvision/timer_node.h"
+#include "zvision/animation_control.h"
namespace ZVision {
@@ -212,7 +213,13 @@ ActionPreloadAnimation::ActionPreloadAnimation(const Common::String &line) {
}
bool ActionPreloadAnimation::execute(ZVision *engine) {
- // TODO: Implement
+ // TODO: We ignore the mask and framerate atm. Mask refers to a key color used for binary alpha. We assume the framerate is the default framerate embedded in the videos
+
+ // TODO: Check if the Control already exists
+
+ // Create the control, but disable it until PlayPreload is called
+ engine->getScriptManager()->addControl(new AnimationControl(engine, _key, _fileName));
+ engine->getScriptManager()->disableControl(_key);
return true;
}