diff options
| author | Ľubomír Remák | 2018-04-11 21:15:01 +0200 |
|---|---|---|
| committer | Eugene Sandulenko | 2018-08-25 23:12:01 +0200 |
| commit | c25ed8957228cfd580216383c3391ccc7e512bb5 (patch) | |
| tree | fff52e7d5e588719ced3b164b6ea48c9779236af /engines/mutationofjb/commands | |
| parent | 9af3d8a2381fe7c7440330a9aa338f51cd734990 (diff) | |
| download | scummvm-rg350-c25ed8957228cfd580216383c3391ccc7e512bb5.tar.gz scummvm-rg350-c25ed8957228cfd580216383c3391ccc7e512bb5.tar.bz2 scummvm-rg350-c25ed8957228cfd580216383c3391ccc7e512bb5.zip | |
MUTATIONOFJB: Refactor inventory UI into separate widget, add button widgets.
Diffstat (limited to 'engines/mutationofjb/commands')
| -rw-r--r-- | engines/mutationofjb/commands/endblockcommand.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/mutationofjb/commands/endblockcommand.cpp b/engines/mutationofjb/commands/endblockcommand.cpp index 492a4244b3..cc6a4559b4 100644 --- a/engines/mutationofjb/commands/endblockcommand.cpp +++ b/engines/mutationofjb/commands/endblockcommand.cpp @@ -31,6 +31,7 @@ ("#L " | "-L ") <object> ("#W " | "-W ") <object> ("#T " | "-T ") <object> + ("#P " | "-P ") <object1> ("#U " | "-U ") <object1> [<object2>] ("#ELSE" | "-ELSE") [<tag>] "#MACRO " <name> @@ -73,6 +74,10 @@ bool EndBlockCommandParser::parse(const Common::String &line, ScriptParseContext ActionInfo ai = {ActionInfo::Talk, line.c_str() + 3, "", firstChar == '#', nullptr}; parseCtx._actionInfos.push_back(ai); _pendingActionInfos.push_back(parseCtx._actionInfos.size() - 1); + } else if (line.size() >= 4 && (line.hasPrefix("#P ") || line.hasPrefix("-P "))) { + ActionInfo ai = {ActionInfo::PickUp, line.c_str() + 3, "", firstChar == '#', nullptr}; + parseCtx._actionInfos.push_back(ai); + _pendingActionInfos.push_back(parseCtx._actionInfos.size() - 1); } else if (line.size() >= 4 && (line.hasPrefix("#U ") || line.hasPrefix("-U "))) { int secondObjPos = -1; for (uint i = 3; i < line.size(); ++i) { |
