Menu-FN: Add 'menumap' to the liblist.gam extended specification.
This commit is contained in:
parent
a687d7b330
commit
d4de286086
4 changed files with 11 additions and 0 deletions
|
@ -45,6 +45,8 @@ pkgfile ""
|
||||||
chatroom "lobby"
|
chatroom "lobby"
|
||||||
// which file is to view when clicking the readme menu button
|
// which file is to view when clicking the readme menu button
|
||||||
readme "readme.txt"
|
readme "readme.txt"
|
||||||
|
// which map to use as a level background
|
||||||
|
menumap "test_dlights"
|
||||||
// what movie to play when starting the game
|
// what movie to play when starting the game
|
||||||
introvideo ""
|
introvideo ""
|
||||||
// whether to use a steam styled resource background cut into multiple parts
|
// whether to use a steam styled resource background cut into multiple parts
|
||||||
|
|
|
@ -102,6 +102,7 @@ typedef struct
|
||||||
string trainingmap;
|
string trainingmap;
|
||||||
string fallback_dir;
|
string fallback_dir;
|
||||||
string chatroom;
|
string chatroom;
|
||||||
|
string menumap;
|
||||||
string introvideo;
|
string introvideo;
|
||||||
int steambg;
|
int steambg;
|
||||||
gi_type info_type;
|
gi_type info_type;
|
||||||
|
|
|
@ -160,6 +160,11 @@ m_init(void)
|
||||||
localcmd(strcat("playvideo ", videofile, "\n"));
|
localcmd(strcat("playvideo ", videofile, "\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (games[gameinfo_current].menumap != "") {
|
||||||
|
string mapname = games[gameinfo_current].menumap;
|
||||||
|
localcmd(strcat("map_background ", mapname, "\n"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* called upon vid_reload, vid_restart, but not menu init/restart */
|
/* called upon vid_reload, vid_restart, but not menu init/restart */
|
||||||
|
|
|
@ -235,6 +235,9 @@ customgame_liblist_parse(int id, string strKey, string strValue)
|
||||||
case "readme":
|
case "readme":
|
||||||
games[id].readme = strValue;
|
games[id].readme = strValue;
|
||||||
break;
|
break;
|
||||||
|
case "menumap":
|
||||||
|
games[id].menumap = strValue;
|
||||||
|
break;
|
||||||
case "introvideo":
|
case "introvideo":
|
||||||
games[id].introvideo = strValue;
|
games[id].introvideo = strValue;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue