X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=3196704612b8a65bb2d9704af6b5daf08fa70cf3;hb=f9a30d8f0565691424cc9fd2643a50a176dae903;hp=292f04afcaab32c8d40033b1c30270c0196073fd;hpb=2357c391b4a587709627cc30316734b3c83c8134;p=rocksndiamonds.git diff --git a/src/screens.c b/src/screens.c index 292f04af..31967046 100644 --- a/src/screens.c +++ b/src/screens.c @@ -44,6 +44,7 @@ void DrawHeadline() void DrawMainMenu() { int i; + char *name_text = (!options.network && setup.team_mode ? "Team:" : "Name:"); FadeSounds(); GetPlayerConfig(); @@ -51,7 +52,7 @@ void DrawMainMenu() ClearWindow(); DrawHeadline(); - DrawText(SX + 32, SY + 2*32, "Name:", FS_BIG, FC_GREEN); + DrawText(SX + 32, SY + 2*32, name_text, FS_BIG, FC_GREEN); DrawText(SX + 6*32, SY + 2*32, setup.alias_name, FS_BIG, FC_RED); DrawText(SX + 32, SY + 3*32, "Level:", FS_BIG, FC_GREEN); DrawText(SX + 11*32, SY + 3*32, int2str(level_nr,3), FS_BIG, @@ -250,8 +251,7 @@ void HandleMainMenu(int mx, int my, int dx, int dy, int button) game_status = EXITGAME; } - if (!button) - redraw = TRUE; + redraw = TRUE; } } BackToFront(); @@ -905,9 +905,9 @@ void DrawSetupScreen() { &setup.fading, "Fading:" }, { &setup.quick_doors, "Quick Doors:" }, { &setup.autorecord, "Auto-Record:" }, + { &setup.team_mode, "Team-Mode:" }, { NULL, "Input Devices" }, { NULL, "" }, - { NULL, "" }, { NULL, "Exit" }, { NULL, "Save and exit" } }; @@ -1099,6 +1099,14 @@ void HandleSetupScreen(int mx, int my, int dx, int dy, int button) setup.autorecord = !setup.autorecord; } else if (y==13) + { + if (setup.team_mode) + DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE); + else + DrawText(SX+14*32, SY+yy*32,"on ",FS_BIG,FC_YELLOW); + setup.team_mode = !setup.team_mode; + } + else if (y==14) { game_status = SETUPINPUT; DrawSetupInputScreen();