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"
|
||||
// which file is to view when clicking the readme menu button
|
||||
readme "readme.txt"
|
||||
// which map to use as a level background
|
||||
menumap "test_dlights"
|
||||
// what movie to play when starting the game
|
||||
introvideo ""
|
||||
// whether to use a steam styled resource background cut into multiple parts
|
||||
|
|
|
@ -102,6 +102,7 @@ typedef struct
|
|||
string trainingmap;
|
||||
string fallback_dir;
|
||||
string chatroom;
|
||||
string menumap;
|
||||
string introvideo;
|
||||
int steambg;
|
||||
gi_type info_type;
|
||||
|
|
|
@ -160,6 +160,11 @@ m_init(void)
|
|||
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 */
|
||||
|
|
|
@ -235,6 +235,9 @@ customgame_liblist_parse(int id, string strKey, string strValue)
|
|||
case "readme":
|
||||
games[id].readme = strValue;
|
||||
break;
|
||||
case "menumap":
|
||||
games[id].menumap = strValue;
|
||||
break;
|
||||
case "introvideo":
|
||||
games[id].introvideo = strValue;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue