summaryrefslogtreecommitdiff
path: root/source/ui_main.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-08-21 16:49:54 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-08-21 16:49:54 +0000
commit30af9a540f8a637d9ee8d6a750f9648fd316dec4 (patch)
tree9c272a48b7b8ec23076075d1b759e303b72b8c1a /source/ui_main.c
parented3ec7e3ac0d43c1bfa3b56424ced4009cd0239b (diff)
Removed demomap command, cinematics stuff, support for savegames.
Added addban, delban, listbans server commands. Renamed cl_railrings_* cvars to cl_railspiral_*. Server now reports minor Q2PRO protocol version in challenge response. Pressing Ctrl+C inside input filed copies contents to clipboard on Windows. Cleaned up not implemented menus. Removed scr_crosshair_names cvar. Removed support for triggers. Added cl_beginmapcmd, cl_endmapcmd, cl_changemapcmd cvars. Updated wiki.
Diffstat (limited to 'source/ui_main.c')
-rw-r--r--source/ui_main.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/source/ui_main.c b/source/ui_main.c
index f2f5c5f..588564b 100644
--- a/source/ui_main.c
+++ b/source/ui_main.c
@@ -28,21 +28,19 @@ MAIN MENU
=======================================================================
*/
-#define MAIN_ITEMS 6
+#define MAIN_ITEMS 5
-static char *names[] = {
- "Singleplayer",
+static const char names[MAIN_ITEMS][16] = {
"Multiplayer",
"Demos",
"Options",
"Mods",
- "Quit",
- 0
+ "Quit"
};
typedef struct mainMenu_s {
- menuFrameWork_t menu;
- menuAction_t actions[MAIN_ITEMS];
+ menuFrameWork_t menu;
+ menuAction_t actions[MAIN_ITEMS];
menuStatic_t banner;
} mainMenu_t;
@@ -59,21 +57,18 @@ static int MainMenu_Callback( int id, int msg, int param ) {
case QM_ACTIVATE:
switch( id ) {
case 0:
- M_Menu_Game_f();
- break;
- case 1:
M_Menu_Multiplayer_f();
break;
- case 2:
+ case 1:
M_Menu_Demos_f();
break;
- case 3:
+ case 2:
M_Menu_Options_f();
break;
- case 4:
+ case 3:
M_Menu_Mods_f();
break;
- case 5:
+ case 4:
M_Menu_Confirm_f( "Quit game? y/n", MainMenu_QuitAction );
break;
}
@@ -110,12 +105,11 @@ static void MainMenu_Init( void ) {
Menu_AddItem( &m_main.menu, (void *)&m_main.actions[i] );
}
- m_main.actions[1].generic.flags = QMF_HASFOCUS;
+ m_main.actions[0].generic.flags = QMF_HASFOCUS;
UI_SetupDefaultBanner( &m_main.banner, "Main Menu" );
Menu_AddItem( &m_main.menu, (void *)&m_main.banner );
-
}