Menu-FN: Add 'menumap' to the liblist.gam extended specification.

This commit is contained in:
Marco Cawthorne 2022-02-23 01:41:22 -08:00
parent a687d7b330
commit d4de286086
Signed by: eukara
GPG Key ID: C196CD8BA993248A
4 changed files with 11 additions and 0 deletions

View File

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

View File

@ -102,6 +102,7 @@ typedef struct
string trainingmap;
string fallback_dir;
string chatroom;
string menumap;
string introvideo;
int steambg;
gi_type info_type;

View File

@ -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 */

View File

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