Add shadows on/off GUI option in graphics options menu.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2301 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2007-07-31 20:44:24 +00:00
parent f999c48d46
commit d90e50c0b1
2 changed files with 28 additions and 3 deletions

View File

@ -773,7 +773,19 @@ BOOL startGameOptions2Menu(void)
}
else
{
addTextButton(FRONTEND_SUBTITLES_R, FRONTEND_POS6M-55,FRONTEND_POS5Y, _("Off"),TRUE,TRUE);
addTextButton(FRONTEND_SUBTITLES_R, FRONTEND_POS5M - 55, FRONTEND_POS5Y, _("Off"), TRUE, TRUE);
}
////////////
//shadows
addTextButton(FRONTEND_SHADOWS, FRONTEND_POS7X - 35, FRONTEND_POS7Y, _("Shadows"), TRUE, FALSE);
if (getDrawShadows())
{
addTextButton(FRONTEND_SHADOWS_R, FRONTEND_POS7M - 55, FRONTEND_POS7Y, _("On"), TRUE, FALSE);
}
else
{ // not flipped
addTextButton(FRONTEND_SHADOWS_R, FRONTEND_POS7M - 55, FRONTEND_POS7Y, _("Off"), TRUE, FALSE);
}
////////////
@ -857,6 +869,19 @@ BOOL runGameOptions2Menu(void)
}
break;
case FRONTEND_SHADOWS:
case FRONTEND_SHADOWS_R:
setDrawShadows(!getDrawShadows());
if (getDrawShadows())
{
widgSetString(psWScreen, FRONTEND_SHADOWS_R, _("On"));
}
else
{
widgSetString(psWScreen, FRONTEND_SHADOWS_R, _("Off"));
}
break;
case FRONTEND_SEQUENCE:
case FRONTEND_SEQUENCE_R:
if( war_GetSeqMode() == SEQ_FULL )

View File

@ -238,8 +238,8 @@ BOOL runGameOptions3Menu (void);
#define FRONTEND_EFFECTS_R 20068
#define FRONTEND_SUBTITLES 20069
#define FRONTEND_SUBTITLES_R 20070
#define FRONTEND_TRANSPARENCY 20071
#define FRONTEND_TRANSPARENCY_R 20072
#define FRONTEND_SHADOWS 20071
#define FRONTEND_SHADOWS_R 20072
#define FRONTEND_COLOUR 20073