mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Hexen2 class selection.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2132 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
e83edca1c7
commit
d1f25d24e2
1 changed files with 21 additions and 0 deletions
|
@ -154,6 +154,23 @@ void M_Menu_SinglePlayer_f (void)
|
||||||
}
|
}
|
||||||
else if (mgt == MGT_HEXEN2)
|
else if (mgt == MGT_HEXEN2)
|
||||||
{ //h2
|
{ //h2
|
||||||
|
cvar_t *pc;
|
||||||
|
static char *classlist[] = {
|
||||||
|
"Random",
|
||||||
|
"Barbarian",
|
||||||
|
"Crusader",
|
||||||
|
"Paladin",
|
||||||
|
"Assasin",
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
static char *classvalues[] = {
|
||||||
|
"",
|
||||||
|
"1",
|
||||||
|
"2",
|
||||||
|
"3",
|
||||||
|
"4",
|
||||||
|
NULL
|
||||||
|
};
|
||||||
menu = M_CreateMenu(0);
|
menu = M_CreateMenu(0);
|
||||||
MC_AddPicture(menu, 16, 0, "gfx/menu/hplaque.lmp");
|
MC_AddPicture(menu, 16, 0, "gfx/menu/hplaque.lmp");
|
||||||
MC_AddCenterPicture(menu, 0, "gfx/menu/title1.lmp");
|
MC_AddCenterPicture(menu, 0, "gfx/menu/title1.lmp");
|
||||||
|
@ -166,6 +183,10 @@ void M_Menu_SinglePlayer_f (void)
|
||||||
MC_AddConsoleCommand (menu, 64, 96, "Load Game", "menu_load\n");
|
MC_AddConsoleCommand (menu, 64, 96, "Load Game", "menu_load\n");
|
||||||
MC_AddConsoleCommand (menu, 64, 104, "Save Game", "menu_save\n");
|
MC_AddConsoleCommand (menu, 64, 104, "Save Game", "menu_save\n");
|
||||||
|
|
||||||
|
pc = Cvar_Get("cl_playerclass", "1", CVAR_USERINFO|CVAR_ARCHIVE, "Hexen2");
|
||||||
|
if (pc)
|
||||||
|
MC_AddCvarCombo (menu, 64, 104+16, "Player class", pc, classlist, classvalues);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (QBigFontWorks())
|
else if (QBigFontWorks())
|
||||||
|
|
Loading…
Reference in a new issue