mirror of
https://github.com/nzp-team/glquake.git
synced 2024-11-10 06:31:35 +00:00
Add Warehouse and Warehouse (Classic) to menu
This commit is contained in:
parent
94c8e1b93a
commit
71c31e514e
1 changed files with 42 additions and 16 deletions
|
@ -49,6 +49,7 @@ qpic_t *menu_bk;
|
||||||
// Map screens
|
// Map screens
|
||||||
qpic_t *menu_ndu;
|
qpic_t *menu_ndu;
|
||||||
qpic_t *menu_wh;
|
qpic_t *menu_wh;
|
||||||
|
qpic_t *menu_wh2
|
||||||
//qpic_t *menu_kn;
|
//qpic_t *menu_kn;
|
||||||
qpic_t *menu_ch;
|
qpic_t *menu_ch;
|
||||||
//qpic_t *menu_wn;
|
//qpic_t *menu_wn;
|
||||||
|
@ -232,7 +233,8 @@ void M_Load_Menu_Pics ()
|
||||||
menu_bk = Draw_CachePic("gfx/menu/menu_background");
|
menu_bk = Draw_CachePic("gfx/menu/menu_background");
|
||||||
menu_ndu = Draw_CachePic("gfx/menu/nacht_der_untoten");
|
menu_ndu = Draw_CachePic("gfx/menu/nacht_der_untoten");
|
||||||
//menu_kn = Draw_CachePic("gfx/menu/kino_der_toten");
|
//menu_kn = Draw_CachePic("gfx/menu/kino_der_toten");
|
||||||
menu_wh = Draw_CachePic("gfx/menu/warehouse");
|
menu_wh = Draw_CachePic("gfx/menu/nzp_warehouse");
|
||||||
|
menu_wh2 = Draw_CachePic("gfx/menu/nzp_warehouse2");
|
||||||
//menu_wn = Draw_CachePic("gfx/menu/wahnsinn");
|
//menu_wn = Draw_CachePic("gfx/menu/wahnsinn");
|
||||||
menu_ch = Draw_CachePic("gfx/menu/christmas_special");
|
menu_ch = Draw_CachePic("gfx/menu/christmas_special");
|
||||||
menu_custom = Draw_CachePic("gfx/menu/custom");
|
menu_custom = Draw_CachePic("gfx/menu/custom");
|
||||||
|
@ -716,7 +718,7 @@ void M_Exit_Draw (void)
|
||||||
/* SINGLE PLAYER MENU */
|
/* SINGLE PLAYER MENU */
|
||||||
|
|
||||||
int m_singleplayer_cursor;
|
int m_singleplayer_cursor;
|
||||||
#define SINGLEPLAYER_ITEMS 5
|
#define SINGLEPLAYER_ITEMS 6
|
||||||
|
|
||||||
|
|
||||||
void M_Menu_SinglePlayer_f (void)
|
void M_Menu_SinglePlayer_f (void)
|
||||||
|
@ -746,8 +748,8 @@ void M_SinglePlayer_Draw (void)
|
||||||
else
|
else
|
||||||
Draw_ColoredString(5, 40, "Nacht der Untoten", 255, 255, 255, 255, 1);
|
Draw_ColoredString(5, 40, "Nacht der Untoten", 255, 255, 255, 255, 1);
|
||||||
|
|
||||||
// Kino der Toten
|
// Divider
|
||||||
Draw_ColoredString(5, 50, "Kino der Toten", 128, 128, 128, 255, 1);
|
Draw_FillByColor(5, 53, 160, 2, 130, 130, 130, 255);
|
||||||
|
|
||||||
// Warehouse
|
// Warehouse
|
||||||
if (m_singleplayer_cursor == 1)
|
if (m_singleplayer_cursor == 1)
|
||||||
|
@ -755,11 +757,14 @@ void M_SinglePlayer_Draw (void)
|
||||||
else
|
else
|
||||||
Draw_ColoredString(5, 60, "Warehouse", 255, 255, 255, 255, 1);
|
Draw_ColoredString(5, 60, "Warehouse", 255, 255, 255, 255, 1);
|
||||||
|
|
||||||
// Wahnsinn
|
// Warehouse (Classic)
|
||||||
Draw_ColoredString(5, 70, "Wahnsinn", 128, 128, 128, 255, 1);
|
if (m_singleplayer_cursor == 2)
|
||||||
|
Draw_ColoredString(5, 70, "Warehouse (Classic)", 255, 0, 0, 255, 1);
|
||||||
|
else
|
||||||
|
Draw_ColoredString(5, 70, "Warehouse (Classic)", 255, 255, 255, 255, 1);
|
||||||
|
|
||||||
// Christmas Special
|
// Christmas Special
|
||||||
if (m_singleplayer_cursor == 2)
|
if (m_singleplayer_cursor == 3)
|
||||||
Draw_ColoredString(5, 80, "Christmas Special", 255, 0, 0, 255, 1);
|
Draw_ColoredString(5, 80, "Christmas Special", 255, 0, 0, 255, 1);
|
||||||
else
|
else
|
||||||
Draw_ColoredString(5, 80, "Christmas Special", 255, 255, 255, 255, 1);
|
Draw_ColoredString(5, 80, "Christmas Special", 255, 255, 255, 255, 1);
|
||||||
|
@ -768,13 +773,13 @@ void M_SinglePlayer_Draw (void)
|
||||||
Draw_FillByColor(5, 93, 160, 2, 130, 130, 130, 255);
|
Draw_FillByColor(5, 93, 160, 2, 130, 130, 130, 255);
|
||||||
|
|
||||||
// Custom Maps
|
// Custom Maps
|
||||||
if (m_singleplayer_cursor == 3)
|
if (m_singleplayer_cursor == 4)
|
||||||
Draw_ColoredString(5, 100, "Custom Maps", 255, 0, 0, 255, 1);
|
Draw_ColoredString(5, 100, "Custom Maps", 255, 0, 0, 255, 1);
|
||||||
else
|
else
|
||||||
Draw_ColoredString(5, 100, "Custom Maps", 255, 255, 255, 255, 1);
|
Draw_ColoredString(5, 100, "Custom Maps", 255, 255, 255, 255, 1);
|
||||||
|
|
||||||
// Back
|
// Back
|
||||||
if (m_singleplayer_cursor == 4)
|
if (m_singleplayer_cursor == 5)
|
||||||
Draw_ColoredString(5, 230, "Back", 255, 0, 0, 255, 1);
|
Draw_ColoredString(5, 230, "Back", 255, 0, 0, 255, 1);
|
||||||
else
|
else
|
||||||
Draw_ColoredString(5, 230, "Back", 255, 255, 255, 255, 1);
|
Draw_ColoredString(5, 230, "Back", 255, 255, 255, 255, 1);
|
||||||
|
@ -794,20 +799,30 @@ void M_SinglePlayer_Draw (void)
|
||||||
Draw_ColoredString(140, 218, "to the overwhelming onslaught?", 255, 255, 255, 255, 1);
|
Draw_ColoredString(140, 218, "to the overwhelming onslaught?", 255, 255, 255, 255, 1);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
menu_wh = Draw_CachePic("gfx/menu/warehouse");
|
menu_wh2 = Draw_CachePic("gfx/menu/nzp_warehouse2");
|
||||||
|
Draw_StretchPic(195, 40, menu_wh2, 175, 100);
|
||||||
|
Draw_ColoredString(140, 148, "Four nameless marines find them-", 255, 255, 255, 255, 1);
|
||||||
|
Draw_ColoredString(140, 158, "selves at a forsaken warehouse,", 255, 255, 255, 255, 1);
|
||||||
|
Draw_ColoredString(140, 168, "or is it something more? Fight", 255, 255, 255, 255, 1);
|
||||||
|
Draw_ColoredString(140, 178, "your way to uncovering its sec-", 255, 255, 255, 255, 1);
|
||||||
|
Draw_ColoredString(140, 188, "rets, though you may not like", 255, 255, 255, 255, 1);
|
||||||
|
Draw_ColoredString(140, 198, "what you find..", 255, 255, 255, 255, 1);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
menu_wh = Draw_CachePic("gfx/menu/nzp_warehouse");
|
||||||
Draw_StretchPic(195, 40, menu_wh, 175, 100);
|
Draw_StretchPic(195, 40, menu_wh, 175, 100);
|
||||||
Draw_ColoredString(140, 148, "Old Warehouse full of Zombies!", 255, 255, 255, 255, 1);
|
Draw_ColoredString(140, 148, "Old Warehouse full of Zombies!", 255, 255, 255, 255, 1);
|
||||||
Draw_ColoredString(140, 158, "Fight your way to the Power", 255, 255, 255, 255, 1);
|
Draw_ColoredString(140, 158, "Fight your way to the Power", 255, 255, 255, 255, 1);
|
||||||
Draw_ColoredString(140, 168, "Switch through the Hordes!", 255, 255, 255, 255, 1);
|
Draw_ColoredString(140, 168, "Switch through the Hordes!", 255, 255, 255, 255, 1);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 3:
|
||||||
menu_ch = Draw_CachePic("gfx/menu/christmas_special");
|
menu_ch = Draw_CachePic("gfx/menu/christmas_special");
|
||||||
Draw_StretchPic(195, 40, menu_ch, 175, 100);
|
Draw_StretchPic(195, 40, menu_ch, 175, 100);
|
||||||
Draw_ColoredString(140, 148, "No Santa this year. Though we're", 255, 255, 255, 255, 1);
|
Draw_ColoredString(140, 148, "No Santa this year. Though we're", 255, 255, 255, 255, 1);
|
||||||
Draw_ColoredString(140, 158, "sure you will get presents from", 255, 255, 255, 255, 1);
|
Draw_ColoredString(140, 158, "sure you will get presents from", 255, 255, 255, 255, 1);
|
||||||
Draw_ColoredString(140, 168, "the undead! Will you accept them?", 255, 255, 255, 255, 1);
|
Draw_ColoredString(140, 168, "the undead! Will you accept them?", 255, 255, 255, 255, 1);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 4:
|
||||||
menu_custom = Draw_CachePic("gfx/menu/custom");
|
menu_custom = Draw_CachePic("gfx/menu/custom");
|
||||||
Draw_StretchPic(195, 40, menu_custom, 175, 100);
|
Draw_StretchPic(195, 40, menu_custom, 175, 100);
|
||||||
Draw_ColoredString(140, 148, "Custom Maps made by Community", 255, 255, 255, 255, 1);
|
Draw_ColoredString(140, 148, "Custom Maps made by Community", 255, 255, 255, 255, 1);
|
||||||
|
@ -857,13 +872,24 @@ void M_SinglePlayer_Key (int key)
|
||||||
if (sv.active)
|
if (sv.active)
|
||||||
Cbuf_AddText ("disconnect\n");
|
Cbuf_AddText ("disconnect\n");
|
||||||
Cbuf_AddText ("maxplayers 1\n");
|
Cbuf_AddText ("maxplayers 1\n");
|
||||||
Cbuf_AddText ("map warehouse\n");
|
Cbuf_AddText ("map nzp_warehouse2\n");
|
||||||
loadingScreen = 1;
|
loadingScreen = 1;
|
||||||
loadname2 = "warehouse";
|
loadname2 = "nzp_warehouse2";
|
||||||
loadnamespec = "Warehouse";
|
loadnamespec = "Warehouse";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
|
key_dest = key_game;
|
||||||
|
if (sv.active)
|
||||||
|
Cbuf_AddText ("disconnect\n");
|
||||||
|
Cbuf_AddText ("maxplayers 1\n");
|
||||||
|
Cbuf_AddText ("map nzp_warehouse\n");
|
||||||
|
loadingScreen = 1;
|
||||||
|
loadname2 = "nzp_warehouse";
|
||||||
|
loadnamespec = "Warehouse (Classic)";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 3:
|
||||||
key_dest = key_game;
|
key_dest = key_game;
|
||||||
if (sv.active)
|
if (sv.active)
|
||||||
Cbuf_AddText ("disconnect\n");
|
Cbuf_AddText ("disconnect\n");
|
||||||
|
@ -874,10 +900,10 @@ void M_SinglePlayer_Key (int key)
|
||||||
loadnamespec = "Christmas Special";
|
loadnamespec = "Christmas Special";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 4:
|
||||||
M_Menu_CustomMaps_f ();
|
M_Menu_CustomMaps_f ();
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 5:
|
||||||
M_Menu_Main_f ();
|
M_Menu_Main_f ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue