HDB: Add setInfobarDark() Lua function

This commit is contained in:
Nipun Garg 2019-06-23 22:16:21 +05:30 committed by Eugene Sandulenko
parent c0d9281b45
commit 0dcf1568ee

View File

@ -623,7 +623,14 @@ static int gotoMenu(lua_State *L) {
}
static int setInfobarDark(lua_State *L) {
warning("STUB: SET INFOBAR DARK");
double value = lua_tonumber(L, 1);
g_hdb->_lua->checkParameters("setInfobarDark", 1);
lua_pop(L, 1);
g_hdb->_window->setInfobarDark((int)value);
return 0;
}