diff --git a/src/ui/script_ui.cpp b/src/ui/script_ui.cpp index d0b969846..8db7d869a 100644 --- a/src/ui/script_ui.cpp +++ b/src/ui/script_ui.cpp @@ -284,7 +284,6 @@ static int CclSetTitleScreens(lua_State* l) LuaError(l, "incorrect argument"); } TitleScreens[j] = calloc(1, sizeof(**TitleScreens)); - TitleScreens[j]->Timeout = 20; lua_pushnil(l); while (lua_next(l, j + 1)) { value = LuaToString(l, -2); @@ -1935,6 +1934,10 @@ static int CclDefineUI(lua_State* l) ui->StatusLineTextY = LuaToNumber(l, -1); lua_pop(l, 1); lua_pop(l, 1); + } else if (!strcmp(value, "width")) { + lua_rawgeti(l, j + 1, k + 1); + ui->StatusLineW = LuaToNumber(l, -1); + lua_pop(l, 1); } else if (!strcmp(value, "font")) { lua_rawgeti(l, j + 1, k + 1); ui->StatusLineFont = FontByIdent(LuaToString(l, -1));