aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/lua-script.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-06-23 06:52:12 +0530
committerEugene Sandulenko2019-09-03 17:16:57 +0200
commit538efcad6b814393cdcfc6d6b4cfb9075dbb38ae (patch)
tree66d5d4b937e66da197d7b1a3d57b303899af01d0 /engines/hdb/lua-script.cpp
parenta53b2c95508df218900d1b5953d4b18319c982e1 (diff)
downloadscummvm-rg350-538efcad6b814393cdcfc6d6b4cfb9075dbb38ae.tar.gz
scummvm-rg350-538efcad6b814393cdcfc6d6b4cfb9075dbb38ae.tar.bz2
scummvm-rg350-538efcad6b814393cdcfc6d6b4cfb9075dbb38ae.zip
HDB: Add cineDialog() Lua function
Diffstat (limited to 'engines/hdb/lua-script.cpp')
-rw-r--r--engines/hdb/lua-script.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index edd47bc2e5..7ea1a2f598 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -258,7 +258,14 @@ static int cineSetAnimFrame(lua_State *L) {
}
static int cineDialog(lua_State *L) {
- warning("STUB: CINE DIALOG");
+ const char *title = lua_tostring(L, 1);
+ const char *string = lua_tostring(L, 1);
+ double seconds = lua_tonumber(L, 3);
+
+ g_hdb->_lua->checkParameters("cineDialog", 3);
+
+ lua_pop(L, 3);
+ g_hdb->_ai->cineDialog(title, string, (int)seconds);
return 0;
}