mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 07:07:10 +00:00
ZVISION: Implement action:delay_render
This commit is contained in:
parent
53002dd2d0
commit
d0f6b61d7d
@ -160,6 +160,19 @@ bool ActionCrossfade::execute() {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
// ActionDelayRender
|
||||||
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
ActionDelayRender::ActionDelayRender(ZVision *engine, int32 slotkey, const Common::String &line) :
|
||||||
|
ResultAction(engine, slotkey) {
|
||||||
|
sscanf(line.c_str(), "%u", &_framesToDelay);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool ActionDelayRender::execute() {
|
||||||
|
_engine->setRenderDelay(_framesToDelay);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// ActionDisableControl
|
// ActionDisableControl
|
||||||
|
@ -162,8 +162,7 @@ public:
|
|||||||
bool execute();
|
bool execute();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// TODO: Check if this should actually be frames or if it should be milliseconds/seconds
|
uint32 _framesToDelay;
|
||||||
uint32 framesToDelay;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class ActionDisableControl : public ResultAction {
|
class ActionDisableControl : public ResultAction {
|
||||||
|
@ -232,7 +232,7 @@ void ScriptManager::parseResults(Common::SeekableReadStream &stream, Common::Lis
|
|||||||
} else if (act.matchString("debug", true)) {
|
} else if (act.matchString("debug", true)) {
|
||||||
// TODO: Implement ActionDebug
|
// TODO: Implement ActionDebug
|
||||||
} else if (act.matchString("delay_render", true)) {
|
} else if (act.matchString("delay_render", true)) {
|
||||||
// TODO: Implement ActionDelayRender
|
actionList.push_back(new ActionDelayRender(_engine, slot, args));
|
||||||
} else if (act.matchString("disable_control", true)) {
|
} else if (act.matchString("disable_control", true)) {
|
||||||
actionList.push_back(new ActionDisableControl(_engine, slot, args));
|
actionList.push_back(new ActionDisableControl(_engine, slot, args));
|
||||||
} else if (act.matchString("disable_venus", true)) {
|
} else if (act.matchString("disable_venus", true)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user