diff options
author | Marisa-Chan | 2014-11-08 12:58:11 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-11-08 12:58:11 +0600 |
commit | b8ef942f692d7354fed3fd889994c499db714ba7 (patch) | |
tree | c7168644aea6487ede77412c1b2684b2c8122dbc /engines/zvision/scripting | |
parent | 7ddfcfd17ec1e367896c223d5b8dc59b44d4029e (diff) | |
download | scummvm-rg350-b8ef942f692d7354fed3fd889994c499db714ba7.tar.gz scummvm-rg350-b8ef942f692d7354fed3fd889994c499db714ba7.tar.bz2 scummvm-rg350-b8ef942f692d7354fed3fd889994c499db714ba7.zip |
ZVISION: Implement action:dissolve
Diffstat (limited to 'engines/zvision/scripting')
-rw-r--r-- | engines/zvision/scripting/actions.cpp | 14 | ||||
-rw-r--r-- | engines/zvision/scripting/scr_file_handling.cpp | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/engines/zvision/scripting/actions.cpp b/engines/zvision/scripting/actions.cpp index 33add9f8fa..96411e2c3d 100644 --- a/engines/zvision/scripting/actions.cpp +++ b/engines/zvision/scripting/actions.cpp @@ -222,6 +222,20 @@ bool ActionDisplayMessage::execute() { } ////////////////////////////////////////////////////////////////////////////// +// ActionDissolve +////////////////////////////////////////////////////////////////////////////// + +ActionDissolve::ActionDissolve(ZVision *engine) : + ResultAction(engine, 0) { +} + +bool ActionDissolve::execute() { + // Cause black screen flick + // _engine->getRenderManager()->bkgFill(0, 0, 0); + return true; +} + +////////////////////////////////////////////////////////////////////////////// // ActionDistort ////////////////////////////////////////////////////////////////////////////// diff --git a/engines/zvision/scripting/scr_file_handling.cpp b/engines/zvision/scripting/scr_file_handling.cpp index c7268e6111..daec4f8f18 100644 --- a/engines/zvision/scripting/scr_file_handling.cpp +++ b/engines/zvision/scripting/scr_file_handling.cpp @@ -240,7 +240,7 @@ void ScriptManager::parseResults(Common::SeekableReadStream &stream, Common::Lis } else if (act.matchString("display_message", true)) { actionList.push_back(new ActionDisplayMessage(_engine, slot, args)); } else if (act.matchString("dissolve", true)) { - // TODO: Implement ActionDissolve + actionList.push_back(new ActionDissolve(_engine)); } else if (act.matchString("distort", true)) { actionList.push_back(new ActionDistort(_engine, slot, args)); } else if (act.matchString("enable_control", true)) { |