Add an option for the rotating radar.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@11284 4a71c877-e1ca-e34f-864e-861f7616d084
master
Christian Ohm 2010-07-25 15:28:21 +00:00 committed by Git SVN Gateway
parent 6957b04072
commit f63667e4b5
3 changed files with 14 additions and 0 deletions

View File

@ -740,6 +740,7 @@ BOOL saveConfig(void)
setWarzoneKeyNumeric("trapCursor", war_GetTrapCursor());
setWarzoneKeyNumeric("vsync", war_GetVsync());
setWarzoneKeyNumeric("textureSize", getTextureSize());
setWarzoneKeyNumeric("rotateRadar", rotateRadar);
setWarzoneKeyNumeric("PauseOnFocusLoss", war_GetPauseOnFocusLoss());
setWarzoneKeyNumeric("ColouredCursor", war_GetColouredCursor());
setWarzoneKeyString("masterserver_name", NETgetMasterserverName());

View File

@ -50,6 +50,7 @@
#include "multiint.h"
#include "multilimit.h"
#include "multiplay.h"
#include "radar.h"
#include "seqdisp.h"
#include "texture.h"
#include "version.h"
@ -1176,6 +1177,10 @@ static BOOL startGameOptionsMenu(void)
widgSetButtonState(psWScreen, FE_P0 + playercolor, WBUT_LOCK);
addTextButton(FRONTEND_COLOUR, FRONTEND_POS4X-25, FRONTEND_POS4Y, _("Unit Colour"), 0);
// Radar
addTextButton(FRONTEND_RADAR, FRONTEND_POS6X - 25, FRONTEND_POS6Y, _("Radar"), 0);
addTextButton(FRONTEND_RADAR_R, FRONTEND_POS6M - 25, FRONTEND_POS6Y, rotateRadar ? _("Rotating") : _("Fixed"), 0);
// Quit
addMultiBut(psWScreen, FRONTEND_BOTFORM, FRONTEND_QUIT, 10, 10, 30, 29, P_("menu", "Return"), IMAGE_RETURN, IMAGE_RETURN_HI, IMAGE_RETURN_HI);
@ -1220,6 +1225,12 @@ BOOL runGameOptionsMenu(void)
break;
}
break;
case FRONTEND_RADAR_R:
rotateRadar = !rotateRadar;
widgSetString(psWScreen, FRONTEND_RADAR_R, rotateRadar ? _("Rotating") : _("Fixed"));
break;
case FRONTEND_SCROLLSPEED:
break;

View File

@ -187,6 +187,8 @@ enum
FRONTEND_GAMEOPTIONS = 21000, // Game Options menu
FRONTEND_LANGUAGE,
FRONTEND_LANGUAGE_R,
FRONTEND_RADAR,
FRONTEND_RADAR_R,
FRONTEND_COLOUR,
FRONTEND_DIFFICULTY,
FRONTEND_DIFFICULTY_R,