From 538efcad6b814393cdcfc6d6b4cfb9075dbb38ae Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Sun, 23 Jun 2019 06:52:12 +0530 Subject: HDB: Add cineDialog() Lua function --- engines/hdb/lua-script.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3