diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-08-21 16:49:54 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-08-21 16:49:54 +0000 |
commit | 30af9a540f8a637d9ee8d6a750f9648fd316dec4 (patch) | |
tree | 9c272a48b7b8ec23076075d1b759e303b72b8c1a /source/ui_options.c | |
parent | ed3ec7e3ac0d43c1bfa3b56424ced4009cd0239b (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_options.c')
-rw-r--r-- | source/ui_options.c | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/source/ui_options.c b/source/ui_options.c index 9420997..9b11659 100644 --- a/source/ui_options.c +++ b/source/ui_options.c @@ -29,22 +29,20 @@ OPTIONS MENU ======================================================================= */ -#define OPTIONS_ITEMS 16 +#define OPTIONS_ITEMS 7 -static const char *names[] = { +static const char names[][16] = { "Player Setup", "Keys", "Weapons", - "Game", +// "Game", "Video", - "Sound", +// "Sound", "Network", "Address Book", "Credits" }; -static const int numItems = sizeof( names ) / sizeof( names[0] ); - typedef struct optionsMenu_s { menuFrameWork_t menu; menuAction_t actions[OPTIONS_ITEMS]; @@ -67,22 +65,22 @@ static int OptionsMenu_Callback( int id, int msg, int param ) { case 2: M_Menu_Weapons_f(); break; + /*case 3: + M_Menu_Interface_f(); + break;*/ case 3: - //M_Menu_Interface_f(); - break; - case 4: M_Menu_Video_f(); break; - case 5: - //M_Menu_Sound_f(); - break; - case 6: + /*case 5: + M_Menu_Sound_f(); + break;*/ + case 4: M_Menu_Network_f(); break; - case 7: + case 5: M_Menu_AddressBook_f(); break; - case 8: + case 6: M_Menu_Credits_f(); break; } @@ -101,13 +99,13 @@ static void OptionsMenu_Init( void ) { int x, y; x = uis.glconfig.vidWidth / 2; - y = ( uis.glconfig.vidHeight - MENU_SPACING * numItems ) / 2; + y = ( uis.glconfig.vidHeight - MENU_SPACING * OPTIONS_ITEMS ) / 2; memset( &m_options, 0, sizeof( m_options ) ); m_options.menu.callback = OptionsMenu_Callback; - for( i = 0; i < numItems; i++ ) { + for( i = 0; i < OPTIONS_ITEMS; i++ ) { m_options.actions[i].generic.type = MTYPE_ACTION; m_options.actions[i].generic.id = i; m_options.actions[i].generic.name = names[i]; |