Timeout defaults to 20, added StatusLineW

This commit is contained in:
jsalmon3 2004-07-10 21:06:15 +00:00
parent 1a016338e7
commit e9ef15f07b

View file

@ -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));