src/tron/gMenus.cpp File Reference

#include "gMenus.h"
#include "ePlayer.h"
#include "rScreen.h"
#include "rTexture.h"
#include "nConfig.h"
#include "rConsole.h"
#include "tToDo.h"
#include "rGL.h"
#include "eTimer.h"
#include "eFloor.h"
#include "rRender.h"
#include "rModel.h"
#include "gGame.h"
#include "gCycle.h"
#include "tRecorder.h"
#include "rSysdep.h"
#include <sstream>
#include <set>

Include dependency graph for gMenus.cpp:

Go to the source code of this file.

Classes

class  ArmageTron_feature_menuitem
class  ArmageTron_texmode_menuitem
class  gResMenEntry
class  gAutoCompleterConsole
class  gMemuItemConsole
 Handles the console prompt. More...
class  ArmageTron_viewport_menuitem
class  ArmageTronPlayer_to_viewport_menuitem
class  ArmageTron_color_menuitem

Functions

static void sg_ScreenModeMenu ()
static
uMenuItemStringWithHistory::history_t
sg_consoleHistory ()
bool operator< (rScreenSize const &a, rScreenSize const &b)
 tCONFIG_ENUM (rSysDep::rSwapMode)
void do_con ()
void sg_ConsoleInput ()
void Render (int)
void sg_PlayerMenu (int Player)
void sg_PlayerMenu ()
void viewport_menu_x (void)
static bool screenshot_func (REAL x)
static bool con_func (REAL x)
static bool toggle_fullscreen_func (REAL x)

Variables

static tConfItem< int > tm0 ("TEXTURE_MODE_0", rTextureGroups::TextureMode[0])
static tConfItem< int > tm1 ("TEXTURE_MODE_1", rTextureGroups::TextureMode[1])
static tConfItem< int > tm2 ("TEXTURE_MODE_2", rTextureGroups::TextureMode[2])
static tConfItem< int > tm3 ("TEXTURE_MODE_3", rTextureGroups::TextureMode[3])
uMenu sg_screenMenu ("$display_settings_menu")
uMenu screen_menu_detail ("$detail_settings_menu")
uMenu screen_menu_tweaks ("$performance_tweaks_menu")
uMenu screen_menu_prefs ("$preferences_menu")
static tConfItemLine c_ext ("GL_EXTENSIONS", gl_extensions)
static tConfItemLine c_ver ("GL_VERSION", gl_version)
static tConfItemLine c_rEnd ("GL_RENDERER", gl_renderer)
static tConfItemLine c_vEnd ("GL_VENDOR", gl_vendor)
static int sg_consoleHistoryMaxSize = 100
static tSettingItem< int > sg_consoleHistoryMaxSizeConf ("HISTORY_SIZE_CONSOLE", sg_consoleHistoryMaxSize)
static tConfItem< bool > ab ("ALPHA_BLEND", sr_alphaBlend)
static tConfItem< bool > ss ("SMOOTH_SHADING", sr_smoothShading)
static tConfItem< bool > to ("TEXT_OUT", sr_textOut)
static tConfItem< bool > fps ("SHOW_FPS", sr_FPSOut)
static tConfItem< int > fm ("FLOOR_MIRROR", sr_floorMirror)
static tConfItem< int > fd ("FLOOR_DETAIL", sr_floorDetail)
static tConfItem< bool > hr ("HIGH_RIM", sr_highRim)
static tConfItem< bool > dt ("DITHER", sr_dither)
static tConfItem< bool > us ("UPPER_SKY", sr_upperSky)
static tConfItem< bool > ls ("LOWER_SKY", sr_lowerSky)
static tConfItem< bool > wos ("SKY_WOBBLE", sr_skyWobble)
static tConfItem< bool > ip ("INFINITY_PLANE", sr_infinityPlane)
bool sg_axesIndicator
static tConfItem< bool > lm ("LAG_O_METER", sr_laggometer)
static tConfItem< bool > ai ("AXES_INDICATOR", sg_axesIndicator)
static tConfItem< bool > po ("PREDICT_OBJECTS", sr_predictObjects)
static tConfItem< bool > t32 ("TEXTURES_HI", sr_texturesTruecolor)
static tConfItem< bool > kwa ("KEEP_WINDOW_ACTIVE", sr_keepWindowActive)
static uSelectEntry< int > mfma (mfm,"$detail_floor_mirror_off_text","$detail_floor_mirror_off_help", rMIRROR_OFF)
static uSelectEntry< int > mfmb (mfm,"$detail_floor_mirror_obj_text","$detail_floor_mirror_obj_help", rMIRROR_OBJECTS)
static uSelectEntry< int > mfmc (mfm,"$detail_floor_mirror_ow_text","$detail_floor_mirror_ow_help", rMIRROR_WALLS)
static uSelectEntry< int > mfme (mfm,"$detail_floor_mirror_ev_text","$detail_floor_mirror_ev_help", rMIRROR_ALL)
static uSelectEntry< int > mfda (mfd,"$detail_floor_no_text","$detail_floor_no_help", rFLOOR_OFF)
static uSelectEntry< int > mfdb (mfd,"$detail_floor_grid_text","$detail_floor_grid_help", rFLOOR_GRID)
static uSelectEntry< int > mfdc (mfd,"$detail_floor_tex_text","$detail_floor_tex_help", rFLOOR_TEXTURE)
static uSelectEntry< int > mfdd (mfd,"$detail_floor_2tex_text","$detail_floor_2tex_help", rFLOOR_TWOTEXTURE)
bool crash_sparks
bool white_sparks
static tConfItem< bool > cs2 ("SPARKS", crash_sparks)
static tConfItem< bool > wsp ("WHITE_SPARKS", white_sparks)
bool sg_crashExplosion
static tConfItem< bool > crexp ("EXPLOSION", sg_crashExplosion)
bool sg_crashExplosionHud
static tConfItem< bool > crexph ("EXPLOSION_HUD", sg_crashExplosionHud)
static uSelectEntry
< rDisplayListUsage
dl_off (dl,"$tweaks_displaylists_off_text","$tweaks_displaylists_off_help", rDisplayList_Off)
static uSelectEntry
< rDisplayListUsage
dl_cac (dl,"$tweaks_displaylists_cac_text","$tweaks_displaylists_cac_help", rDisplayList_CAC)
static uSelectEntry
< rDisplayListUsage
dl_cae (dl,"$tweaks_displaylists_cae_text","$tweaks_displaylists_cae_help", rDisplayList_CAE)
static uSelectEntry
< rSysDep::rSwapMode
swapMode_fastest (swapMode,"$swapmode_fastest_text","$swapmode_fastest_help", rSysDep::rSwap_Fastest)
static uSelectEntry
< rSysDep::rSwapMode
swapMode_glFlush (swapMode,"$swapmode_glflush_text","$swapmode_glflush_help", rSysDep::rSwap_glFlush)
static uSelectEntry
< rSysDep::rSwapMode
swapMode_glFinish (swapMode,"$swapmode_glfinish_text","$swapmode_glfinish_help", rSysDep::rSwap_glFinish)
static tConfItem
< rSysDep::rSwapMode
swapModeCI ("SWAP_MODE", rSysDep::swapMode_)
static tConfItem< bool > WRAP ("WRAP_MENU", uMenu::wrap)
AA_VOIDFUNC viewport_menu_x
static uActionGlobal con_input ("CONSOLE_INPUT")
static uActionGlobal screenshot ("SCREENSHOT")
static uActionGlobal togglefullscreen ("TOGGLE_FULLSCREEN")


Function Documentation

static bool con_func ( REAL  x  )  [static]

Definition at line 1133 of file gMenus.cpp.

References sg_ConsoleInput().

01133                             {
01134     if (x>0){
01135         sg_ConsoleInput();
01136     }
01137 
01138     return true;
01139 }

Here is the call graph for this function:

void do_con (  ) 

Definition at line 643 of file gMenus.cpp.

References c, ePlayerNetID::ChatFlags_Console, uMenu::Enter(), tConfItemBase::GetCommands(), se_ChatState(), se_SetShowScoresAuto(), uMenu::SetBot(), uMenu::SetCenter(), rConsole::SetHeight(), uMenu::SetTop(), and sr_con.

Referenced by sg_ConsoleInput().

00643              {
00644     se_ChatState( ePlayerNetID::ChatFlags_Console, true );
00645     sr_con.SetHeight(20,false);
00646     se_SetShowScoresAuto(false);
00647     tString c;
00648 
00649     uMenu con_menu("",false);
00650     std::deque<tString> commands;
00651     commands = tConfItemBase::GetCommands();
00652     gAutoCompleterConsole completer(commands);
00653     gMemuItemConsole s(&con_menu,c,&completer);
00654     con_menu.SetCenter(-.75);
00655     con_menu.SetBot(-2);
00656     con_menu.SetTop(-.7);
00657     con_menu.Enter();
00658 
00659     se_ChatState( ePlayerNetID::ChatFlags_Console, false );
00660 
00661     se_SetShowScoresAuto(true);
00662     sr_con.SetHeight(7,false);
00663 }

Here is the call graph for this function:

Here is the caller graph for this function:

bool operator< ( rScreenSize const &  a,
rScreenSize const &  b 
)

Definition at line 186 of file gMenus.cpp.

References rScreenSize::Compare().

00187 {
00188     return a.Compare(b) < 0;
00189 }

Here is the call graph for this function:

void Render ( int   ) 

static bool screenshot_func ( REAL  x  )  [static]

Definition at line 1123 of file gMenus.cpp.

References sr_screenshotIsPlanned.

01123                                    {
01124     if (x>0){
01125 #ifndef DEDICATED
01126         sr_screenshotIsPlanned=true;
01127 #endif
01128     }
01129 
01130     return true;
01131 }

static uMenuItemStringWithHistory::history_t& sg_consoleHistory (  )  [static]

Definition at line 81 of file gMenus.cpp.

00081                                                                 {
00082     static uMenuItemStringWithHistory::history_t instance("console_history.txt");
00083     return instance;
00084 }

void sg_ConsoleInput (  ) 

Definition at line 666 of file gMenus.cpp.

References do_con(), and st_ToDo().

Referenced by con_func().

00666                       {
00667 #ifndef DEDICATED
00668     st_ToDo(&do_con);
00669 #endif
00670 }

Here is the call graph for this function:

Here is the caller graph for this function:

void sg_PlayerMenu (  ) 

Definition at line 1055 of file gMenus.cpp.

References uMenu::Enter(), MAX_PLAYERS, MAX_VIEWPORTS, tOutput::SetTemplateParameter(), and sg_PlayerMenu().

01055                     {
01056     uMenu Player_men("$player_mainmenu_text");
01057 
01058 
01059     uMenuItemFunction vp_selec(&Player_men,
01060                                "$viewport_assign_text",
01061                                "$viewport_assign_help",
01062                                &viewport_menu_x);
01063 
01064     ArmageTron_viewport_menuitem vp(&Player_men);
01065     uMenuItemFunctionInt  *names[MAX_PLAYERS];
01066 
01067     int i;
01068 
01069     for(i=MAX_PLAYERS-1;i>=0;i--){
01070         tOutput title;
01071         title.SetTemplateParameter(1, i+1);
01072         title << "$player_menu_text";
01073 
01074         tOutput help;
01075         help.SetTemplateParameter(1, i+1);
01076         help << "$player_menu_help";
01077 
01078         names[i]=new uMenuItemFunctionInt(&Player_men,
01079                                           title,
01080                                           help,
01081                                           sg_PlayerMenu,i);
01082     }
01083 
01084 
01085     Player_men.Enter();
01086 
01087     //  ePlayerNetID::Update();
01088     for(i=MAX_VIEWPORTS-1;i>=0;i--){
01089         delete names[i];
01090     }
01091 }

Here is the call graph for this function:

void sg_PlayerMenu ( int  Player  ) 

Definition at line 829 of file gMenus.cpp.

References ePlayer::allowCam, ePlayer::autoLogin, ePlayer::autoSwitchIncam, CAMERA_CUSTOM, CAMERA_FOLLOW, CAMERA_FREE, CAMERA_IN, CAMERA_MER, CAMERA_SERVER_CUSTOM, CAMERA_SMART, ePlayer::centerIncamOnTurn, rTextField::COLOR_IGNORE, uMenu::Enter(), ePlayer::favoriteNumberOfPlayersPerTeam, G, ePlayer::globalID, ePlayer::instantChatString, MAX_INSTANT_CHAT, ePlayer::name, ePlayer::nameTeamAfterMe, uMenuItemSelection< T >::NewChoice(), ePlayer::PlayerConfig(), ePlayer::rgb, se_SpamMaxLen, ePlayer::SendAuthNames(), uMenu::SetCenter(), uMenuItemString::SetColorMode(), tOutput::SetTemplateParameter(), ePlayer::smartCustomGlance, ePlayer::spectate, ePlayer::startCamera, ePlayer::startFOV, ePlayer::stealth, su_InputConfig(), su_InputConfigCamera(), nVersionFeature::Supported(), ePlayer::teamname, uMenuItemString::uMenuItemString(), ePlayerNetID::Update(), and ePlayer::wobbleIncam.

Referenced by MainMenu(), sg_PlayerMenu(), and viewport_menu_x().

00829                               {
00830     tOutput name;
00831     name.SetTemplateParameter(1, Player+1);
00832 
00833     name << "$player_menu_text";
00834 
00835 
00836     uMenu playerMenu(name);
00837 
00838     uMenu camera_menu("$player_camera_text");
00839     uMenu chat_menu("$player_chat_text");
00840     //  name.Clear();
00841     chat_menu.SetCenter(-.5);
00842 
00843     uMenuItemString *ic[MAX_INSTANT_CHAT];
00844 
00845     ePlayer *p = ePlayer::PlayerConfig(Player);
00846     if (!p)
00847         return;
00848 
00849     int i;
00850     for(i=MAX_INSTANT_CHAT-1;i>=0;i--){
00851         tOutput name;
00852         name.SetTemplateParameter(1, i+1);
00853         name << "$player_chat_chat";
00854         ic[i]=new uMenuItemString
00855               (&chat_menu,name,
00856                "$player_chat_chat_help",
00857                p->instantChatString[i], se_SpamMaxLen);
00858     }
00859 
00860     uMenuItemToggle al
00861     (&playerMenu,"$player_autologin_text",
00862      "$player_autologin_help",
00863      p->autoLogin);
00864 
00865     uMenuItemString gid(&playerMenu,
00866                       "$player_global_id_text",
00867                       "$player_global_id_help",
00868                       p->globalID, 400);
00869     gid.SetColorMode( rTextField::COLOR_IGNORE );
00870 
00871     uMenuItemToggle st
00872     (&playerMenu,"$player_stealth_text",
00873      "$player_stealth_help",
00874      p->stealth);
00875 
00876     uMenuItemToggle sp
00877     (&playerMenu,"$player_spectator_text",
00878      "$player_spectator_help",
00879      p->spectate);
00880 
00881     uMenuItemToggle pnt
00882     (&playerMenu,"$player_name_team_text",
00883      "$player_name_team_help",
00884      p->nameTeamAfterMe);
00885 
00886     uMenuItemInt npt
00887     (&playerMenu,"$player_num_per_team_text",
00888      "$player_num_per_team_help",
00889      p->favoriteNumberOfPlayersPerTeam, 1, 16, 1);
00890 
00891     ArmageTron_color_menuitem B(&playerMenu,"$player_blue_text",
00892                                 "$player_blue_help",
00893                                 p->rgb,2);
00894 
00895     ArmageTron_color_menuitem G(&playerMenu,"$player_green_text",
00896                                 "$player_green_help",
00897                                 p->rgb,1);
00898 
00899     ArmageTron_color_menuitem R(&playerMenu,"$player_red_text",
00900                                 "$player_red_help",
00901                                 p->rgb,0);
00902 
00903 
00904 
00905     uMenuItemSubmenu chm(&playerMenu,&chat_menu,
00906                          "$player_chat_chat_help");
00907 
00908     uMenuItemSubmenu cm(&playerMenu,&camera_menu,
00909                         "$player_camera_help");
00910 
00911     uMenuItemFunctionInt icc(&playerMenu,"$player_camera_input_text",
00912                              "$player_camera_input_help",
00913                              &su_InputConfigCamera,Player);
00914 
00915     uMenuItemFunctionInt inc(&playerMenu,"$player_input_text",
00916                              "$player_input_help",
00917                              &su_InputConfig,Player);
00918 
00919 
00920     camera_menu.SetCenter(.3);
00921 
00922     uMenuItemToggle cam_glance
00923     (&camera_menu,
00924      "$camera_smart_glance_custom_text",
00925      "$camera_smart_glance_custom_help",
00926      p->smartCustomGlance);
00927 
00928     uMenuItemToggle cis(&camera_menu,
00929                         "$player_camera_autoin_text",
00930                         "$player_camera_autoin_help",
00931                         p->autoSwitchIncam);
00932 
00933     uMenuItemToggle cim(&camera_menu,
00934                         "$player_camera_wobble_text",
00935                         "$player_camera_wobble_help",
00936                         p->wobbleIncam);
00937 
00938     uMenuItemToggle cic(&camera_menu,
00939                         "$player_camera_center_int_text",
00940                         "$player_camera_center_int_help",
00941                         p->centerIncamOnTurn);
00942 
00943     uMenuItemToggle al_s
00944     (&camera_menu,
00945      "$player_camera_smartcam_text",
00946      "$player_camera_smartcam_help",
00947      p->allowCam[CAMERA_SMART]);
00948 
00949     uMenuItemToggle al_f
00950     (&camera_menu,
00951      "$player_camera_fixed_text",
00952      "$player_camera_fixed_help",
00953      p->allowCam[CAMERA_FOLLOW]);
00954 
00955 
00956     uMenuItemToggle al_fr
00957     (&camera_menu,
00958      "$player_camera_free_text",
00959      "$player_camera_free_help",
00960      p->allowCam[CAMERA_FREE]);
00961 
00962     uMenuItemToggle al_c
00963     (&camera_menu,
00964      "$player_camera_custom_text",
00965      "$player_camera_custom_help",
00966      p->allowCam[CAMERA_CUSTOM]);
00967 
00968     uMenuItemToggle al_sc
00969     (&camera_menu,
00970      "$player_camera_server_custom_text",
00971      "$player_camera_server_custom_help",
00972      p->allowCam[CAMERA_SERVER_CUSTOM]);
00973 
00974     uMenuItemToggle al_i
00975     (&camera_menu,
00976      "$player_camera_incam_text",
00977      "$player_camera_incam_help",
00978      p->allowCam[CAMERA_IN]);
00979 
00980     uMenuItemToggle al_m
00981     (&camera_menu,
00982      "$player_camera_mercam_text",
00983      "$player_camera_mercam_help",
00984      p->allowCam[CAMERA_MER]);
00985 
00986     uMenuItemInt cam_fov
00987     (&camera_menu,
00988      "$player_camera_fov_text",
00989      "$player_camera_fov_help",
00990      p->startFOV,30,120,5);
00991 
00992     uMenuItemSelection<eCamMode> cam_s
00993     (&camera_menu,
00994      "$player_camera_initial_text",
00995      "$player_camera_initial_help",
00996      p->startCamera);
00997 
00998     cam_s.NewChoice("$player_camera_initial_scust_text","$player_camera_initial_scust_help",CAMERA_SERVER_CUSTOM);
00999     cam_s.NewChoice("$player_camera_initial_cust_text","$player_camera_initial_cust_help",CAMERA_CUSTOM);
01000     cam_s.NewChoice("$player_camera_initial_int_text","$player_camera_initial_int_help",CAMERA_IN);
01001     cam_s.NewChoice("$player_camera_initial_smrt_text","$player_camera_initial_smrt_help",CAMERA_SMART);
01002     cam_s.NewChoice("$player_camera_initial_ext_text","$player_camera_initial_ext_help",CAMERA_FOLLOW);
01003     cam_s.NewChoice("$player_camera_initial_free_text","$player_camera_initial_free_help",CAMERA_FREE);
01004     cam_s.NewChoice("$player_camera_initial_mer_text","$player_camera_initial_mer_help",CAMERA_MER);
01005 
01006     uMenuItemString tn(&playerMenu,
01007                        "$player_teamname_text",
01008                        "$player_teamname_help",
01009                        p->teamname, 16);
01010 
01011     uMenuItemString n(&playerMenu,
01012                       "$player_name_text",
01013                       "$player_name_help",
01014                       p->name, 16);
01015 
01016     playerMenu.Enter();
01017 
01018     for(i=MAX_INSTANT_CHAT-1; i>=0; i--)
01019         delete ic[i];
01020 
01021 
01022     // request network synchronisation if the server can handle it
01023     static nVersionFeature inGameRenames( 5 );
01024     if ( inGameRenames.Supported() )
01025     {
01026         ePlayerNetID::Update();
01027         ePlayer::SendAuthNames();
01028     }
01029 
01030     /*
01031     for (i=MAX_PLAYERS-1; i>=0; i--)
01032     {
01033         if (ePlayer::PlayerIsInGame(i))
01034         {
01035             ePlayer* p = ePlayer::PlayerConfig(i);
01036             if (p->netPlayer)
01037                 p->netPlayer->RequestSync();
01038         }
01039     }
01040     */
01041 }

Here is the call graph for this function:

Here is the caller graph for this function:

static void sg_ScreenModeMenu (  )  [static]

Definition at line 291 of file gMenus.cpp.

References ArmageTron_ColorDepth_16, ArmageTron_ColorDepth_32, ArmageTron_ColorDepth_Desktop, ArmageTron_VSync_Default, ArmageTron_VSync_MotionBlur, ArmageTron_VSync_Off, ArmageTron_VSync_On, rScreenSettings::checkErrors, rScreenSettings::colorDepth, currentScreensetting, uMenu::Enter(), rScreenSettings::fullscreen, rScreenSettings::res, sr_keepWindowActive, sr_ReinitDisplay(), su_mouseGrab, rScreenSettings::useSDL, rScreenSettings::vSync, rScreenSettings::windowSize, winsize, and rScreenSettings::zDepth.

00292 {
00293     uMenu screen_menu_mode("$screen_mode_menu");
00294 
00295     uMenuItemFunction appl
00296     (&screen_menu_mode,
00297      "$screen_apply_changes_text",
00298      "$screen_apply_changes_help",
00299      &sr_ReinitDisplay);
00300 
00301     uMenuItemToggle kwa_t(
00302         &screen_menu_mode,
00303         "$screen_keep_window_active_text",
00304         "$screen_keep_window_active_help",
00305         sr_keepWindowActive);
00306 
00307     uMenuItemToggle ie_t
00308     (&screen_menu_mode,
00309      "$screen_check_errors_text",
00310      "$screen_check_errors_help",
00311      currentScreensetting.checkErrors);
00312 
00313 
00314 #ifdef SDL_OPENGL
00315 #ifdef DIRTY
00316     uMenuItemToggle sdl_t
00317     (&screen_menu_mode,
00318      "$screen_use_sdl_text",
00319      "$screen_use_sdl_help",
00320      currentScreensetting.useSDL);
00321 #endif // dirty
00322 
00323 #if SDL_VERSION_ATLEAST(1, 2, 10)
00324     uMenuItemSelection<rVSync> zvs_t
00325     (&screen_menu_mode,
00326      "$screen_vsync_text",
00327      "$screen_vsync_help",
00328      currentScreensetting.vSync);
00329 
00330     uSelectEntry<rVSync> zvs_on(zvs_t,"$screen_vsync_on_text","$screen_vsync_on_help",ArmageTron_VSync_On);
00331     uSelectEntry<rVSync> zvs_d(zvs_t,"$screen_vsync_default_text","$screen_vsync_default_help",ArmageTron_VSync_Default);
00332     uSelectEntry<rVSync> zvs_off(zvs_t,"$screen_vsync_off_text","$screen_vsync_off_help",ArmageTron_VSync_Off);
00333 #ifdef HAVE_GLEW
00334     uSelectEntry<rVSync> zvs_blur(zvs_t,"$screen_vsync_motionblur_text","$screen_vsync_motionblur_help",ArmageTron_VSync_MotionBlur);
00335 #endif // HAVE_GLEW
00336 #endif // SDL_GL_SWAP_CONTROL
00337 #endif // SDL_OPENGL
00338 
00339     uMenuItemToggle gm(
00340         &screen_menu_mode,
00341         "$screen_grab_mouse_text",
00342         "$screen_grab_mouse_help",
00343         su_mouseGrab);
00344 
00345     uMenuItemSelection<rColorDepth> zd_t
00346     (&screen_menu_mode,
00347      "$screen_zdepth_text",
00348      "$screen_zdepth_help",
00349      currentScreensetting.zDepth);
00350 
00351     uSelectEntry<rColorDepth> zd_16(zd_t,"$screen_zdepth_16_text","$screen_zdepth_16_help",ArmageTron_ColorDepth_16);
00352     uSelectEntry<rColorDepth> zd_d(zd_t,"$screen_zdepth_desk_text","$screen_zdepth_desk_help",ArmageTron_ColorDepth_Desktop);
00353     uSelectEntry<rColorDepth> zd_32(zd_t,"$screen_zdepth_32_text","$screen_zdepth_32_help",ArmageTron_ColorDepth_32);
00354 
00355     uMenuItemSelection<rColorDepth> cd_t
00356     (&screen_menu_mode,
00357      "$screen_colordepth_text",
00358      "$screen_colordepth_help",
00359      currentScreensetting.colorDepth);
00360 
00361     uSelectEntry<rColorDepth> cd_16(cd_t,"$screen_colordepth_16_text","$screen_colordepth_16_help",ArmageTron_ColorDepth_16);
00362     uSelectEntry<rColorDepth> cd_d(cd_t,"$screen_colordepth_desk_text","$screen_colordepth_desk_help",ArmageTron_ColorDepth_Desktop);
00363     uSelectEntry<rColorDepth> cd_32(cd_t,"$screen_colordepth_32_text","$screen_colordepth_32_help",ArmageTron_ColorDepth_32);
00364 
00365     uMenuItemToggle fs_t
00366     (&screen_menu_mode,
00367      "$screen_fullscreen_text",
00368      "$screen_fullscreen_help",
00369      currentScreensetting.fullscreen);
00370 
00371 
00372     gResMenEntry res( screen_menu_mode, currentScreensetting.res, "$screen_resolution_text", "$screen_resolution_help", false );
00373     gResMenEntry winsize( screen_menu_mode, currentScreensetting.windowSize, "$window_size_text", "$window_size_help", true );
00374 
00375     /*
00376     uMenuItemSelection<rResolution> res_men
00377     (&screen_menu_mode,
00378      "$screen_resolution_text",
00379      "$screen_resolution_help",
00380      currentScreensetting.res);
00381 
00382 
00383     uSelectEntry<rResolution> a(res_men,"320x200","",ArmageTron_320_200);
00384      static uSelectEntry<rResolution> b(res_men,"320x240","",ArmageTron_320_240);
00385     static uSelectEntry<rResolution> c(res_men,"400x300","",ArmageTron_400_300);
00386     static uSelectEntry<rResolution> d(res_men,"512x384","",ArmageTron_512_384);
00387     static uSelectEntry<rResolution> e(res_men,"640x480","",ArmageTron_640_480);
00388     static uSelectEntry<rResolution> f(res_men,"800x600","",ArmageTron_800_600);
00389     static uSelectEntry<rResolution> g(res_men,"1024x768","",ArmageTron_1024_768);
00390     static uSelectEntry<rResolution> h(res_men,"1280x1024","",ArmageTron_1280_1024);
00391     static uSelectEntry<rResolution> i(res_men,"1600x1200","",ArmageTron_1600_1200);
00392     static uSelectEntry<rResolution> j(res_men,"2048x1572","",ArmageTron_2048_1572);
00393     static uSelectEntry<rResolution> jj(res_men,
00394                                     "$screen_custom_text",
00395                                     "$screen_custom_help"
00396                                     ,ArmageTron_Custom);
00397     */
00398 
00399     screen_menu_mode.Enter();
00400 }

Here is the call graph for this function:

tCONFIG_ENUM ( rSysDep::rSwapMode   ) 

static bool toggle_fullscreen_func ( REAL  x  )  [static]

Definition at line 1141 of file gMenus.cpp.

References currentScreensetting, rScreenSettings::fullscreen, tRecorderBase::IsPlayingBack(), and sr_ReinitDisplay().

01142 {
01143 #ifndef DEDICATED
01144 #ifdef DEBUG
01145     // don't toggle fullscreen while playing back in debug mode, that's annoying
01146     if ( tRecorder::IsPlayingBack() )
01147         return true;
01148 #endif
01149 
01150     // only do anything if the application is active (work around odd bug)
01151     if ( x > 0 && ( SDL_GetAppState() & SDL_APPACTIVE ) )
01152     {
01153         currentScreensetting.fullscreen = !currentScreensetting.fullscreen;
01154         sr_ReinitDisplay();
01155     }
01156 #endif
01157 
01158     return true;
01159 }

Here is the call graph for this function:

void viewport_menu_x ( void   ) 

Definition at line 1096 of file gMenus.cpp.

References uMenu::Enter(), MAX_VIEWPORTS, rViewportConfiguration::next_conf_num, rViewportConfiguration::s_viewportConfigurations, and sg_PlayerMenu().

01096                           {
01097     uMenu sg_PlayerMenu("$viewport_assign_text");
01098 
01099     ArmageTronPlayer_to_viewport_menuitem *select[MAX_VIEWPORTS];
01100 
01101     int i;
01102     for(i=rViewportConfiguration::s_viewportConfigurations[rViewportConfiguration::next_conf_num]->num_viewports-1;i>=0;i--){
01103         select[i]=new ArmageTronPlayer_to_viewport_menuitem(&sg_PlayerMenu,i);
01104     }
01105 
01106     // ArmageTron_viewport_menuitem vp(&sg_PlayerMenu);
01107 
01108     sg_PlayerMenu.Enter();
01109 
01110     for(i=rViewportConfiguration::s_viewportConfigurations[rViewportConfiguration::next_conf_num]->num_viewports-1;i>=0;i--){
01111         delete select[i];
01112     }
01113 }

Here is the call graph for this function:


Variable Documentation

tConfItem<bool> ab("ALPHA_BLEND", sr_alphaBlend) [static]

Referenced by cWidget::Map::ClipperCircle::Begin(), and tCoord::V().

tConfItem<bool> ai("AXES_INDICATOR", sg_axesIndicator) [static]

Referenced by gAITeam::BalanceWithAIs(), BestIQ(), gSimpleAIFactory::Create(), gAIPlayer::CycleBlocksWay(), eTeam::Enforce(), gAISensor::gAISensor(), gGame::GameLoop(), net_options(), pGetParticles(), and gAIPlayer::SetNumberOfAIs().

tConfItemLine c_ext("GL_EXTENSIONS", gl_extensions) [static]

tConfItemLine c_rEnd("GL_RENDERER", gl_renderer) [static]

tConfItemLine c_vEnd("GL_VENDOR", gl_vendor) [static]

tConfItemLine c_ver("GL_VERSION", gl_version) [static]

static uActionGlobalFunc gaf_md & con_input [static]

Definition at line 1162 of file gMenus.cpp.

bool crash_sparks

Definition at line 2416 of file gCycle.cpp.

Referenced by gCycle::TimestepCore().

tConfItem<bool> crexp("EXPLOSION", sg_crashExplosion) [static]

tConfItem<bool> crexph("EXPLOSION_HUD", sg_crashExplosionHud) [static]

tConfItem<bool> cs2("SPARKS", crash_sparks) [static]

uSelectEntry<rDisplayListUsage> dl_cac(dl,"$tweaks_displaylists_cac_text","$tweaks_displaylists_cac_help", rDisplayList_CAC) [static]

uSelectEntry<rDisplayListUsage> dl_cae(dl,"$tweaks_displaylists_cae_text","$tweaks_displaylists_cae_help", rDisplayList_CAE) [static]

uSelectEntry<rDisplayListUsage> dl_off(dl,"$tweaks_displaylists_off_text","$tweaks_displaylists_off_help", rDisplayList_Off) [static]

tConfItem<bool> dt("DITHER", sr_dither) [static]

Referenced by gGame::Analysis(), gLogo::Display(), gNetPlayerWall::IsDangerousApartFromHoles(), gCycle::PassEdge(), gNetPlayerWall::RenderBegin(), gNetPlayerWall::RenderNormal(), sn_SendPlanned1(), sn_Statistics(), gCycle::SyncFromExtrapolator(), nServerLag::TakeCredit(), tDECLARE_REFOBJ(), gBaseZoneHack::Timestep(), gZone::Timestep(), gGame::Timestep(), gCycleMovement::Timestep(), gCycle::Timestep(), and ePlayerNetID::WaitToLeaveChat().

tConfItem<int> fd("FLOOR_DETAIL", sr_floorDetail) [static]

Referenced by Delay(), and myHTTPFetch().

tConfItem<int> fm("FLOOR_MIRROR", sr_floorMirror) [static]

tConfItem<bool> fps("SHOW_FPS", sr_FPSOut) [static]

Referenced by cCockpit::cb_Framerate().

tConfItem<bool> hr("HIGH_RIM", sr_highRim) [static]

tConfItem<bool> ip("INFINITY_PLANE", sr_infinityPlane) [static]

tConfItem<bool> kwa("KEEP_WINDOW_ACTIVE", sr_keepWindowActive) [static]

tConfItem<bool> lm("LAG_O_METER", sr_laggometer) [static]

tConfItem<bool> ls("LOWER_SKY", sr_lowerSky) [static]

Referenced by eGrid::Render(), and gAIPlayer::ThinkPath().

uSelectEntry<int> mfda(mfd,"$detail_floor_no_text","$detail_floor_no_help", rFLOOR_OFF) [static]

uSelectEntry<int> mfdb(mfd,"$detail_floor_grid_text","$detail_floor_grid_help", rFLOOR_GRID) [static]

uSelectEntry<int> mfdc(mfd,"$detail_floor_tex_text","$detail_floor_tex_help", rFLOOR_TEXTURE) [static]

uSelectEntry<int> mfdd(mfd,"$detail_floor_2tex_text","$detail_floor_2tex_help", rFLOOR_TWOTEXTURE) [static]

uSelectEntry<int> mfma(mfm,"$detail_floor_mirror_off_text","$detail_floor_mirror_off_help", rMIRROR_OFF) [static]

uSelectEntry<int> mfmb(mfm,"$detail_floor_mirror_obj_text","$detail_floor_mirror_obj_help", rMIRROR_OBJECTS) [static]

uSelectEntry<int> mfmc(mfm,"$detail_floor_mirror_ow_text","$detail_floor_mirror_ow_help", rMIRROR_WALLS) [static]

uSelectEntry<int> mfme(mfm,"$detail_floor_mirror_ev_text","$detail_floor_mirror_ev_help", rMIRROR_ALL) [static]

tConfItem<bool> po("PREDICT_OBJECTS", sr_predictObjects) [static]

static uMenuItemToggle t32b & screen_menu_detail

Definition at line 404 of file gMenus.cpp.

static uMenuItemToggle cs & screen_menu_prefs

Definition at line 494 of file gMenus.cpp.

uMenuItemSelection< rSysDep::rSwapMode > swapMode & screen_menu_tweaks

Definition at line 538 of file gMenus.cpp.

static uActionGlobalFunc gaf_ss & screenshot [static]

Definition at line 1161 of file gMenus.cpp.

bool sg_axesIndicator

Definition at line 3795 of file gCycle.cpp.

Referenced by gCycle::Render().

int sg_consoleHistoryMaxSize = 100 [static]

Definition at line 87 of file gMenus.cpp.

tSettingItem< int > sg_consoleHistoryMaxSizeConf("HISTORY_SIZE_CONSOLE", sg_consoleHistoryMaxSize) [static]

bool sg_crashExplosion

Definition at line 360 of file gExplosion.cpp.

Referenced by gExplosion::Render().

bool sg_crashExplosionHud

Definition at line 361 of file gExplosion.cpp.

Referenced by gExplosion::Render2D().

static uMenuItemFunction smm & sg_screenMenu

Definition at line 56 of file gMenus.cpp.

Referenced by MainMenu().

tConfItem<bool> ss("SMOOTH_SHADING", sr_smoothShading) [static]

uSelectEntry<rSysDep::rSwapMode> swapMode_fastest(swapMode,"$swapmode_fastest_text","$swapmode_fastest_help", rSysDep::rSwap_Fastest) [static]

uSelectEntry<rSysDep::rSwapMode> swapMode_glFinish(swapMode,"$swapmode_glfinish_text","$swapmode_glfinish_help", rSysDep::rSwap_glFinish) [static]

uSelectEntry<rSysDep::rSwapMode> swapMode_glFlush(swapMode,"$swapmode_glflush_text","$swapmode_glflush_help", rSysDep::rSwap_glFlush) [static]

tConfItem< rSysDep::rSwapMode > swapModeCI("SWAP_MODE", rSysDep::swapMode_) [static]

tConfItem<bool> t32("TEXTURES_HI", sr_texturesTruecolor) [static]

tConfItem<int> tm0("TEXTURE_MODE_0", rTextureGroups::TextureMode[0]) [static]

tConfItem<int> tm1("TEXTURE_MODE_1", rTextureGroups::TextureMode[1]) [static]

tConfItem<int> tm2("TEXTURE_MODE_2", rTextureGroups::TextureMode[2]) [static]

tConfItem<int> tm3("TEXTURE_MODE_3", rTextureGroups::TextureMode[3]) [static]

tConfItem<bool> to("TEXT_OUT", sr_textOut) [static]

Referenced by gServerBrowser::BrowseLAN(), gServerBrowser::BrowseSpecialMaster(), and ConnectToServerCore().

static uActionGlobalFunc gaf_tf & togglefullscreen [static]

Definition at line 1163 of file gMenus.cpp.

tConfItem<bool> us("UPPER_SKY", sr_upperSky) [static]

Referenced by PasswordCallback(), and eGrid::Render().

AA_VOIDFUNC viewport_menu_x

Definition at line 1044 of file gMenus.cpp.

bool white_sparks

Definition at line 37 of file gSparks.cpp.

Referenced by gSpark::Render().

tConfItem<bool> wos("SKY_WOBBLE", sr_skyWobble) [static]

tConfItem<bool> WRAP("WRAP_MENU", uMenu::wrap) [static]

tConfItem<bool> wsp("WHITE_SPARKS", white_sparks) [static]


Generated on Sat Mar 15 23:17:36 2008 for Armagetron Advanced by  doxygen 1.5.4