add 'args' parameter to hud.show_overlay

This commit is contained in:
MihailRis
2024-11-20 11:10:05 +03:00
parent 02578a6276
commit e842b217da
4 changed files with 20 additions and 9 deletions
+4 -2
View File
@@ -98,7 +98,8 @@ static int l_show_overlay(lua::State* L) {
if (layout == nullptr) {
throw std::runtime_error("there is no ui layout " + util::quote(name));
}
hud->showOverlay(layout, playerInventory);
auto args = lua::tovalue(L, 3);
hud->showOverlay(layout, playerInventory, std::move(args));
return 0;
}
@@ -188,4 +189,5 @@ const luaL_Reg hudlib[] = {
{"_is_content_access", lua::wrap<l_is_content_access>},
{"_set_content_access", lua::wrap<l_set_content_access>},
{"_set_debug_cheats", lua::wrap<l_set_debug_cheats>},
{NULL, NULL}};
{NULL, NULL}
};