Copy strings back into the C code, and make them translatable by gettext.

Thanks to Huehner for writing the script that transformed calls to strres
back into C strings.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1325 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2007-04-01 20:15:46 +00:00
parent 0de1ff1124
commit c232641119
32 changed files with 450 additions and 444 deletions

View File

@ -22,13 +22,14 @@ if test "x$LEX" != "xflex" ; then
AC_MSG_ERROR([Flex is not installed])
fi
ALL_LINGUAS="nb"
AC_GNU_SOURCE
AM_GNU_GETTEXT
AM_GNU_GETTEXT_VERSION([0.16.1])
# Check for Windows.
AC_CANONICAL_HOST
case $host_os in
mingw32)
host_os_mingw32=yes
@ -311,11 +312,19 @@ else
AC_DEFINE(WZ_NOMP3, 1, [Disable mp3 support])
fi
dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
dnl have to define it here, so that it can be used in po/Makefile.
dnl You cannot use localedir above this line or it will fail for old ac's.
if test -z "$localedir"; then
localedir="$datadir/locale"
AC_SUBST(localedir)
fi
# add some required C flags here
# -DYY_STATIC is required by flex
WZ_CFLAGS="${WZ_CFLAGS} -DYY_STATIC -DDEFAULT_DATADIR=\\\"${datadir}/warzone2100\\\""
CPPFLAGS="${CPPFLAGS} -DLOCALEDIR=\"\\\"$localedir\\\"\""
CFLAGS="${WZ_CFLAGS} ${CFLAGS} ${WZ_CFLAGS_OVERRIDE}"
LIBS="${LIBS} ${WZ_LIBS} ${WIN32_LIBS}"

View File

@ -317,7 +317,6 @@ BOOL loadConfig(void)
}
else
{
//strcpy(game.name, strresGetString(psStringRes, STR_GAME_NAME));
setWarzoneKeyString("gameName", "My Game");
}
@ -328,7 +327,6 @@ BOOL loadConfig(void)
}
else
{
//strcpy((char*)sPlayer, strresGetString(psStringRes, STR_PLAYER_NAME));
setWarzoneKeyString("playerName","Player");
}

View File

@ -505,7 +505,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
sEdInit.y = DES_NAMEBOXY;
sEdInit.width = DES_NAMEBOXWIDTH;
sEdInit.height = DES_NAMEBOXHEIGHT;
sEdInit.pText = strresGetString(psStringRes, STR_DES_NEWVEH);
sEdInit.pText = _("New Vehicle");
sEdInit.FontID = WFont;
sEdInit.pBoxDisplay = intDisplayEditBox;
if (!widgAddEditBox(psWScreen, &sEdInit))
@ -527,7 +527,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
else
{
memcpy(&sCurrDesign, &sDefaultDesignTemplate, sizeof(DROID_TEMPLATE));
strcpy(aCurrName, strresGetString(psStringRes, STR_DES_NEWVEH));
strcpy(aCurrName, _("New Vehicle"));
strcpy( sCurrDesign.aName, aCurrName );
}
@ -574,7 +574,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
sButInit.y = DES_PARTSEPARATIONY;
sButInit.width = iV_GetImageWidth(IntImages, IMAGE_DES_BODY);
sButInit.height = iV_GetImageHeight(IntImages, IMAGE_DES_BODY);
sButInit.pTip = strresGetString(psStringRes, STR_DES_BODY);
sButInit.pTip = _("Vehicle Body");
sButInit.FontID = WFont;
#ifdef FLASH_BUTTONS
sButInit.pDisplay = intDisplayButtonFlash;
@ -596,7 +596,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
2 * DES_PARTSEPARATIONY);
sButInit.width = iV_GetImageWidth(IntImages, IMAGE_DES_PROPULSION);
sButInit.height = iV_GetImageHeight(IntImages, IMAGE_DES_PROPULSION);
sButInit.pTip = strresGetString(psStringRes, STR_DES_PROPULSION);
sButInit.pTip = _("Vehicle Propulsion");
sButInit.FontID = WFont;
#ifdef FLASH_BUTTONS
sButInit.pDisplay = intDisplayButtonFlash;
@ -619,7 +619,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
3*DES_PARTSEPARATIONY);
sButInit.width = iV_GetImageWidth(IntImages, IMAGE_DES_TURRET);
sButInit.height = iV_GetImageHeight(IntImages, IMAGE_DES_TURRET);
sButInit.pTip = strresGetString(psStringRes, STR_DES_TURRET);
sButInit.pTip = _("Vehicle Turret");
sButInit.FontID = WFont;
#ifdef FLASH_BUTTONS
sButInit.pDisplay = intDisplayButtonFlash;
@ -644,7 +644,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
4*DES_PARTSEPARATIONY);
sButInit.width = iV_GetImageWidth(IntImages, IMAGE_DES_TURRET);
sButInit.height = iV_GetImageHeight(IntImages, IMAGE_DES_TURRET);
sButInit.pTip = strresGetString(psStringRes, STR_DES_TURRET);
sButInit.pTip = _("Vehicle Turret");
sButInit.FontID = WFont;
#ifdef FLASH_BUTTONS
sButInit.pDisplay = intDisplayButtonFlash;
@ -670,7 +670,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
5*DES_PARTSEPARATIONY);
sButInit.width = iV_GetImageWidth(IntImages, IMAGE_DES_TURRET);
sButInit.height = iV_GetImageHeight(IntImages, IMAGE_DES_TURRET);
sButInit.pTip = strresGetString(psStringRes, STR_DES_TURRET);
sButInit.pTip = _("Vehicle Turret");
sButInit.FontID = WFont;
#ifdef FLASH_BUTTONS
sButInit.pDisplay = intDisplayButtonFlash;
@ -691,7 +691,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
sButInit.height = iV_GetImageHeight(IntImages, IMAGE_DES_BIN);
sButInit.x = DES_PARTSEPARATIONX;
sButInit.y = (UWORD)(DES_PARTFORMHEIGHT - sButInit.height - DES_PARTSEPARATIONY);
sButInit.pTip = strresGetString(psStringRes, STR_DES_DEL);
sButInit.pTip = _("Delete Design");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayButtonHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_DES_BINH, IMAGE_DES_BIN);
@ -745,7 +745,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
sBarInit.sMinorCol.green = DES_CLICKBARMINORGREEN;
sBarInit.sMinorCol.blue = DES_CLICKBARMINORBLUE;
sBarInit.pDisplay = intDisplayStatsBar;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_ARMOUR_KIN);
sBarInit.pTip = _("Kinetic Armour");
sBarInit.iRange = (UWORD)getMaxBodyArmour();//DBAR_BODYMAXARMOUR;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -754,7 +754,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
sBarInit.id = IDDES_BODYARMOUR_H;
sBarInit.y = DES_STATBAR_Y2; //+= DES_CLICKBARHEIGHT + DES_CLICKGAP;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_ARMOUR_HEAT);
sBarInit.pTip = _("Thermal Armour");
sBarInit.iRange = (UWORD)getMaxBodyArmour();//DBAR_BODYMAXARMOUR;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -770,7 +770,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
//}
sBarInit.id = IDDES_BODYPOWER;
sBarInit.y = DES_STATBAR_Y3; //+= DES_CLICKBARHEIGHT + DES_CLICKGAP;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_POWER);
sBarInit.pTip = _("Engine Output");
sBarInit.iRange = (UWORD)getMaxBodyPower();//DBAR_BODYMAXPOWER;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -778,7 +778,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
}
sBarInit.id = IDDES_BODYWEIGHT;
sBarInit.y = DES_STATBAR_Y4; //+= DES_CLICKBARHEIGHT + DES_CLICKGAP;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sBarInit.pTip = _("Weight");
sBarInit.iRange = (UWORD)getMaxComponentWeight();//DBAR_MAXWEIGHT;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -794,7 +794,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
sLabInit.width = DES_CLICKBARNAMEWIDTH;
sLabInit.height = DES_CLICKBARHEIGHT;
// sLabInit.pText = "Armour against Kinetic weapons";
sLabInit.pTip = strresGetString(psStringRes, STR_DES_ARMOUR_KIN);
sLabInit.pTip = _("Kinetic Armour");
sLabInit.FontID = WFont;
sLabInit.pDisplay = intDisplayImage;
//just to confuse things even more - the graphics were named incorrectly!
@ -806,7 +806,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
sLabInit.id = IDDES_BODYARMOURHLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
// sLabInit.pText = "Armour against Heat weapons";
sLabInit.pTip = strresGetString(psStringRes, STR_DES_ARMOUR_HEAT);
sLabInit.pTip = _("Thermal Armour");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_ARMOUR_KINETIC;//IMAGE_DES_ARMOUR_EXPLOSIVE;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -827,7 +827,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
sLabInit.id = IDDES_BODYPOWERLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
// sLabInit.pText = "Power";
sLabInit.pTip = strresGetString(psStringRes, STR_DES_POWER);
sLabInit.pTip = _("Engine Output");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_POWER;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -837,7 +837,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
sLabInit.id = IDDES_BODYWEIGHTLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
// sLabInit.pText = "Weight";
sLabInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sLabInit.pTip = _("Weight");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_WEIGHT;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -868,7 +868,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
sLabInit.id = IDDES_TEMPPOWERLAB;
sLabInit.x = DES_POWERX;
sLabInit.y = DES_POWERY;
sLabInit.pTip = strresGetString(psStringRes, STR_DES_TEMPPOWER);
sLabInit.pTip = _("Total Power Required");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_POWER;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -888,7 +888,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
iV_GetImageWidth(IntImages,IMAGE_DES_BODYPOINTS));
sBarInit.height = iV_GetImageHeight(IntImages,IMAGE_DES_POWERBACK);
sBarInit.pDisplay = intDisplayDesignPowerBar;//intDisplayStatsBar;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_TEMPPOWER);
sBarInit.pTip = _("Total Power Required");
sBarInit.iRange = DBAR_TEMPLATEMAXPOWER;//WBAR_SCALE;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -901,7 +901,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
sLabInit.x = DES_POWERX;
sLabInit.y = (SWORD)(DES_POWERY + DES_POWERSEPARATIONY +
iV_GetImageHeight(IntImages,IMAGE_DES_BODYPOINTS));
sLabInit.pTip = strresGetString(psStringRes, STR_DES_TEMPBODY);
sLabInit.pTip = _("Total Body Points");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_BODYPOINTS;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -922,7 +922,7 @@ static BOOL _intAddDesign( BOOL bShowCentreScreen )
iV_GetImageWidth(IntImages,IMAGE_DES_BODYPOINTS));
sBarInit.height = iV_GetImageHeight(IntImages,IMAGE_DES_POWERBACK);
sBarInit.pDisplay = intDisplayDesignPowerBar;//intDisplayStatsBar;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_TEMPBODY);
sBarInit.pTip = _("Total Body Points");
sBarInit.iRange = DBAR_TEMPLATEMAXPOINTS;//(UWORD)getMaxBodyPoints();//DBAR_BODYMAXPOINTS;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -1107,7 +1107,7 @@ BOOL intAddTemplateButtons(UDWORD formID, UDWORD formWidth, UDWORD formHeight,
sBarInit.sMinorCol.red = STAT_PROGBARMINORRED;
sBarInit.sMinorCol.green = STAT_PROGBARMINORGREEN;
sBarInit.sMinorCol.blue = STAT_PROGBARMINORBLUE;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_POWERUSE);
sBarInit.pTip = _("Power Usage");
droidTemplID = 0;
for( i=0; i<MAXTEMPLATES; i++ )
@ -1139,7 +1139,7 @@ BOOL intAddTemplateButtons(UDWORD formID, UDWORD formWidth, UDWORD formHeight,
sBarInit.size = (UWORD)(psTempl->powerPoints / POWERPOINTS_DROIDDIV);
if(sBarInit.size > WBAR_SCALE) sBarInit.size = WBAR_SCALE;
sprintf(TempString,"%s - %d",strresGetString(psStringRes, STR_DES_POWERUSE),psTempl->powerPoints);
sprintf(TempString,"%s - %d",_("Power Usage"),psTempl->powerPoints);
ASSERT( BufferPos+strlen(TempString)+1 < STRING_BUFFER_SIZE,"String Buffer Overrun" );
strcpy(&StringBuffer[BufferPos],TempString);
sBarInit.pTip = &StringBuffer[BufferPos];
@ -1797,7 +1797,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
/* Add the labels */
sLabInit.id = IDDES_SENSORRANGELAB;
// sLabInit.pText = "Sensor Range";
sLabInit.pTip = strresGetString(psStringRes, STR_DES_SENSOR_RANGE);
sLabInit.pTip = _("Sensor Range");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_RANGE;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -1807,7 +1807,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
sLabInit.id = IDDES_SENSORPOWERLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
// sLabInit.pText = " Sensor Power";
sLabInit.pTip = strresGetString(psStringRes, STR_DES_SENSOR_POWER);
sLabInit.pTip = _("Sensor Power");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_POWER;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -1817,7 +1817,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
sLabInit.id = IDDES_SENSORWEIGHTLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
// sLabInit.pText = "Weight";
sLabInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sLabInit.pTip = _("Weight");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_WEIGHT;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -1858,7 +1858,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
/* Add the labels */
sLabInit.id = IDDES_ECMPOWERLAB;
// sLabInit.pText = "ECM Power";
sLabInit.pTip = strresGetString(psStringRes, STR_DES_ECM_POWER);
sLabInit.pTip = _("ECM Power");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_POWER;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -1868,7 +1868,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
sLabInit.id = IDDES_ECMWEIGHTLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
// sLabInit.pText = "Weight";
sLabInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sLabInit.pTip = _("Weight");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_WEIGHT;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -1893,7 +1893,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
/* Add the bar graphs */
sBarInit.id = IDDES_CONSTPOINTS;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_BUILD_POINTS);
sBarInit.pTip = _("Build Points");
sBarInit.iRange = (UWORD)getMaxConstPoints();//DBAR_CONSTMAXPOINTS;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -1901,7 +1901,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
}
sBarInit.id = IDDES_CONSTWEIGHT;
sBarInit.y = DES_STATBAR_Y2; //+= DES_CLICKBARHEIGHT + DES_CLICKGAP;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sBarInit.pTip = _("Weight");
sBarInit.iRange = (UWORD)getMaxComponentWeight();//DBAR_MAXWEIGHT;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -1910,7 +1910,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
/* Add the labels */
sLabInit.id = IDDES_CONSTPOINTSLAB;
sLabInit.pTip = strresGetString(psStringRes, STR_DES_BUILD_POINTS);
sLabInit.pTip = _("Build Points");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_BUILDRATE;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -1919,7 +1919,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
}
sLabInit.id = IDDES_CONSTWEIGHTLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
sLabInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sLabInit.pTip = _("Weight");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_WEIGHT;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -1944,7 +1944,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
/* Add the bar graphs */
sBarInit.id = IDDES_REPAIRPOINTS;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_BUILD_POINTS);
sBarInit.pTip = _("Build Points");
sBarInit.iRange = (UWORD)getMaxRepairPoints();//DBAR_REPAIRMAXPOINTS;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -1952,7 +1952,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
}
sBarInit.id = IDDES_REPAIRWEIGHT;
sBarInit.y = DES_STATBAR_Y2; //+= DES_CLICKBARHEIGHT + DES_CLICKGAP;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sBarInit.pTip = _("Weight");
sBarInit.iRange = (UWORD)getMaxComponentWeight();//DBAR_MAXWEIGHT;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -1961,7 +1961,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
/* Add the labels */
sLabInit.id = IDDES_REPAIRPTLAB;
sLabInit.pTip = strresGetString(psStringRes, STR_DES_BUILD_POINTS);
sLabInit.pTip = _("Build Points");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_BUILDRATE;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -1970,7 +1970,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
}
sLabInit.id = IDDES_REPAIRWGTLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
sLabInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sLabInit.pTip = _("Weight");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_WEIGHT;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -1988,7 +1988,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
/* Add the bar graphs */
sBarInit.id = IDDES_WEAPRANGE;
sBarInit.iRange = (UWORD)getMaxWeaponRange();//DBAR_WEAPMAXRANGE;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_RANGE);
sBarInit.pTip = _("Range");
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
return FALSE;
@ -1996,7 +1996,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
sBarInit.id = IDDES_WEAPDAMAGE;
sBarInit.y = DES_STATBAR_Y2; //+= DES_CLICKBARHEIGHT + DES_CLICKGAP;
sBarInit.iRange = (UWORD)getMaxWeaponDamage();//DBAR_WEAPMAXDAMAGE;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_DAMAGE);
sBarInit.pTip = _("Damage");
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
return FALSE;
@ -2004,7 +2004,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
sBarInit.id = IDDES_WEAPROF;
sBarInit.y = DES_STATBAR_Y3; //+= DES_CLICKBARHEIGHT + DES_CLICKGAP;
sBarInit.iRange = getMaxWeaponROF();
sBarInit.pTip = strresGetString(psStringRes, STR_DES_ROF);
sBarInit.pTip = _("Rate-of-Fire");
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
return FALSE;
@ -2012,7 +2012,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
sBarInit.id = IDDES_WEAPWEIGHT;
sBarInit.y = DES_STATBAR_Y4; //+= DES_CLICKBARHEIGHT + DES_CLICKGAP;
sBarInit.iRange = (UWORD)getMaxComponentWeight();//DBAR_MAXWEIGHT;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sBarInit.pTip = _("Weight");
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
return FALSE;
@ -2021,7 +2021,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
/* Add the labels */
sLabInit.id = IDDES_WEAPRANGELAB;
// sLabInit.pText = "Range";
sLabInit.pTip = strresGetString(psStringRes, STR_DES_RANGE);
sLabInit.pTip = _("Range");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_RANGE;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -2031,7 +2031,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
sLabInit.id = IDDES_WEAPDAMAGELAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
// sLabInit.pText = "Dam";
sLabInit.pTip = strresGetString(psStringRes, STR_DES_DAMAGE);
sLabInit.pTip = _("Damage");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_DAMAGE;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -2041,7 +2041,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
sLabInit.id = IDDES_WEAPROFLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
// sLabInit.pText = "ROF";
sLabInit.pTip = strresGetString(psStringRes, STR_DES_ROF);
sLabInit.pTip = _("Rate-of-Fire");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_FIRERATE;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -2051,7 +2051,7 @@ static BOOL _intSetSystemForm(COMP_BASE_STATS *psStats)
sLabInit.id = IDDES_WEAPWEIGHTLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
// sLabInit.pText = "Weight";
sLabInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sLabInit.pTip = _("Weight");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_WEIGHT;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -2201,7 +2201,7 @@ static BOOL intSetPropulsionForm(PROPULSION_STATS *psStats)
/* Add the bar graphs */
sBarInit.id = IDDES_PROPAIR;
sBarInit.iRange = (UWORD)getMaxPropulsionSpeed();//DBAR_PROPMAXSPEED;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_AIR);
sBarInit.pTip = _("Air Speed");
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
return FALSE;
@ -2209,7 +2209,7 @@ static BOOL intSetPropulsionForm(PROPULSION_STATS *psStats)
sBarInit.id = IDDES_PROPWEIGHT;
sBarInit.y = DES_STATBAR_Y2; //+= DES_CLICKBARHEIGHT + DES_CLICKGAP;
sBarInit.iRange = (UWORD)getMaxComponentWeight();//DBAR_MAXWEIGHT;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sBarInit.pTip = _("Weight");
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
return FALSE;
@ -2217,7 +2217,7 @@ static BOOL intSetPropulsionForm(PROPULSION_STATS *psStats)
/* Add the labels */
sLabInit.id = IDDES_PROPAIRLAB;
sLabInit.pTip = strresGetString(psStringRes, STR_DES_AIR);
sLabInit.pTip = _("Air Speed");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_HOVER;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -2226,7 +2226,7 @@ static BOOL intSetPropulsionForm(PROPULSION_STATS *psStats)
}
sLabInit.id = IDDES_PROPWEIGHTLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
sLabInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sLabInit.pTip = _("Weight");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_WEIGHT;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -2245,7 +2245,7 @@ static BOOL intSetPropulsionForm(PROPULSION_STATS *psStats)
case IDES_GROUND:
/* Add the bar graphs */
sBarInit.id = IDDES_PROPROAD;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_ROAD);
sBarInit.pTip = _("Road Speed");
sBarInit.iRange = (UWORD)getMaxPropulsionSpeed();//DBAR_PROPMAXSPEED;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -2253,7 +2253,7 @@ static BOOL intSetPropulsionForm(PROPULSION_STATS *psStats)
}
sBarInit.id = IDDES_PROPCOUNTRY;
sBarInit.y = DES_STATBAR_Y2; //+= DES_CLICKBARHEIGHT + DES_CLICKGAP;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_OFFROAD);
sBarInit.pTip = _("Off-Road Speed");
sBarInit.iRange = (UWORD)getMaxPropulsionSpeed();//DBAR_PROPMAXSPEED;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -2261,7 +2261,7 @@ static BOOL intSetPropulsionForm(PROPULSION_STATS *psStats)
}
sBarInit.id = IDDES_PROPWATER;
sBarInit.y = DES_STATBAR_Y3; //+= DES_CLICKBARHEIGHT + DES_CLICKGAP;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_WATER);
sBarInit.pTip = _("Water Speed");
sBarInit.iRange = (UWORD)getMaxPropulsionSpeed();//DBAR_PROPMAXSPEED;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -2269,7 +2269,7 @@ static BOOL intSetPropulsionForm(PROPULSION_STATS *psStats)
}
sBarInit.id = IDDES_PROPWEIGHT;
sBarInit.y = DES_STATBAR_Y4; //+= DES_CLICKBARHEIGHT + DES_CLICKGAP;
sBarInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sBarInit.pTip = _("Weight");
sBarInit.iRange = (UWORD)getMaxComponentWeight();//DBAR_MAXWEIGHT;
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -2278,7 +2278,7 @@ static BOOL intSetPropulsionForm(PROPULSION_STATS *psStats)
/* Add the labels */
sLabInit.id = IDDES_PROPROADLAB;
sLabInit.pTip = strresGetString(psStringRes, STR_DES_ROAD);
sLabInit.pTip = _("Road Speed");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_ROAD;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -2287,7 +2287,7 @@ static BOOL intSetPropulsionForm(PROPULSION_STATS *psStats)
}
sLabInit.id = IDDES_PROPCOUNTRYLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
sLabInit.pTip = strresGetString(psStringRes, STR_DES_OFFROAD);
sLabInit.pTip = _("Off-Road Speed");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_CROSSCOUNTRY;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -2296,7 +2296,7 @@ static BOOL intSetPropulsionForm(PROPULSION_STATS *psStats)
}
sLabInit.id = IDDES_PROPWATERLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
sLabInit.pTip = strresGetString(psStringRes, STR_DES_WATER);
sLabInit.pTip = _("Water Speed");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_HOVER; //WATER;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -2305,7 +2305,7 @@ static BOOL intSetPropulsionForm(PROPULSION_STATS *psStats)
}
sLabInit.id = IDDES_PROPWEIGHTLAB;
sLabInit.y += DES_CLICKBARHEIGHT + DES_CLICKGAP;
sLabInit.pTip = strresGetString(psStringRes, STR_DES_WEIGHT);
sLabInit.pTip = _("Weight");
sLabInit.pDisplay = intDisplayImage;
sLabInit.pUserData = (void*)IMAGE_DES_WEIGHT;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -2494,9 +2494,9 @@ static BOOL intAddComponentForm(UDWORD numButtons)
sFormInit.tabMajorGap = DES_TAB_SYSGAP;
sFormInit.tabMinorGap = 0;//DES_TAB_SYSGAP - 2;
sFormInit.numMajor = 3;
sFormInit.apMajorTips[IDES_MAINTAB] = strresGetString(psStringRes, STR_DES_WEAPONS);
sFormInit.apMajorTips[IDES_EXTRATAB] = strresGetString(psStringRes, STR_DES_OTHER);
sFormInit.apMajorTips[IDES_EXTRATAB2] = strresGetString(psStringRes, STR_DES_COMMAND);
sFormInit.apMajorTips[IDES_MAINTAB] = _("Weapons");
sFormInit.apMajorTips[IDES_EXTRATAB] = _("Systems");
sFormInit.apMajorTips[IDES_EXTRATAB2] = _("Command Turrets");
sFormInit.pFormDisplay = intDisplayObjectForm;
sFormInit.pUserData = (void*)&SystemTab;
sFormInit.pTabDisplay = intDisplaySystemTab;
@ -2584,7 +2584,7 @@ static BOOL intAddSystemButtons(SDWORD mode)
sButInit.y = DES_SYSTEMBUTTON_Y;
sButInit.width = iV_GetImageWidth(IntImages, IMAGE_DES_WEAPONS);
sButInit.height = iV_GetImageHeight(IntImages, IMAGE_DES_WEAPONS);
sButInit.pTip = strresGetString(psStringRes, STR_DES_WEAPONS);
sButInit.pTip = _("Weapons");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayButtonHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_DES_EXTRAHI , IMAGE_DES_WEAPONS);
@ -2608,7 +2608,7 @@ static BOOL intAddSystemButtons(SDWORD mode)
sButInit.y = DES_SYSTEMBUTTON_Y;
sButInit.width = iV_GetImageWidth(IntImages, IMAGE_DES_SYSTEMS);
sButInit.height = iV_GetImageHeight(IntImages, IMAGE_DES_SYSTEMS);
sButInit.pTip = strresGetString(psStringRes, STR_DES_OTHER);
sButInit.pTip = _("Systems");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayButtonHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_DES_EXTRAHI , IMAGE_DES_SYSTEMS);
@ -2627,7 +2627,7 @@ static BOOL intAddSystemButtons(SDWORD mode)
sButInit.y = 10;
sButInit.width = iV_GetImageWidth(IntImages, IMAGE_DES_COMMAND);
sButInit.height = iV_GetImageHeight(IntImages, IMAGE_DES_COMMAND);
sButInit.pTip = strresGetString(psStringRes, STR_DES_COMMAND);
sButInit.pTip = _("Command Turrets");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayButtonHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_DES_EXTRAHI , IMAGE_DES_COMMAND);
@ -4149,10 +4149,10 @@ void intProcessDesign(UDWORD id)
{
desCreateDefaultTemplate();
strncpy(aCurrName, strresGetString(psStringRes, STR_DES_NEWVEH),
strncpy(aCurrName, _("New Vehicle"),
WIDG_MAXSTR-1);
strcpy( sCurrDesign.aName, aCurrName );
// strncpy(aCurrName, strresGetString(psStringRes, STR_DES_NEWVEH),
// strncpy(aCurrName, _("New Vehicle"),
// WIDG_MAXSTR-1);
/* hide body and system component buttons */

View File

@ -2018,7 +2018,7 @@ void BeepMessage(UDWORD StringID)
void AddDerrickBurningMessage(void)
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_DERRICK_BURNING),DEFAULT_JUSTIFY);
addConsoleMessage(_("Cannot Build. Oil Resource Burning."),DEFAULT_JUSTIFY);
audio_PlayTrack( ID_SOUND_BUILD_FAIL );
}
@ -2176,7 +2176,7 @@ DROID_OACTION_INFO oaInfo = {{NULL}};
if(!psDroid->selected)
{
CONPRINTF(ConsoleString, (ConsoleString,
strresGetString(psStringRes,STR_GAM_DROIDSTATE),
_("%s - Damage %d%% - Kills %d, %s"),
/* "%s - Damage %d%% - Kills %d, %s",*/
droidGetName(psDroid), 100 - PERCENT(psDroid->body,
psDroid->originalBody),psDroid->numKills,
@ -2421,7 +2421,7 @@ DROID_OACTION_INFO oaInfo = {{NULL}};
(BASE_STATS*) &asStructureStats[i],
psFeature->x, psFeature->y);
}
addConsoleMessage(strresGetString(psStringRes,STR_GAM_DERRICK),DEFAULT_JUSTIFY);
addConsoleMessage(_("Truck ordered to build Oil Derrick"),DEFAULT_JUSTIFY);
// "Construction vehicle ordered to build a Derrick.",DEFAULT_JUSTIFY);
FeedbackOrderGiven();
}

View File

@ -317,7 +317,7 @@ BOOL droidDamage(DROID *psDroid, UDWORD damage, UDWORD weaponClass, UDWORD weapo
debug( LOG_ATTACK, " DESTROYED\n");
if(psDroid->player == selectedPlayer)
{
CONPRINTF(ConsoleString,(ConsoleString, strresGetString(psStringRes,STR_GAM_UNITLOST)));
CONPRINTF(ConsoleString,(ConsoleString, _("Unit Lost!")));
scoreUpdateVar(WD_UNITS_LOST);
audio_QueueTrackMinDelayPos(ID_SOUND_UNIT_DESTROYED,UNIT_LOST_DELAY,
psDroid->x, psDroid->y, psDroid->z );
@ -373,7 +373,7 @@ BOOL droidDamage(DROID *psDroid, UDWORD damage, UDWORD weaponClass, UDWORD weapo
if(psDroid->player == selectedPlayer)
{
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GAM_UNITLOST)));
CONPRINTF(ConsoleString,(ConsoleString,_("Unit Lost!")));
scoreUpdateVar(WD_UNITS_LOST);
audio_QueueTrackMinDelayPos( ID_SOUND_UNIT_DESTROYED,UNIT_LOST_DELAY,
psDroid->x, psDroid->y, psDroid->z );
@ -2507,7 +2507,7 @@ BOOL droidUpdateRestore( DROID *psDroid )
}
else
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_STRREST) ,DEFAULT_JUSTIFY);
addConsoleMessage(_("Structure Restored") ,DEFAULT_JUSTIFY);
//psStruct->resistance = psStruct->pStructureType->resistance;
psStruct->resistance = (UWORD)structureResistance(psStruct->pStructureType,
psStruct->player);
@ -4951,7 +4951,7 @@ void groupConsoleInformOfSelection( UDWORD groupNumber )
char groupInfo[255];
// if(!getWarCamStatus())
// {
sprintf(groupInfo,strresGetString(psStringRes,STR_GP_SELECTED),groupNumber,selNumSelected(selectedPlayer));
sprintf(groupInfo,_("Group %d Selected - %d Unit(s)"),groupNumber,selNumSelected(selectedPlayer));
addConsoleMessage(groupInfo,RIGHT_JUSTIFY);
// }
@ -4963,7 +4963,7 @@ void groupConsoleInformOfCreation( UDWORD groupNumber )
char groupInfo[255];
if(!getWarCamStatus())
{
sprintf(groupInfo,strresGetString(psStringRes,STR_GP_ASSIGNED),selNumSelected(selectedPlayer),groupNumber);
sprintf(groupInfo,_("%d Unit(s) Assigned to Group %d"),selNumSelected(selectedPlayer),groupNumber);
addConsoleMessage(groupInfo,RIGHT_JUSTIFY);
}
@ -4975,11 +4975,11 @@ void groupConsoleInformOfCentering( UDWORD groupNumber )
char groupInfo[255];
if(!getWarCamStatus())
{
sprintf(groupInfo,strresGetString(psStringRes,STR_GP_CENTERED),groupNumber,selNumSelected(selectedPlayer));
sprintf(groupInfo,_("Centered on Group %d - %d Unit(s)"),groupNumber,selNumSelected(selectedPlayer));
}
else
{
sprintf(groupInfo,strresGetString(psStringRes,STR_GP_ALLIGN),groupNumber,selNumSelected(selectedPlayer));
sprintf(groupInfo,_("Alligning with Group %d - %d Unit(s)"),groupNumber,selNumSelected(selectedPlayer));
}
addConsoleMessage(groupInfo,RIGHT_JUSTIFY);
@ -5296,23 +5296,23 @@ char *getDroidNameForRank(UDWORD rank)
switch(rank)
{
case 0:
return strresGetString(psStringRes, STR_DL_LEVEL_ROOKIE);
return _("Rookie");
case 1:
return strresGetString(psStringRes, STR_DL_LEVEL_GREEN);
return _("Green");
case 2:
return strresGetString(psStringRes, STR_DL_LEVEL_TRAINED);
return _("Trained");
case 3:
return strresGetString(psStringRes, STR_DL_LEVEL_REGULAR);
return _("Regular");
case 4:
return strresGetString(psStringRes, STR_DL_LEVEL_VETERAN);
return _("Professional");
case 5:
return strresGetString(psStringRes, STR_DL_LEVEL_CRACK);
return _("Veteran");
case 6:
return strresGetString(psStringRes, STR_DL_LEVEL_ELITE);
return _("Elite");
case 7:
return strresGetString(psStringRes, STR_DL_LEVEL_SPECIAL);
return _("Special");
case 8:
return strresGetString(psStringRes, STR_DL_LEVEL_ACE);
return _("Hero");
}
return NULL;
@ -5325,23 +5325,23 @@ char *getDroidLevelName(DROID *psDroid)
switch (getDroidLevel(psDroid))
{
case 0:
return strresGetString(psStringRes, STR_DL_LEVEL_ROOKIE);
return _("Rookie");
case 1:
return strresGetString(psStringRes, STR_DL_LEVEL_GREEN);
return _("Green");
case 2:
return strresGetString(psStringRes, STR_DL_LEVEL_TRAINED);
return _("Trained");
case 3:
return strresGetString(psStringRes, STR_DL_LEVEL_REGULAR);
return _("Regular");
case 4:
return strresGetString(psStringRes, STR_DL_LEVEL_VETERAN);
return _("Professional");
case 5:
return strresGetString(psStringRes, STR_DL_LEVEL_CRACK);
return _("Veteran");
case 6:
return strresGetString(psStringRes, STR_DL_LEVEL_ELITE);
return _("Elite");
case 7:
return strresGetString(psStringRes, STR_DL_LEVEL_SPECIAL);
return _("Special");
case 8:
return strresGetString(psStringRes, STR_DL_LEVEL_ACE);
return _("Hero");
}
*/
}

View File

@ -92,7 +92,6 @@ extern void droidGetNaybors(DROID *psDroid);
extern BOOL loadDroidTemplates(char *pDroidData, UDWORD bufferSize);
extern BOOL loadDroidWeapons(char *pWeaponData, UDWORD bufferSize);
//extern BOOL loadDroidPrograms(car *pProgramData, UDWORD bufferSize);
/*initialise the template build and power points */
extern void initTemplatePoints(void);
@ -128,9 +127,6 @@ extern UDWORD calcDroidSpeed(UDWORD baseSpeed, UDWORD terrainType, UDWORD propIn
/* Calculate the points required to build the template */
extern UDWORD calcTemplateBuild(DROID_TEMPLATE *psTemplate);
/* Calculate the points required to build the droid */
//UDWORD calcDroidBuild(DROID *psDroid);
/* Calculate the power points required to build/maintain the droid */
extern UDWORD calcTemplatePower(DROID_TEMPLATE *psTemplate);

View File

@ -608,7 +608,6 @@ void processEffects(void)
skippedEffects = skipped;
}
// ----------------------------------------------------------------------------------------
/* The general update function for all effects - calls a specific one for each */
void updateEffect(EFFECT *psEffect)

View File

@ -315,19 +315,19 @@ BOOL startTitleMenu(void)
addTopForm();
addBottomForm();
addTextButton(FRONTEND_SINGLEPLAYER,FRONTEND_POS2X,FRONTEND_POS2Y, strresGetString(psStringRes, STR_FE_SINGLE),FALSE,FALSE);
addTextButton(FRONTEND_SINGLEPLAYER,FRONTEND_POS2X,FRONTEND_POS2Y, _("Single Player Campaign"),FALSE,FALSE);
if(!bDisableLobby)
{
addTextButton(FRONTEND_MULTIPLAYER, FRONTEND_POS3X,FRONTEND_POS3Y, strresGetString(psStringRes, STR_FE_MULTI) ,FALSE,FALSE);
addTextButton(FRONTEND_MULTIPLAYER, FRONTEND_POS3X,FRONTEND_POS3Y, _("Multi Player Game") ,FALSE,FALSE);
}else{
addTextButton(FRONTEND_MULTIPLAYER, FRONTEND_POS3X,FRONTEND_POS3Y, strresGetString(psStringRes, STR_FE_MULTI) ,FALSE,TRUE);
addTextButton(FRONTEND_MULTIPLAYER, FRONTEND_POS3X,FRONTEND_POS3Y, _("Multi Player Game") ,FALSE,TRUE);
}
addTextButton(FRONTEND_TUTORIAL, FRONTEND_POS4X,FRONTEND_POS4Y, strresGetString(psStringRes, STR_FE_TUT) ,FALSE,FALSE);
addTextButton(FRONTEND_OPTIONS, FRONTEND_POS5X,FRONTEND_POS5Y, strresGetString(psStringRes, STR_FE_OPTIONS) ,FALSE,FALSE);
addTextButton(FRONTEND_TUTORIAL, FRONTEND_POS4X,FRONTEND_POS4Y, _("Tutorial") ,FALSE,FALSE);
addTextButton(FRONTEND_OPTIONS, FRONTEND_POS5X,FRONTEND_POS5Y, _("Options") ,FALSE,FALSE);
addTextButton(FRONTEND_QUIT, FRONTEND_POS6X,FRONTEND_POS6Y, strresGetString(psStringRes, STR_FE_QUIT),FALSE,FALSE);
addTextButton(FRONTEND_QUIT, FRONTEND_POS6X,FRONTEND_POS6Y, _("Quit Game"),FALSE,FALSE);
addSideText (FRONTEND_SIDETEXT , FRONTEND_SIDEX,FRONTEND_SIDEY,strresGetString(psStringRes, STR_FE_SIDEMAIN));
addSideText (FRONTEND_SIDETEXT , FRONTEND_SIDEX,FRONTEND_SIDEY,_("MAIN MENU"));
SetMousePos(320, FRONTEND_BOTFORMY + FRONTEND_POS2Y);
SnapToID(&InterfaceSnap,4);
@ -382,9 +382,9 @@ BOOL startTutorialMenu(void)
addBottomForm();
addTextButton(FRONTEND_TUTORIAL, FRONTEND_POS3X,FRONTEND_POS3Y, strresGetString(psStringRes,STR_FE_TUT),FALSE,FALSE);
addTextButton(FRONTEND_FASTPLAY, FRONTEND_POS4X,FRONTEND_POS4Y, strresGetString(psStringRes,STR_FE_FASTPLAY),FALSE,FALSE);
addSideText (FRONTEND_SIDETEXT ,FRONTEND_SIDEX,FRONTEND_SIDEY,strresGetString(psStringRes,STR_FE_SIDETUT));
addTextButton(FRONTEND_TUTORIAL, FRONTEND_POS3X,FRONTEND_POS3Y, _("Tutorial"),FALSE,FALSE);
addTextButton(FRONTEND_FASTPLAY, FRONTEND_POS4X,FRONTEND_POS4Y, _("Fast Play"),FALSE,FALSE);
addSideText (FRONTEND_SIDETEXT ,FRONTEND_SIDEX,FRONTEND_SIDEY,_("TUTORIALS"));
addMultiBut(psWScreen,FRONTEND_BOTFORM,FRONTEND_QUIT,10,10,30,29, STR_FE_RETURN,IMAGE_RETURN,IMAGE_RETURN_HI,TRUE);
SetCurrentSnapID(&InterfaceSnap,FRONTEND_FASTPLAY);
@ -443,10 +443,10 @@ void startSinglePlayerMenu(void)
addTopForm();
addBottomForm();
addTextButton(FRONTEND_LOADGAME, FRONTEND_POS4X,FRONTEND_POS4Y, strresGetString(psStringRes,STR_FE_LOAD),FALSE,FALSE);
addTextButton(FRONTEND_NEWGAME, FRONTEND_POS3X,FRONTEND_POS3Y,strresGetString(psStringRes,STR_FE_NEW) ,FALSE,FALSE);
addTextButton(FRONTEND_LOADGAME, FRONTEND_POS4X,FRONTEND_POS4Y, _("Load Campaign"),FALSE,FALSE);
addTextButton(FRONTEND_NEWGAME, FRONTEND_POS3X,FRONTEND_POS3Y,_("New Campaign") ,FALSE,FALSE);
addSideText (FRONTEND_SIDETEXT ,FRONTEND_SIDEX,FRONTEND_SIDEY,strresGetString(psStringRes,STR_FE_SIDESINGLE1));
addSideText (FRONTEND_SIDETEXT ,FRONTEND_SIDEX,FRONTEND_SIDEY,_("SINGLE PLAYER"));
SetCurrentSnapID(&InterfaceSnap,FRONTEND_LOADGAME);
addMultiBut(psWScreen,FRONTEND_BOTFORM,FRONTEND_QUIT,10,10,30,29, STR_FE_RETURN,IMAGE_RETURN,IMAGE_RETURN_HI,TRUE);
}
@ -537,7 +537,7 @@ BOOL runSinglePlayerMenu(void)
break;
case FRONTEND_LOADGAME:
addLoadSave(LOAD_FRONTEND,SaveGamePath,"gam",strresGetString(psStringRes,STR_MR_LOAD_GAME)); // change mode when loadsave returns
addLoadSave(LOAD_FRONTEND,SaveGamePath,"gam",_("Load Saved Game")); // change mode when loadsave returns
break;
case FRONTEND_QUIT:
@ -580,13 +580,13 @@ BOOL startMultiPlayerMenu(void)
addTopForm();
addBottomForm();
addSideText (FRONTEND_SIDETEXT , FRONTEND_SIDEX,FRONTEND_SIDEY,strresGetString(psStringRes, STR_FE_SIDEMULTI));
addSideText (FRONTEND_SIDETEXT , FRONTEND_SIDEX,FRONTEND_SIDEY,_("MULTI PLAYER"));
addTextButton(FRONTEND_HOST, FRONTEND_POS2X,FRONTEND_POS2Y, strresGetString(psStringRes, STR_FE_HOST),FALSE,FALSE);
addTextButton(FRONTEND_JOIN, FRONTEND_POS3X,FRONTEND_POS3Y, strresGetString(psStringRes, STR_FE_JOIN),FALSE,FALSE);
addTextButton(FRONTEND_HOST, FRONTEND_POS2X,FRONTEND_POS2Y, _("Host Game"),FALSE,FALSE);
addTextButton(FRONTEND_JOIN, FRONTEND_POS3X,FRONTEND_POS3Y, _("Join Game"),FALSE,FALSE);
addTextButton(FRONTEND_FORCEEDIT,FRONTEND_POS4X,FRONTEND_POS4Y, strresGetString(psStringRes, STR_FE_FORCEEDIT),FALSE,FALSE);
addTextButton(FRONTEND_SKIRMISH, FRONTEND_POS5X,FRONTEND_POS5Y, strresGetString(psStringRes, STR_FE_SKIRMISH ),FALSE,FALSE);
addTextButton(FRONTEND_FORCEEDIT,FRONTEND_POS4X,FRONTEND_POS4Y, _("Force Editor"),FALSE,FALSE);
addTextButton(FRONTEND_SKIRMISH, FRONTEND_POS5X,FRONTEND_POS5Y, _("One Player Skirmish"),FALSE,FALSE);
addMultiBut(psWScreen,FRONTEND_BOTFORM,FRONTEND_QUIT,10,10,30,29, STR_FE_RETURN,IMAGE_RETURN,IMAGE_RETURN_HI,TRUE);
@ -680,11 +680,11 @@ BOOL startOptionsMenu(void)
addTopForm();
addBottomForm();
addSideText (FRONTEND_SIDETEXT , FRONTEND_SIDEX,FRONTEND_SIDEY, strresGetString(psStringRes, STR_FE_SIDEOPTIONS));
addTextButton(FRONTEND_GAMEOPTIONS, FRONTEND_POS2X,FRONTEND_POS2Y, strresGetString(psStringRes, STR_FE_GAME),FALSE,FALSE);
addTextButton(FRONTEND_GAMEOPTIONS2,FRONTEND_POS3X,FRONTEND_POS3Y, strresGetString(psStringRes, STR_FE_GRAPHICS),FALSE,FALSE);
addTextButton(FRONTEND_GAMEOPTIONS3, FRONTEND_POS4X,FRONTEND_POS4Y, strresGetString(psStringRes, STR_FE_AUDIO),FALSE,FALSE);
addTextButton(FRONTEND_KEYMAP, FRONTEND_POS5X,FRONTEND_POS5Y, strresGetString(psStringRes, STR_KM_KEYMAP),FALSE,FALSE);
addSideText (FRONTEND_SIDETEXT , FRONTEND_SIDEX,FRONTEND_SIDEY, _("GAME OPTIONS"));
addTextButton(FRONTEND_GAMEOPTIONS, FRONTEND_POS2X,FRONTEND_POS2Y, _("Game Options"),FALSE,FALSE);
addTextButton(FRONTEND_GAMEOPTIONS2,FRONTEND_POS3X,FRONTEND_POS3Y, _("Graphics Options"),FALSE,FALSE);
addTextButton(FRONTEND_GAMEOPTIONS3, FRONTEND_POS4X,FRONTEND_POS4Y, _("Audio Options"),FALSE,FALSE);
addTextButton(FRONTEND_KEYMAP, FRONTEND_POS5X,FRONTEND_POS5Y, _("Key Mappings"),FALSE,FALSE);
addMultiBut(psWScreen,FRONTEND_BOTFORM,FRONTEND_QUIT,10,10,30,29, STR_FE_RETURN,IMAGE_RETURN,IMAGE_RETURN_HI,TRUE);
SetMousePos(320, FRONTEND_BOTFORMY + FRONTEND_POS3Y);
@ -759,80 +759,80 @@ BOOL startGameOptions2Menu(void)
////////////
// mouseflip
addTextButton(FRONTEND_MFLIP, FRONTEND_POS2X-35, FRONTEND_POS2Y, strresGetString(psStringRes,STR_FE_MFLIP),TRUE,FALSE);
addTextButton(FRONTEND_MFLIP, FRONTEND_POS2X-35, FRONTEND_POS2Y, _("Reverse Mouse"),TRUE,FALSE);
if( getInvertMouseStatus() )
{// flipped
addTextButton(FRONTEND_MFLIP_R, FRONTEND_POS2M-55, FRONTEND_POS2Y, strresGetString(psStringRes,STR_FE_ON),TRUE,FALSE);
addTextButton(FRONTEND_MFLIP_R, FRONTEND_POS2M-55, FRONTEND_POS2Y, _("On"),TRUE,FALSE);
}
else
{ // not flipped
addTextButton(FRONTEND_MFLIP_R, FRONTEND_POS2M-55, FRONTEND_POS2Y, strresGetString(psStringRes,STR_FE_OFF),TRUE,FALSE);
addTextButton(FRONTEND_MFLIP_R, FRONTEND_POS2M-55, FRONTEND_POS2Y, _("Off"),TRUE,FALSE);
}
////////////
// screenshake
addTextButton(FRONTEND_SSHAKE, FRONTEND_POS3X-35, FRONTEND_POS3Y, strresGetString(psStringRes,STR_FE_SSHAKE),TRUE,FALSE);
addTextButton(FRONTEND_SSHAKE, FRONTEND_POS3X-35, FRONTEND_POS3Y, _("Screen Shake"),TRUE,FALSE);
if(getShakeStatus())
{// shaking on
addTextButton(FRONTEND_SSHAKE_R, FRONTEND_POS3M-55, FRONTEND_POS3Y, strresGetString(psStringRes,STR_FE_ON),TRUE,FALSE);
addTextButton(FRONTEND_SSHAKE_R, FRONTEND_POS3M-55, FRONTEND_POS3Y, _("On"),TRUE,FALSE);
}
else
{//shaking off.
addTextButton(FRONTEND_SSHAKE_R, FRONTEND_POS3M-55, FRONTEND_POS3Y, strresGetString(psStringRes,STR_FE_OFF),TRUE,FALSE);
addTextButton(FRONTEND_SSHAKE_R, FRONTEND_POS3M-55, FRONTEND_POS3Y, _("Off"),TRUE,FALSE);
}
////////////
// fog
addTextButton(FRONTEND_FOGTYPE, FRONTEND_POS4X-35, FRONTEND_POS4Y, strresGetString(psStringRes,STR_FE_FOG),TRUE,FALSE);
addTextButton(FRONTEND_FOGTYPE, FRONTEND_POS4X-35, FRONTEND_POS4Y, _("Fog"),TRUE,FALSE);
if(war_GetFog())
{
addTextButton(FRONTEND_FOGTYPE_R,FRONTEND_POS4M-55,FRONTEND_POS4Y, strresGetString(psStringRes,STR_FE_CRAPFOG),TRUE,FALSE);
addTextButton(FRONTEND_FOGTYPE_R,FRONTEND_POS4M-55,FRONTEND_POS4Y, _("Mist"),TRUE,FALSE);
}
else
{
addTextButton(FRONTEND_FOGTYPE_R,FRONTEND_POS4M-55,FRONTEND_POS4Y, strresGetString(psStringRes,STR_FE_GOODFOG),TRUE,FALSE);
addTextButton(FRONTEND_FOGTYPE_R,FRONTEND_POS4M-55,FRONTEND_POS4Y, _("Fog Of War"),TRUE,FALSE);
}
// ////////////
// //sequence mode.
addTextButton(FRONTEND_SEQUENCE, FRONTEND_POS6X-35,FRONTEND_POS6Y, strresGetString(psStringRes, STR_SEQ_PLAYBACK),TRUE,FALSE);
addTextButton(FRONTEND_SEQUENCE, FRONTEND_POS6X-35,FRONTEND_POS6Y, _("Video Playback"),TRUE,FALSE);
if (war_GetSeqMode() == SEQ_FULL)
{
addTextButton(FRONTEND_SEQUENCE_R, FRONTEND_POS6M-55,FRONTEND_POS6Y, strresGetString(psStringRes,STR_SEQ_FULL),TRUE,FALSE);
addTextButton(FRONTEND_SEQUENCE_R, FRONTEND_POS6M-55,FRONTEND_POS6Y, _("Full"),TRUE,FALSE);
}
else if (war_GetSeqMode() == SEQ_SMALL)
{
addTextButton(FRONTEND_SEQUENCE_R, FRONTEND_POS6M-55,FRONTEND_POS6Y, strresGetString(psStringRes,STR_SEQ_WINDOW),TRUE,FALSE); }
addTextButton(FRONTEND_SEQUENCE_R, FRONTEND_POS6M-55,FRONTEND_POS6Y, _("Windowed"),TRUE,FALSE); }
else
{
addTextButton(FRONTEND_SEQUENCE_R, FRONTEND_POS6M-55,FRONTEND_POS6Y, strresGetString(psStringRes,STR_SEQ_MINIMAL),TRUE,FALSE);
addTextButton(FRONTEND_SEQUENCE_R, FRONTEND_POS6M-55,FRONTEND_POS6Y, _("Minimal"),TRUE,FALSE);
}
////////////
//subtitle mode.
if(war_GetAllowSubtitles())
{
addTextButton(FRONTEND_SUBTITLES, FRONTEND_POS5X-35,FRONTEND_POS5Y, strresGetString(psStringRes, STR_FE_SUBTITLES),TRUE,FALSE);
addTextButton(FRONTEND_SUBTITLES, FRONTEND_POS5X-35,FRONTEND_POS5Y, _("Subtitles"),TRUE,FALSE);
}
else
{
addTextButton(FRONTEND_SUBTITLES, FRONTEND_POS5X-35,FRONTEND_POS5Y, strresGetString(psStringRes, STR_FE_SUBTITLES),TRUE,TRUE);
addTextButton(FRONTEND_SUBTITLES, FRONTEND_POS5X-35,FRONTEND_POS5Y, _("Subtitles"),TRUE,TRUE);
}
if(war_GetAllowSubtitles())
{
if ( !seq_GetSubtitles() )
{
addTextButton(FRONTEND_SUBTITLES_R, FRONTEND_POS5M-55,FRONTEND_POS5Y, strresGetString(psStringRes,STR_FE_OFF),TRUE,FALSE);
addTextButton(FRONTEND_SUBTITLES_R, FRONTEND_POS5M-55,FRONTEND_POS5Y, _("Off"),TRUE,FALSE);
}
else
{
addTextButton(FRONTEND_SUBTITLES_R, FRONTEND_POS5M-55,FRONTEND_POS5Y, strresGetString(psStringRes,STR_FE_ON),TRUE,FALSE);
addTextButton(FRONTEND_SUBTITLES_R, FRONTEND_POS5M-55,FRONTEND_POS5Y, _("On"),TRUE,FALSE);
}
}
else
{
addTextButton(FRONTEND_SUBTITLES_R, FRONTEND_POS6M-55,FRONTEND_POS5Y, strresGetString(psStringRes,STR_FE_OFF),TRUE,TRUE);
addTextButton(FRONTEND_SUBTITLES_R, FRONTEND_POS6M-55,FRONTEND_POS5Y, _("Off"),TRUE,TRUE);
}
////////////
@ -857,12 +857,12 @@ BOOL runGameOptions2Menu(void)
if( getShakeStatus() )
{
setShakeStatus(FALSE);
widgSetString(psWScreen,FRONTEND_SSHAKE_R, strresGetString(psStringRes,STR_FE_OFF));
widgSetString(psWScreen,FRONTEND_SSHAKE_R, _("Off"));
}
else
{
setShakeStatus(TRUE);
widgSetString(psWScreen,FRONTEND_SSHAKE_R, strresGetString(psStringRes,STR_FE_ON));
widgSetString(psWScreen,FRONTEND_SSHAKE_R, _("On"));
}
break;
break;
@ -871,12 +871,12 @@ BOOL runGameOptions2Menu(void)
if( getInvertMouseStatus() )
{// flipped
setInvertMouseStatus(FALSE);
widgSetString(psWScreen,FRONTEND_MFLIP_R, strresGetString(psStringRes,STR_FE_OFF));
widgSetString(psWScreen,FRONTEND_MFLIP_R, _("Off"));
}
else
{ // not flipped
setInvertMouseStatus(TRUE);
widgSetString(psWScreen,FRONTEND_MFLIP_R, strresGetString(psStringRes,STR_FE_ON));
widgSetString(psWScreen,FRONTEND_MFLIP_R, _("On"));
}
break;
@ -887,14 +887,14 @@ BOOL runGameOptions2Menu(void)
debug(LOG_FOG, "runGameOptions2Menu: Fog of war ON, visual fog OFF");
war_SetFog(FALSE);
avSetStatus(TRUE);
widgSetString(psWScreen,FRONTEND_FOGTYPE_R, strresGetString(psStringRes,STR_FE_GOODFOG));
widgSetString(psWScreen,FRONTEND_FOGTYPE_R, _("Fog Of War"));
}
else
{ // turn off vis fog, turn on normal crap fog.
debug(LOG_FOG, "runGameOptions2Menu: Fog of war OFF, visual fog ON");
avSetStatus(FALSE);
war_SetFog(TRUE);
widgSetString(psWScreen,FRONTEND_FOGTYPE_R, strresGetString(psStringRes,STR_FE_CRAPFOG));
widgSetString(psWScreen,FRONTEND_FOGTYPE_R, _("Mist"));
}
break;
@ -907,12 +907,12 @@ BOOL runGameOptions2Menu(void)
if( seq_GetSubtitles())
{// turn off
seq_SetSubtitles(FALSE);
widgSetString(psWScreen,FRONTEND_SUBTITLES_R,strresGetString(psStringRes,STR_FE_OFF));
widgSetString(psWScreen,FRONTEND_SUBTITLES_R,_("Off"));
}
else
{// turn on
seq_SetSubtitles(TRUE);
widgSetString(psWScreen,FRONTEND_SUBTITLES_R,strresGetString(psStringRes,STR_FE_ON));
widgSetString(psWScreen,FRONTEND_SUBTITLES_R,_("On"));
}
break;
@ -921,17 +921,17 @@ BOOL runGameOptions2Menu(void)
if( war_GetSeqMode() == SEQ_FULL )
{
war_SetSeqMode(SEQ_SMALL);
widgSetString(psWScreen,FRONTEND_SEQUENCE_R, strresGetString(psStringRes,STR_SEQ_WINDOW));
widgSetString(psWScreen,FRONTEND_SEQUENCE_R, _("Windowed"));
}
else if( war_GetSeqMode() == SEQ_SMALL )
{
war_SetSeqMode(SEQ_SKIP);
widgSetString(psWScreen,FRONTEND_SEQUENCE_R, strresGetString(psStringRes,STR_SEQ_MINIMAL));
widgSetString(psWScreen,FRONTEND_SEQUENCE_R, _("Minimal"));
}
else
{
war_SetSeqMode(SEQ_FULL);
widgSetString(psWScreen,FRONTEND_SEQUENCE_R, strresGetString(psStringRes,STR_SEQ_FULL));
widgSetString(psWScreen,FRONTEND_SEQUENCE_R, _("Full"));
}
break;
@ -961,22 +961,22 @@ BOOL startGameOptions3Menu(void)
addBottomForm();
// 2d audio
addTextButton(FRONTEND_FX, FRONTEND_POS2X-25,FRONTEND_POS2Y, strresGetString(psStringRes, STR_FE_FX),TRUE,FALSE);
addTextButton(FRONTEND_FX, FRONTEND_POS2X-25,FRONTEND_POS2Y, _("Voice Volume"),TRUE,FALSE);
addFESlider(FRONTEND_FX_SL, FRONTEND_BOTFORM, FRONTEND_POS2M, FRONTEND_POS2Y+5, AUDIO_VOL_MAX, mixer_GetWavVolume(), FRONTEND_FX );
// 3d audio
addTextButton(FRONTEND_3D_FX, FRONTEND_POS3X-25,FRONTEND_POS3Y, strresGetString(psStringRes, STR_FE_3D_FX),TRUE,FALSE);
addTextButton(FRONTEND_3D_FX, FRONTEND_POS3X-25,FRONTEND_POS3Y, _("FX Volume"),TRUE,FALSE);
addFESlider(FRONTEND_3D_FX_SL,FRONTEND_BOTFORM, FRONTEND_POS3M, FRONTEND_POS3Y+5,AUDIO_VOL_MAX,mixer_Get3dWavVolume(),FRONTEND_3D_FX );
// cd audio
addTextButton(FRONTEND_MUSIC, FRONTEND_POS4X-25,FRONTEND_POS4Y, strresGetString(psStringRes, STR_FE_MUSIC),TRUE,FALSE);
addTextButton(FRONTEND_MUSIC, FRONTEND_POS4X-25,FRONTEND_POS4Y, _("Music Volume"),TRUE,FALSE);
addFESlider(FRONTEND_MUSIC_SL,FRONTEND_BOTFORM, FRONTEND_POS4M, FRONTEND_POS4Y+5,AUDIO_VOL_MAX,mixer_GetCDVolume(),FRONTEND_MUSIC );
// quit.
addMultiBut(psWScreen,FRONTEND_BOTFORM,FRONTEND_QUIT,10,10,30,29, STR_FE_RETURN,IMAGE_RETURN,IMAGE_RETURN_HI,TRUE);
//add some text down the side of the form
addSideText (FRONTEND_SIDETEXT , FRONTEND_SIDEX,FRONTEND_SIDEY, strresGetString(psStringRes, STR_FE_SIDEOPTIONS));
addSideText (FRONTEND_SIDETEXT , FRONTEND_SIDEX,FRONTEND_SIDEY, _("GAME OPTIONS"));
return TRUE;
@ -1047,23 +1047,23 @@ BOOL startGameOptionsMenu(void)
// difficulty
addTextButton(FRONTEND_DIFFICULTY, FRONTEND_POS2X-25,FRONTEND_POS2Y, strresGetString(psStringRes, STR_FE_DIFFICULTY),TRUE,FALSE);
addTextButton(FRONTEND_DIFFICULTY, FRONTEND_POS2X-25,FRONTEND_POS2Y, _("Difficulty"),TRUE,FALSE);
switch(getDifficultyLevel())
{
case DL_EASY:
addTextButton(FRONTEND_DIFFICULTY_R,FRONTEND_POS2M-25,FRONTEND_POS2Y, strresGetString(psStringRes, STR_EASY),TRUE,FALSE);
addTextButton(FRONTEND_DIFFICULTY_R,FRONTEND_POS2M-25,FRONTEND_POS2Y, _("Easy"),TRUE,FALSE);
break;
case DL_NORMAL:
addTextButton(FRONTEND_DIFFICULTY_R,FRONTEND_POS2M-25,FRONTEND_POS2Y, strresGetString(psStringRes, STR_NORMAL),TRUE,FALSE);
addTextButton(FRONTEND_DIFFICULTY_R,FRONTEND_POS2M-25,FRONTEND_POS2Y, _("Normal"),TRUE,FALSE);
break;
case DL_HARD:
default:
addTextButton(FRONTEND_DIFFICULTY_R,FRONTEND_POS2M-25,FRONTEND_POS2Y, strresGetString(psStringRes, STR_HARD),TRUE,FALSE);
addTextButton(FRONTEND_DIFFICULTY_R,FRONTEND_POS2M-25,FRONTEND_POS2Y, _("Hard"),TRUE,FALSE);
break;
}
// scroll speed.
addTextButton(FRONTEND_SCROLLSPEED, FRONTEND_POS3X-25,FRONTEND_POS3Y, strresGetString(psStringRes, STR_FE_SCROLL),TRUE,FALSE);
addTextButton(FRONTEND_SCROLLSPEED, FRONTEND_POS3X-25,FRONTEND_POS3Y, _("Scroll Speed"),TRUE,FALSE);
addFESlider(FRONTEND_SCROLLSPEED_SL,FRONTEND_BOTFORM, FRONTEND_POS3M, FRONTEND_POS3Y+5, 16,(scroll_speed_accel/100),FRONTEND_SCROLLSPEED);
// colour stuff
@ -1079,13 +1079,13 @@ BOOL startGameOptionsMenu(void)
addMultiBut(psWScreen,FRONTEND_BOTFORM,FE_P7, FRONTEND_POS4M+(4*(w+6)),FRONTEND_POS4Y,w,h,0,IMAGE_PLAYER7,IMAGE_PLAYERX,TRUE);
widgSetButtonState(psWScreen, FE_P0+getPlayerColour(0), WBUT_LOCK);
addTextButton(FRONTEND_COLOUR, FRONTEND_POS4X-25,FRONTEND_POS4Y, strresGetString(psStringRes, STR_FE_CLAN),TRUE,FALSE);
addTextButton(FRONTEND_COLOUR, FRONTEND_POS4X-25,FRONTEND_POS4Y, _("Unit Colour"),TRUE,FALSE);
// quit.
addMultiBut(psWScreen,FRONTEND_BOTFORM,FRONTEND_QUIT,10,10,30,29, STR_FE_RETURN,IMAGE_RETURN,IMAGE_RETURN_HI,TRUE);
//add some text down the side of the form
addSideText (FRONTEND_SIDETEXT , FRONTEND_SIDEX,FRONTEND_SIDEY, strresGetString(psStringRes, STR_FE_SIDEOPTIONS));
addSideText (FRONTEND_SIDETEXT , FRONTEND_SIDEX,FRONTEND_SIDEY, _("GAME OPTIONS"));
return TRUE;
}
@ -1111,13 +1111,13 @@ BOOL runGameOptionsMenu(void)
{ // turn off crap fog, turn on vis fog.
war_SetFog(FALSE);
avSetStatus(TRUE);
widgSetString(psWScreen,FRONTEND_FOGTYPE_R, strresGetString(psStringRes,STR_FE_GOODFOG));
widgSetString(psWScreen,FRONTEND_FOGTYPE_R, _("Fog Of War"));
}
else
{ // turn off vis fog, turn on normal crap fog.
avSetStatus(FALSE);
war_SetFog(TRUE);
widgSetString(psWScreen,FRONTEND_FOGTYPE_R, strresGetString(psStringRes,STR_FE_CRAPFOG));
widgSetString(psWScreen,FRONTEND_FOGTYPE_R, _("Mist"));
}
break;
*/
@ -1128,15 +1128,15 @@ BOOL runGameOptionsMenu(void)
{
case DL_EASY:
setDifficultyLevel(DL_NORMAL);
widgSetString(psWScreen,FRONTEND_DIFFICULTY_R, strresGetString(psStringRes,STR_NORMAL));
widgSetString(psWScreen,FRONTEND_DIFFICULTY_R, _("Normal"));
break;
case DL_NORMAL:
setDifficultyLevel(DL_HARD);
widgSetString(psWScreen,FRONTEND_DIFFICULTY_R, strresGetString(psStringRes,STR_HARD) );
widgSetString(psWScreen,FRONTEND_DIFFICULTY_R, _("Hard") );
break;
case DL_HARD:
setDifficultyLevel(DL_EASY);
widgSetString(psWScreen,FRONTEND_DIFFICULTY_R, strresGetString(psStringRes,STR_EASY));
widgSetString(psWScreen,FRONTEND_DIFFICULTY_R, _("Easy"));
break;
default: // DL_TOUGH and DL_KILLER
break;

View File

@ -1135,7 +1135,7 @@ static BOOL intAddEdit(void)
sButInit.height = CLOSE_SIZE;
sButInit.FontID = WFont;
sButInit.pText = pCloseText;
sButInit.pTip = strresGetString(psStringRes, STR_MISC_CLOSE);
sButInit.pTip = _("Close");
if (!widgAddButton(psWScreen, &sButInit))
{
return FALSE;
@ -1781,7 +1781,7 @@ INT_RETVAL intRunWidgets(void)
{
if (saveGame(sRequestResult, GTYPE_SAVE_START))
{
addConsoleMessage(strresGetString(psStringRes, STR_GAME_SAVED), LEFT_JUSTIFY);
addConsoleMessage(_("GAME SAVED!"), LEFT_JUSTIFY);
if(widgGetFromID(psWScreen,IDMISSIONRES_SAVE))
{
@ -3872,7 +3872,7 @@ BOOL intAddReticule(void)
// sButInit.x = 19+RETXOFFSET;
// sButInit.y = 35+RETYOFFSET;
// sButInit.pText = "O";
sButInit.pTip = strresGetString(psStringRes, STR_RET_COMMAND);
sButInit.pTip = _("Commanders");
sButInit.pDisplay = intDisplayReticuleButton;
sButInit.pUserData = (void*)IMAGE_COMMANDDROID_UP;
@ -3888,7 +3888,7 @@ BOOL intAddReticule(void)
// sButInit.x = 19+RETXOFFSET;
// sButInit.y = 70+RETYOFFSET;
// sButInit.pText = "S";
sButInit.pTip = strresGetString(psStringRes, STR_RET_INTELLIGENCE);
sButInit.pTip = _("Intelligence Display");
sButInit.pDisplay = intDisplayReticuleButton;
sButInit.pUserData = (void*)IMAGE_INTELMAP_UP;
@ -3904,7 +3904,7 @@ BOOL intAddReticule(void)
// sButInit.x = 53+RETXOFFSET;
// sButInit.y = 17+RETYOFFSET;
// sButInit.pText = "M";
sButInit.pTip = strresGetString(psStringRes, STR_RET_MANUFACTURE);
sButInit.pTip = _("Manufacture");
sButInit.pDisplay = intDisplayReticuleButton;
sButInit.pUserData = (void*)IMAGE_MANUFACTURE_UP;
@ -3920,7 +3920,7 @@ BOOL intAddReticule(void)
// sButInit.x = 53+RETXOFFSET;
// sButInit.y = 88+RETYOFFSET;
// sButInit.pText = "D";
sButInit.pTip = strresGetString(psStringRes, STR_RET_DESIGN);
sButInit.pTip = _("Design");
sButInit.pDisplay = intDisplayReticuleButton;
sButInit.pUserData = (void*)IMAGE_DESIGN_UP;
@ -3936,7 +3936,7 @@ BOOL intAddReticule(void)
// sButInit.x = 87+RETXOFFSET;
// sButInit.y = 35+RETYOFFSET;
// sButInit.pText = "R";
sButInit.pTip = strresGetString(psStringRes, STR_RET_RESEARCH);
sButInit.pTip = _("Research");
sButInit.pDisplay = intDisplayReticuleButton;
sButInit.pUserData = (void*)IMAGE_RESEARCH_UP;
@ -3952,7 +3952,7 @@ BOOL intAddReticule(void)
// sButInit.x = 87+RETXOFFSET;
// sButInit.y = 70+RETYOFFSET;
// sButInit.pText = "B";
sButInit.pTip = strresGetString(psStringRes, STR_RET_BUILD);
sButInit.pTip = _("Build");
sButInit.pDisplay = intDisplayReticuleButton;
sButInit.pUserData = (void*)IMAGE_BUILD_UP;
@ -3970,7 +3970,7 @@ BOOL intAddReticule(void)
sButInit.width = RET_BUTWIDTH + 10;
sButInit.height = RET_BUTHEIGHT + 8;
// sButInit.pText = "C";
sButInit.pTip = strresGetString(psStringRes, STR_RET_CLOSE);
sButInit.pTip = _("Close");
sButInit.pDisplay = intDisplayReticuleButton;
sButInit.pUserData = (void*)IMAGE_CANCEL_UP;
if (!widgAddButton(psWScreen, &sButInit))
@ -4032,7 +4032,7 @@ BOOL intAddPower(void)
sBarInit.pDisplay = intDisplayPowerBar;
sBarInit.iRange = POWERBAR_SCALE;
sBarInit.pTip = strresGetString(psStringRes, STR_INT_POWER);
sBarInit.pTip = _("Power");
if (!widgAddBarGraph(psWScreen, &sBarInit))
{
@ -4124,7 +4124,7 @@ BOOL intAddOptions(void)
sButInit.height = CLOSE_SIZE;
sButInit.FontID = WFont;
sButInit.pText = pCloseText;
sButInit.pTip = strresGetString(psStringRes, STR_MISC_CLOSE);
sButInit.pTip = _("Close");
if (!widgAddButton(psWScreen, &sButInit))
{
return FALSE;
@ -4194,7 +4194,7 @@ BOOL intAddOptions(void)
sButInit.x = OPT_GAP;
sButInit.y = OPT_LOADY;
sButInit.pText = "Load";
sButInit.pTip = strresGetString(psStringRes, STR_MISC_LOADGAME);
sButInit.pTip = _("Load Game");
if (!widgAddButton(psWScreen, &sButInit))
{
return FALSE;
@ -4202,7 +4202,7 @@ BOOL intAddOptions(void)
sButInit.id = IDOPT_SAVEGAME;
sButInit.x += OPT_GAP + OPT_BUTWIDTH;
sButInit.pText = "Save";
sButInit.pTip = strresGetString(psStringRes, STR_MISC_SAVEGAME);
sButInit.pTip = _("Save Game");
if (!widgAddButton(psWScreen, &sButInit))
{
return FALSE;
@ -4286,7 +4286,7 @@ BOOL intAddOptions(void)
sButInit.width = OPT_WIDTH - OPT_GAP*2;
sButInit.height = OPT_BUTHEIGHT;
sButInit.pText = "Quit";
sButInit.pTip = strresGetString(psStringRes, STR_MISC_QUIT);
sButInit.pTip = _("Exit Game");
if (!widgAddButton(psWScreen, &sButInit))
{
return FALSE;
@ -4570,7 +4570,7 @@ static BOOL intAddObjectWindow(BASE_OBJECT *psObjects, BASE_OBJECT *psSelected,B
sButInit.y = 0;
sButInit.width = CLOSE_WIDTH;
sButInit.height = CLOSE_HEIGHT;
sButInit.pTip = strresGetString(psStringRes, STR_MISC_CLOSE);
sButInit.pTip = _("Close");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayImageHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_CLOSEHILIGHT , IMAGE_CLOSE);
@ -4646,7 +4646,7 @@ static BOOL intAddObjectWindow(BASE_OBJECT *psObjects, BASE_OBJECT *psSelected,B
sBarInit.sMinorCol.red = STAT_PROGBARMINORRED;
sBarInit.sMinorCol.green = STAT_PROGBARMINORGREEN;
sBarInit.sMinorCol.blue = STAT_PROGBARMINORBLUE;
sBarInit.pTip = strresGetString(psStringRes, STR_INT_BLDPROGRESS);
sBarInit.pTip = _("Progress Bar");
//object output bar ie manuf power o/p, research power o/p
memcpy(&sBarInit2,&sBarInit,sizeof(W_BARINIT));
@ -4656,7 +4656,7 @@ static BOOL intAddObjectWindow(BASE_OBJECT *psObjects, BASE_OBJECT *psSelected,B
sBarInit2.y = STAT_POWERBARY;
sBarInit2.size = 50;
//don't set the tip cos we haven't got a suitable text string at this point - 2/2/99
//sBarInit2.pTip = strresGetString(psStringRes, STR_INT_BLDSPEED);
//sBarInit2.pTip = _("Build Speed");
sBarInit2.pTip = NULL;
memset(&sLabInit,0,sizeof(W_LABINIT));
@ -5724,7 +5724,7 @@ static BOOL intAddStats(BASE_STATS **ppsStatsList, UDWORD numStats,
sButInit.y = STAT_SLDY;
sButInit.width = iV_GetImageWidth(IntImages,IMAGE_FDP_DOWN);
sButInit.height = iV_GetImageHeight(IntImages,IMAGE_FDP_DOWN);
sButInit.pTip = strresGetString(psStringRes, STR_INT_DPOINT);
sButInit.pTip = _("Factory Delivery Point");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayDPButton;
sButInit.pUserData = (void*)psOwner;
@ -5743,7 +5743,7 @@ static BOOL intAddStats(BASE_STATS **ppsStatsList, UDWORD numStats,
sButInit.y = STAT_SLDY;
sButInit.width = iV_GetImageWidth(IntImages,IMAGE_LOOP_DOWN);
sButInit.height = iV_GetImageHeight(IntImages,IMAGE_LOOP_DOWN);
sButInit.pTip = strresGetString(psStringRes, STR_INT_LOOP);
sButInit.pTip = _("Loop Production");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayButtonPressed;
sButInit.pUserData = (void*)PACKDWORD_TRI(IMAGE_LOOP_DOWN,
@ -5810,7 +5810,7 @@ static BOOL intAddStats(BASE_STATS **ppsStatsList, UDWORD numStats,
sButInit.y = 0;
sButInit.width = CLOSE_WIDTH;
sButInit.height = CLOSE_HEIGHT;
sButInit.pTip = strresGetString(psStringRes, STR_MISC_CLOSE);
sButInit.pTip = _("Close");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayImageHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_CLOSEHILIGHT , IMAGE_CLOSE);
@ -5890,7 +5890,7 @@ static BOOL intAddStats(BASE_STATS **ppsStatsList, UDWORD numStats,
sBarInit.sMinorCol.red = STAT_PROGBARMINORRED;
sBarInit.sMinorCol.green = STAT_PROGBARMINORGREEN;
sBarInit.sMinorCol.blue = STAT_PROGBARMINORBLUE;
//sBarInit.pTip = strresGetString(psStringRes, STR_INT_PWRUSAGE);
//sBarInit.pTip = _("Power Usage");
statID = 0;
statForm = 0;
@ -5935,7 +5935,7 @@ static BOOL intAddStats(BASE_STATS **ppsStatsList, UDWORD numStats,
if (Stat->ref >= REF_STRUCTURE_START &&
Stat->ref < REF_STRUCTURE_START + REF_RANGE) { // It's a structure.
//sBarInit.pTip = strresGetString(psStringRes, STR_INT_BLDSPEED);
//sBarInit.pTip = _("Build Speed");
//sBarInit.size = (UWORD)(((STRUCTURE_STATS*)Stat)->buildPoints / BUILDPOINTS_STRUCTDIV);
sBarInit.size = (UWORD)(((STRUCTURE_STATS*)Stat)->powerToBuild /
POWERPOINTS_DROIDDIV);
@ -5954,7 +5954,7 @@ static BOOL intAddStats(BASE_STATS **ppsStatsList, UDWORD numStats,
//sBarInit.size = (UWORD)(((DROID_TEMPLATE*)Stat)->buildPoints / BUILDPOINTS_DROIDDIV);
sBarInit.size = (UWORD)(((DROID_TEMPLATE*)Stat)->powerPoints /
POWERPOINTS_DROIDDIV);
//sBarInit.pTip = strresGetString(psStringRes, STR_INT_PWRUSAGE);
//sBarInit.pTip = _("Power Usage");
if(sBarInit.size > 100) sBarInit.size = 100;
sBarInit.formID = sBFormInit.id;
@ -5995,7 +5995,7 @@ static BOOL intAddStats(BASE_STATS **ppsStatsList, UDWORD numStats,
//add power bar as well
sBarInit.size = (UWORD)(((RESEARCH *)Stat)->researchPower /
POWERPOINTS_DROIDDIV);
//sBarInit.pTip = strresGetString(psStringRes, STR_INT_PWRUSAGE);
//sBarInit.pTip = _("Power Usage");
if(sBarInit.size > 100) sBarInit.size = 100;

View File

@ -436,16 +436,16 @@ void intProcessInGameOptions(UDWORD id)
// {
// loopMissionState = LMS_LOADGAME;
// strcpy(saveGameName, "replay/replay.gam");
// addConsoleMessage(strresGetString(psStringRes, STR_GAME_SAVED), LEFT_JUSTIFY);
// addConsoleMessage(_("GAME SAVED!"), LEFT_JUSTIFY);
// }
// break;
case INTINGAMEOP_LOAD:
intCloseInGameOptions(TRUE, FALSE);
addLoadSave(LOAD_INGAME,SaveGamePath,"gam",strresGetString(psStringRes,STR_MR_LOAD_GAME)); // change mode when loadsave returns// if(runLoadSave())// check for file name.
addLoadSave(LOAD_INGAME,SaveGamePath,"gam",_("Load Saved Game")); // change mode when loadsave returns// if(runLoadSave())// check for file name.
break;
case INTINGAMEOP_SAVE:
intCloseInGameOptions(TRUE, FALSE);
addLoadSave(SAVE_INGAME,SaveGamePath,"gam", strresGetString(psStringRes,STR_MR_SAVE_GAME) );
addLoadSave(SAVE_INGAME,SaveGamePath,"gam", _("Save Game") );
break;

View File

@ -261,7 +261,7 @@ void intUpdateProgressBar(WIDGET *psWidget, W_CONTEXT *psContext)
//set the colour of the bar to green
BarGraph->majorCol = COL_LIGHTGREEN;
//and change the tool tip
BarGraph->pTip = strresGetString(psStringRes, STR_INT_POWERACCRUED);
BarGraph->pTip = _("Power Accrued");
}
else
{
@ -271,7 +271,7 @@ void intUpdateProgressBar(WIDGET *psWidget, W_CONTEXT *psContext)
//set the colour of the bar to yellow
BarGraph->majorCol = COL_YELLOW;
//and change the tool tip
BarGraph->pTip = strresGetString(psStringRes, STR_INT_BLDPROGRESS);
BarGraph->pTip = _("Progress Bar");
}
if (BuildPoints > Range)
{
@ -306,7 +306,7 @@ void intUpdateProgressBar(WIDGET *psWidget, W_CONTEXT *psContext)
//set the colour of the bar to green
BarGraph->majorCol = COL_LIGHTGREEN;
//and change the tool tip
BarGraph->pTip = strresGetString(psStringRes, STR_INT_POWERACCRUED);
BarGraph->pTip = _("Power Accrued");
}
else
{
@ -314,7 +314,7 @@ void intUpdateProgressBar(WIDGET *psWidget, W_CONTEXT *psContext)
//set the colour of the bar to yellow
BarGraph->majorCol = COL_YELLOW;
//and change the tool tip
BarGraph->pTip = strresGetString(psStringRes, STR_INT_BLDPROGRESS);
BarGraph->pTip = _("Progress Bar");
//if on hold need to take it into account
if (Manufacture->timeStartHold)
{
@ -352,14 +352,14 @@ void intUpdateProgressBar(WIDGET *psWidget, W_CONTEXT *psContext)
//set the colour of the bar to green
BarGraph->majorCol = COL_LIGHTGREEN;
//and change the tool tip
BarGraph->pTip = strresGetString(psStringRes, STR_INT_POWERACCRUED);
BarGraph->pTip = _("Power Accrued");
}
else
{
//set the colour of the bar to yellow
BarGraph->majorCol = COL_YELLOW;
//and change the tool tip
BarGraph->pTip = strresGetString(psStringRes, STR_INT_BLDPROGRESS);
BarGraph->pTip = _("Progress Bar");
//if on hold need to take it into account
if (Research->timeStartHold)
{

View File

@ -330,7 +330,7 @@ BOOL intAddIntelMap(void)
sLabInit.y = INTMAP_LABELY+PAUSEMESSAGE_YOFFSET;
sLabInit.width = INTMAP_LABELWIDTH;
sLabInit.height = INTMAP_LABELHEIGHT;
sLabInit.pText = strresGetString(psStringRes, STR_MISC_PAUSED);
sLabInit.pText = _("PAUSED");
sLabInit.FontID = WFont;
if (!widgAddLabel(psWScreen, &sLabInit))
{
@ -497,14 +497,14 @@ static BOOL intAddMessageForm(BOOL playCurrent)
else
{
sBFormInit.pTip = strresGetString(psStringRes, STR_INT_RESMESSAGE);
sBFormInit.pTip = _("Research Update");
}
break;
case MSG_CAMPAIGN:
sBFormInit.pTip = strresGetString(psStringRes, STR_INT_GENMESSAGE);
sBFormInit.pTip = _("Project Goals");
break;
case MSG_MISSION:
sBFormInit.pTip = strresGetString(psStringRes, STR_INT_MISMESSAGE);
sBFormInit.pTip = _("Current Objective");
break;
default:
break;
@ -661,7 +661,7 @@ BOOL intAddMessageView(MESSAGE * psMessage)
sButInit.y = OPT_GAP;
sButInit.width = CLOSE_SIZE;
sButInit.height = CLOSE_SIZE;
sButInit.pTip = strresGetString(psStringRes, STR_MISC_CLOSE);
sButInit.pTip = _("Close");
sButInit.pDisplay = intDisplayImageHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_CLOSEHILIGHT , IMAGE_CLOSE);
if (!widgAddButton(psWScreen, &sButInit))

View File

@ -603,7 +603,7 @@ BOOL intAddOrder(BASE_OBJECT *psObj)
sButInit.y = 0;
sButInit.width = CLOSE_WIDTH;
sButInit.height = CLOSE_HEIGHT;
sButInit.pTip = strresGetString(psStringRes, STR_MISC_CLOSE);
sButInit.pTip = _("Close");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayImageHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_CLOSEHILIGHT , IMAGE_CLOSE);

View File

@ -1236,7 +1236,7 @@ void kf_SeekNorth( void )
{
camToggleStatus();
}
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GAM_NORTH)));
CONPRINTF(ConsoleString,(ConsoleString,_("View Aligned to North")));
}
// --------------------------------------------------------------------------
@ -1260,7 +1260,7 @@ void kf_TogglePauseMode( void )
setAudioPause(TRUE);
/* And stop the clock */
gameTimeStop();
addConsoleMessage(strresGetString(psStringRes,STR_MISC_PAUSED),CENTRE_JUSTIFY);
addConsoleMessage(_("PAUSED"),CENTRE_JUSTIFY);
}
else
@ -1306,7 +1306,7 @@ void kf_ToggleEnergyBars( void )
{
toggleEnergyBars();
CONPRINTF(ConsoleString,(ConsoleString, strresGetString(psStringRes,STR_GAM_ENERGY ) ));
CONPRINTF(ConsoleString,(ConsoleString, _("Energy bars display toggled") ));
}
// --------------------------------------------------------------------------
@ -1314,7 +1314,7 @@ void kf_ToggleReloadBars( void )
{
toggleReloadBarDisplay();
CONPRINTF(ConsoleString,(ConsoleString, strresGetString(psStringRes,STR_GAM_ENERGY ) ));
CONPRINTF(ConsoleString,(ConsoleString, _("Energy bars display toggled") ));
}
// --------------------------------------------------------------------------
@ -1380,7 +1380,7 @@ SDWORD xJump,yJump;
}
else
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_RESNOTFOUND),LEFT_JUSTIFY);
addConsoleMessage(_("Unable to locate any resource extractors!"),LEFT_JUSTIFY);
}
}
@ -2295,7 +2295,7 @@ UDWORD xJump = 0, yJump = 0;
/* If we found it, then jump to it! */
if(bGotHQ)
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_GOHQ),LEFT_JUSTIFY);
addConsoleMessage(_("Centered on player HQ, direction NORTH"),LEFT_JUSTIFY);
player.p.x = xJump;
player.p.z = yJump;
player.r.y = 0; // face north
@ -2307,7 +2307,7 @@ UDWORD xJump = 0, yJump = 0;
}
else
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_NOHQ),LEFT_JUSTIFY);
addConsoleMessage(_("Unable to locate HQ!"),LEFT_JUSTIFY);
}
}
@ -2323,11 +2323,11 @@ void kf_ToggleFormationSpeedLimiting( void )
if ( moveFormationSpeedLimitingOn() )
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_FORMATION_OFF),LEFT_JUSTIFY);
addConsoleMessage(_("Formation speed limiting OFF"),LEFT_JUSTIFY);
}
else
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_FORMATION_ON),LEFT_JUSTIFY);
addConsoleMessage(_("Formation speed limiting ON"),LEFT_JUSTIFY);
}
moveToggleFormationSpeedLimiting();
}
@ -2457,9 +2457,9 @@ void kf_SpeedUp( void )
mod = available_speed[i];
if (mod == FRACTCONST(1, 1)) {
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GAM_NORMAL_SPEED)));
CONPRINTF(ConsoleString,(ConsoleString,_("Game Speed Reset")));
} else {
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GAM_SPEED_UP),mod));
CONPRINTF(ConsoleString,(ConsoleString,_("Game Speed Increased to %3.1f"),mod));
}
gameTimeSetMod(mod);
break;
@ -2484,9 +2484,9 @@ void kf_SlowDown( void )
mod = available_speed[i];
if (mod == FRACTCONST(1, 1)) {
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GAM_NORMAL_SPEED)));
CONPRINTF(ConsoleString,(ConsoleString,_("Game Speed Reset")));
} else {
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GAM_SLOW_DOWN),mod));
CONPRINTF(ConsoleString,(ConsoleString,_("Game Speed Reduced to %3.1f"),mod));
}
gameTimeSetMod(mod);
break;
@ -2499,7 +2499,7 @@ void kf_NormalSpeed( void )
{
if ( (!bMultiPlayer || (NetPlay.bComms == 0)) && !bInTutorial)
{
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GAM_NORMAL_SPEED)));
CONPRINTF(ConsoleString,(ConsoleString,_("Game Speed Reset")));
gameTimeResetMod();
}
}
@ -2512,11 +2512,11 @@ void kf_ToggleReopenBuildMenu( void )
if (intGetReopenBuild())
{
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GAM_BUILD_REOPEN)));
CONPRINTF(ConsoleString,(ConsoleString,_("Build menu will reopen")));
}
else
{
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GAM_BUILD_NO_REOPEN)));
CONPRINTF(ConsoleString,(ConsoleString,_("Build menu will not reopen")));
}
}

View File

@ -356,7 +356,7 @@ BOOL startKeyMapEditor(BOOL first)
KEY_MAPPING *psPresent = NULL, *psNext;
char test[255];
addBackdrop();
addSideText (FRONTEND_SIDETEXT ,KM_X-2,KM_Y,strresGetString(psStringRes, STR_KM_KEYMAP_SIDE));
addSideText (FRONTEND_SIDETEXT ,KM_X-2,KM_Y,_("KEY MAPPING"));
if (first)
{

View File

@ -282,106 +282,106 @@ void keyInitMappings( BOOL bForceDefaults )
// **********************************
// **********************************
// FUNCTION KEY MAPPINGS F1 to F12
keyAddMapping(KEYMAP_ALWAYS_PROCESS,KEY_IGNORE,KEY_F1,KEYMAP_PRESSED,kf_ChooseManufacture, strresGetString(psStringRes,STR_RET_MANUFACTURE));
keyAddMapping(KEYMAP_ALWAYS_PROCESS,KEY_IGNORE,KEY_F2,KEYMAP_PRESSED,kf_ChooseResearch, strresGetString(psStringRes,STR_RET_RESEARCH));
keyAddMapping(KEYMAP_ALWAYS_PROCESS,KEY_IGNORE,KEY_F3,KEYMAP_PRESSED,kf_ChooseBuild, strresGetString(psStringRes,STR_RET_BUILD));
keyAddMapping(KEYMAP_ALWAYS_PROCESS,KEY_IGNORE,KEY_F4,KEYMAP_PRESSED,kf_ChooseDesign, strresGetString(psStringRes,STR_RET_DESIGN));
keyAddMapping(KEYMAP_ALWAYS_PROCESS,KEY_IGNORE,KEY_F5,KEYMAP_PRESSED,kf_ChooseIntelligence, strresGetString(psStringRes,STR_RET_INTELLIGENCE));
keyAddMapping(KEYMAP_ALWAYS_PROCESS,KEY_IGNORE,KEY_F6,KEYMAP_PRESSED,kf_ChooseCommand, strresGetString(psStringRes,STR_RET_COMMAND));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F7,KEYMAP_PRESSED,kf_ToggleRadar, strresGetString(psStringRes,STR_BIND_TOGRAD));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F8,KEYMAP_PRESSED,kf_ToggleConsole, strresGetString(psStringRes,STR_BIND_TOGCON));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F9,KEYMAP_PRESSED,kf_ToggleEnergyBars, strresGetString(psStringRes,STR_BIND_BARS));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F10,KEYMAP_PRESSED,kf_ScreenDump, strresGetString(psStringRes,STR_BIND_SHOT));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F11,KEYMAP_PRESSED,kf_ToggleFormationSpeedLimiting, strresGetString(psStringRes,STR_BIND_SPLIM));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F12,KEYMAP_PRESSED,kf_MoveToLastMessagePos, strresGetString(psStringRes,STR_BIND_PREV));
keyAddMapping(KEYMAP_ALWAYS_PROCESS,KEY_IGNORE,KEY_F1,KEYMAP_PRESSED,kf_ChooseManufacture, _("Manufacture"));
keyAddMapping(KEYMAP_ALWAYS_PROCESS,KEY_IGNORE,KEY_F2,KEYMAP_PRESSED,kf_ChooseResearch, _("Research"));
keyAddMapping(KEYMAP_ALWAYS_PROCESS,KEY_IGNORE,KEY_F3,KEYMAP_PRESSED,kf_ChooseBuild, _("Build"));
keyAddMapping(KEYMAP_ALWAYS_PROCESS,KEY_IGNORE,KEY_F4,KEYMAP_PRESSED,kf_ChooseDesign, _("Design"));
keyAddMapping(KEYMAP_ALWAYS_PROCESS,KEY_IGNORE,KEY_F5,KEYMAP_PRESSED,kf_ChooseIntelligence, _("Intelligence Display"));
keyAddMapping(KEYMAP_ALWAYS_PROCESS,KEY_IGNORE,KEY_F6,KEYMAP_PRESSED,kf_ChooseCommand, _("Commanders"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F7,KEYMAP_PRESSED,kf_ToggleRadar, _("Toggle Radar"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F8,KEYMAP_PRESSED,kf_ToggleConsole, _("Toggle Console Display"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F9,KEYMAP_PRESSED,kf_ToggleEnergyBars, _("Toggle Damage Bars On/Off"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F10,KEYMAP_PRESSED,kf_ScreenDump, _("Take Screen Shot"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F11,KEYMAP_PRESSED,kf_ToggleFormationSpeedLimiting, _("Toggle Formation Speed Limiting"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F12,KEYMAP_PRESSED,kf_MoveToLastMessagePos, _("View Location of Previous Message"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LSHIFT,KEY_F12,KEYMAP_PRESSED,kf_ToggleSensorDisplay,"Toggle Sensor display"); //Which key should we use? --Re enabled see below! -Q 5-10-05
// **********************************
// **********************************
// ASSIGN GROUPS
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_1,KEYMAP_PRESSED,kf_AssignGrouping_1, strresGetString(psStringRes,STR_BIND_AS1));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_2,KEYMAP_PRESSED,kf_AssignGrouping_2, strresGetString(psStringRes,STR_BIND_AS2));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_3,KEYMAP_PRESSED,kf_AssignGrouping_3, strresGetString(psStringRes,STR_BIND_AS3));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_4,KEYMAP_PRESSED,kf_AssignGrouping_4, strresGetString(psStringRes,STR_BIND_AS4));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_5,KEYMAP_PRESSED,kf_AssignGrouping_5, strresGetString(psStringRes,STR_BIND_AS5));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_6,KEYMAP_PRESSED,kf_AssignGrouping_6, strresGetString(psStringRes,STR_BIND_AS6));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_7,KEYMAP_PRESSED,kf_AssignGrouping_7, strresGetString(psStringRes,STR_BIND_AS7));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_8,KEYMAP_PRESSED,kf_AssignGrouping_8, strresGetString(psStringRes,STR_BIND_AS8));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_9,KEYMAP_PRESSED,kf_AssignGrouping_9, strresGetString(psStringRes,STR_BIND_AS9));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_1,KEYMAP_PRESSED,kf_AssignGrouping_1, _("Assign Group 1"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_2,KEYMAP_PRESSED,kf_AssignGrouping_2, _("Assign Group 2"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_3,KEYMAP_PRESSED,kf_AssignGrouping_3, _("Assign Group 3"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_4,KEYMAP_PRESSED,kf_AssignGrouping_4, _("Assign Group 4"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_5,KEYMAP_PRESSED,kf_AssignGrouping_5, _("Assign Group 5"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_6,KEYMAP_PRESSED,kf_AssignGrouping_6, _("Assign Group 6"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_7,KEYMAP_PRESSED,kf_AssignGrouping_7, _("Assign Group 7"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_8,KEYMAP_PRESSED,kf_AssignGrouping_8, _("Assign Group 8"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_9,KEYMAP_PRESSED,kf_AssignGrouping_9, _("Assign Group 9"));
// **********************************
// **********************************
// SELECT GROUPS - Will jump to the group as well as select if group is ALREADY selected
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_1,KEYMAP_PRESSED,kf_SelectGrouping_1, strresGetString(psStringRes,STR_BIND_GR1));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_2,KEYMAP_PRESSED,kf_SelectGrouping_2, strresGetString(psStringRes,STR_BIND_GR2));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_3,KEYMAP_PRESSED,kf_SelectGrouping_3, strresGetString(psStringRes,STR_BIND_GR3));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_4,KEYMAP_PRESSED,kf_SelectGrouping_4, strresGetString(psStringRes,STR_BIND_GR4));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_5,KEYMAP_PRESSED,kf_SelectGrouping_5, strresGetString(psStringRes,STR_BIND_GR5));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_6,KEYMAP_PRESSED,kf_SelectGrouping_6, strresGetString(psStringRes,STR_BIND_GR6));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_7,KEYMAP_PRESSED,kf_SelectGrouping_7, strresGetString(psStringRes,STR_BIND_GR7));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_8,KEYMAP_PRESSED,kf_SelectGrouping_8, strresGetString(psStringRes,STR_BIND_GR8));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_9,KEYMAP_PRESSED,kf_SelectGrouping_9, strresGetString(psStringRes,STR_BIND_GR9));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_1,KEYMAP_PRESSED,kf_SelectGrouping_1, _("Select Group 1"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_2,KEYMAP_PRESSED,kf_SelectGrouping_2, _("Select Group 2"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_3,KEYMAP_PRESSED,kf_SelectGrouping_3, _("Select Group 3"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_4,KEYMAP_PRESSED,kf_SelectGrouping_4, _("Select Group 4"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_5,KEYMAP_PRESSED,kf_SelectGrouping_5, _("Select Group 5"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_6,KEYMAP_PRESSED,kf_SelectGrouping_6, _("Select Group 6"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_7,KEYMAP_PRESSED,kf_SelectGrouping_7, _("Select Group 7"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_8,KEYMAP_PRESSED,kf_SelectGrouping_8, _("Select Group 8"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_9,KEYMAP_PRESSED,kf_SelectGrouping_9, _("Select Group 9"));
// **********************************
// **********************************
// SELECT COMMANDER - Will jump to the group as well as select if group is ALREADY selected
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_1,KEYMAP_PRESSED,kf_SelectCommander_1, strresGetString(psStringRes,STR_BIND_CMD1));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_2,KEYMAP_PRESSED,kf_SelectCommander_2, strresGetString(psStringRes,STR_BIND_CMD2));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_3,KEYMAP_PRESSED,kf_SelectCommander_3, strresGetString(psStringRes,STR_BIND_CMD3));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_4,KEYMAP_PRESSED,kf_SelectCommander_4, strresGetString(psStringRes,STR_BIND_CMD4));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_5,KEYMAP_PRESSED,kf_SelectCommander_5, strresGetString(psStringRes,STR_BIND_CMD5));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_6,KEYMAP_PRESSED,kf_SelectCommander_6, strresGetString(psStringRes,STR_BIND_CMD6));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_7,KEYMAP_PRESSED,kf_SelectCommander_7, strresGetString(psStringRes,STR_BIND_CMD7));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_8,KEYMAP_PRESSED,kf_SelectCommander_8, strresGetString(psStringRes,STR_BIND_CMD8));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_9,KEYMAP_PRESSED,kf_SelectCommander_9, strresGetString(psStringRes,STR_BIND_CMD9));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_1,KEYMAP_PRESSED,kf_SelectCommander_1, _("Select Commander 1"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_2,KEYMAP_PRESSED,kf_SelectCommander_2, _("Select Commander 2"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_3,KEYMAP_PRESSED,kf_SelectCommander_3, _("Select Commander 3"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_4,KEYMAP_PRESSED,kf_SelectCommander_4, _("Select Commander 4"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_5,KEYMAP_PRESSED,kf_SelectCommander_5, _("Select Commander 5"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_6,KEYMAP_PRESSED,kf_SelectCommander_6, _("Select Commander 6"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_7,KEYMAP_PRESSED,kf_SelectCommander_7, _("Select Commander 7"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_8,KEYMAP_PRESSED,kf_SelectCommander_8, _("Select Commander 8"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_9,KEYMAP_PRESSED,kf_SelectCommander_9, _("Select Commander 9"));
// **********************************
// **********************************
// MULTIPLAYER
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KPENTER,KEYMAP_PRESSED,kf_addMultiMenu, strresGetString(psStringRes,STR_BIND_MULOP));
keyAddMapping(KEYMAP_ALWAYS,KEY_IGNORE,KEY_KP_FULLSTOP,KEYMAP_PRESSED,kf_multiAudioStart, strresGetString(psStringRes,STR_BIND_AUDON));
keyAddMapping(KEYMAP_ALWAYS,KEY_IGNORE,KEY_KP_FULLSTOP,KEYMAP_RELEASED,kf_multiAudioStop, strresGetString(psStringRes,STR_BIND_AUDOFF));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KPENTER,KEYMAP_PRESSED,kf_addMultiMenu, _("Multiplayer Options"));
keyAddMapping(KEYMAP_ALWAYS,KEY_IGNORE,KEY_KP_FULLSTOP,KEYMAP_PRESSED,kf_multiAudioStart, _("Start Multiplayer Audio"));
keyAddMapping(KEYMAP_ALWAYS,KEY_IGNORE,KEY_KP_FULLSTOP,KEYMAP_RELEASED,kf_multiAudioStop, _("Stop Multiplayer Audio"));
//
// GAME CONTROLS - Moving around, zooming in, rotating etc
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_BACKSPACE,KEYMAP_PRESSED,kf_SeekNorth, strresGetString(psStringRes,STR_BIND_NORTH));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_SPACE,KEYMAP_PRESSED,kf_ToggleCamera, strresGetString(psStringRes,STR_BIND_TRACK));
keyAddMapping(KEYMAP_ALWAYS,KEY_IGNORE,KEY_ESC,KEYMAP_PRESSED,kf_addInGameOptions, strresGetString(psStringRes,STR_BIND_OPT));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_MINUS,KEYMAP_PRESSED,kf_RadarZoomOut, strresGetString(psStringRes,STR_BIND_RIN));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_EQUALS,KEYMAP_PRESSED,kf_RadarZoomIn, strresGetString(psStringRes,STR_BIND_ROUT));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_MINUS,KEYMAP_DOWN,kf_ZoomOut, strresGetString(psStringRes,STR_BIND_ZOUT));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_PLUS,KEYMAP_DOWN,kf_ZoomIn, strresGetString(psStringRes,STR_BIND_ZIN));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_2,KEYMAP_DOWN,kf_PitchForward, strresGetString(psStringRes,STR_BIND_PF));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_4,KEYMAP_DOWN,kf_RotateLeft, strresGetString(psStringRes,STR_BIND_RL));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_5,KEYMAP_DOWN,kf_ResetPitch, strresGetString(psStringRes,STR_BIND_RP));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_6,KEYMAP_DOWN,kf_RotateRight, strresGetString(psStringRes,STR_BIND_RR));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_8,KEYMAP_DOWN,kf_PitchBack, strresGetString(psStringRes,STR_BIND_PB));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_0,KEYMAP_PRESSED,kf_RightOrderMenu, strresGetString(psStringRes,STR_BIND_ORD));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_MINUS,KEYMAP_PRESSED,kf_SlowDown, strresGetString(psStringRes,STR_BIND_SLOW_DOWN));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_EQUALS,KEYMAP_PRESSED,kf_SpeedUp, strresGetString(psStringRes,STR_BIND_SPEED_UP));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_BACKSPACE,KEYMAP_PRESSED,kf_NormalSpeed, strresGetString(psStringRes,STR_BIND_NORMAL_SPEED));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_UPARROW,KEYMAP_PRESSED,kf_FaceNorth, strresGetString(psStringRes,STR_BIND_UP));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_DOWNARROW,KEYMAP_PRESSED,kf_FaceSouth,strresGetString(psStringRes,STR_BIND_DOWN) );
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_LEFTARROW,KEYMAP_PRESSED,kf_FaceEast, strresGetString(psStringRes,STR_BIND_RIGHT));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_RIGHTARROW,KEYMAP_PRESSED,kf_FaceWest, strresGetString(psStringRes,STR_BIND_LEFT));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_STAR,KEYMAP_PRESSED,kf_JumpToResourceExtractor, strresGetString(psStringRes,STR_BIND_RESJ));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_JumpToRepairUnits, strresGetString(psStringRes,STR_BIND_REPJ));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_JumpToConstructorUnits, strresGetString(psStringRes,STR_BIND_CONJ));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_JumpToSensorUnits, strresGetString(psStringRes,STR_BIND_SENJ));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_JumpToCommandUnits, strresGetString(psStringRes,STR_BIND_COMJ));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_TAB,KEYMAP_PRESSED,kf_ToggleOverlays, strresGetString(psStringRes,STR_BIND_OVERL));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_BACKQUOTE,KEYMAP_PRESSED,kf_ToggleConsoleDrop,strresGetString(psStringRes,STR_BIND_CONSOLE));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_BACKSPACE,KEYMAP_PRESSED,kf_SeekNorth, _("Snap View to North"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_SPACE,KEYMAP_PRESSED,kf_ToggleCamera, _("Toggle Tracking Camera"));
keyAddMapping(KEYMAP_ALWAYS,KEY_IGNORE,KEY_ESC,KEYMAP_PRESSED,kf_addInGameOptions, _("Display In-Game Options"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_MINUS,KEYMAP_PRESSED,kf_RadarZoomOut, _("Zoom Radar Out"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_EQUALS,KEYMAP_PRESSED,kf_RadarZoomIn, _("Zoom Radar In"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_MINUS,KEYMAP_DOWN,kf_ZoomOut, _("Zoom In"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_PLUS,KEYMAP_DOWN,kf_ZoomIn, _("Zoom Out"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_2,KEYMAP_DOWN,kf_PitchForward, _("Pitch Forward"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_4,KEYMAP_DOWN,kf_RotateLeft, _("Rotate Left"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_5,KEYMAP_DOWN,kf_ResetPitch, _("Reset Pitch"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_6,KEYMAP_DOWN,kf_RotateRight, _("Rotate Right"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_8,KEYMAP_DOWN,kf_PitchBack, _("Pitch Back"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_0,KEYMAP_PRESSED,kf_RightOrderMenu, _("Orders Menu"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_MINUS,KEYMAP_PRESSED,kf_SlowDown, _("Decrease Game Speed"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_EQUALS,KEYMAP_PRESSED,kf_SpeedUp, _("Increase Game Speed"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_BACKSPACE,KEYMAP_PRESSED,kf_NormalSpeed, _("Reset Game Speed"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_UPARROW,KEYMAP_PRESSED,kf_FaceNorth, _("View North"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_DOWNARROW,KEYMAP_PRESSED,kf_FaceSouth,_("View South") );
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_LEFTARROW,KEYMAP_PRESSED,kf_FaceEast, _("View East"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_RIGHTARROW,KEYMAP_PRESSED,kf_FaceWest, _("View West"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_KP_STAR,KEYMAP_PRESSED,kf_JumpToResourceExtractor, _("View next Oil Derrick"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_JumpToRepairUnits, _("View next Repair Unit"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_JumpToConstructorUnits, _("View next Truck"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_JumpToSensorUnits, _("View next Sensor Unit"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_JumpToCommandUnits, _("View next Commander"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_TAB,KEYMAP_PRESSED,kf_ToggleOverlays, _("Toggle Overlays"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_BACKQUOTE,KEYMAP_PRESSED,kf_ToggleConsoleDrop,_("Console On/Off"));
// **********************************
// IN GAME MAPPINGS - Single key presses - ALL __DEBUG keymappings will be removed for master
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_B,KEYMAP_PRESSED,kf_CentreOnBase, strresGetString(psStringRes,STR_BIND_CENTV));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_C,KEYMAP_PRESSED,kf_SetDroidAttackCease , strresGetString(psStringRes,STR_BIND_CEASE));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_D,KEYMAP_PRESSED,kf_JumpToUnassignedUnits, strresGetString(psStringRes,STR_BIND_UNITJ));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_E,KEYMAP_PRESSED,kf_SetDroidAttackReturn, strresGetString(psStringRes,STR_BIND_ENGAG));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F,KEYMAP_PRESSED,kf_SetDroidAttackAtWill, strresGetString(psStringRes,STR_BIND_FAW));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_H,KEYMAP_PRESSED,kf_SetDroidReturnToBase, strresGetString(psStringRes,STR_BIND_RTB));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_B,KEYMAP_PRESSED,kf_CentreOnBase, _("Center View on HQ"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_C,KEYMAP_PRESSED,kf_SetDroidAttackCease , _("Hold Fire"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_D,KEYMAP_PRESSED,kf_JumpToUnassignedUnits, _("View Unassigned Units"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_E,KEYMAP_PRESSED,kf_SetDroidAttackReturn, _("Return Fire"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_F,KEYMAP_PRESSED,kf_SetDroidAttackAtWill, _("Fire at Will"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_H,KEYMAP_PRESSED,kf_SetDroidReturnToBase, _("Return to HQ"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_I,KEYMAP_PRESSED,kf_SetDroidRangeDefault, strresGetString(psStringRes,STR_BIND_DEFR));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_O,KEYMAP_PRESSED,kf_SetDroidRangeShort, strresGetString(psStringRes,STR_BIND_SHOR));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_P,KEYMAP_PRESSED,kf_SetDroidMovePursue , strresGetString(psStringRes,STR_BIND_PURS));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_Q,KEYMAP_PRESSED,kf_SetDroidMovePatrol , strresGetString(psStringRes,STR_BIND_PATR));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_R,KEYMAP_PRESSED,kf_SetDroidGoForRepair , strresGetString(psStringRes,STR_BIND_REPA));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_S,KEYMAP_PRESSED,kf_SetDroidMoveHold , strresGetString(psStringRes,STR_BIND_DSTOP));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_T,KEYMAP_PRESSED,kf_SendTextMessage, strresGetString(psStringRes,STR_BIND_SENDT));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_U,KEYMAP_PRESSED,kf_SetDroidRangeLong, strresGetString(psStringRes,STR_BIND_LONGR));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_O,KEYMAP_PRESSED,kf_SetDroidRangeShort, _("Short Range"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_P,KEYMAP_PRESSED,kf_SetDroidMovePursue , _("Pursue"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_Q,KEYMAP_PRESSED,kf_SetDroidMovePatrol , _("Patrol"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_R,KEYMAP_PRESSED,kf_SetDroidGoForRepair , _("Return For Repair"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_S,KEYMAP_PRESSED,kf_SetDroidMoveHold , _("Hold Position"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_T,KEYMAP_PRESSED,kf_SendTextMessage, _("Send Text Message"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_U,KEYMAP_PRESSED,kf_SetDroidRangeLong, _("Long Range"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LALT,KEY_H,KEYMAP_PRESSED,kf_AddHelpBlip, "Drop a beacon");
@ -394,33 +394,33 @@ void keyInitMappings( BOOL bForceDefaults )
keyAddMapping(KEYMAP_ASSIGNABLE, KEY_LALT, KEY_KP_PLUS, KEYMAP_PRESSED, kf_RaiseGamma, "Raise gamma");
// Some extra non QWERTY mappings but functioning in same way
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_COMMA,KEYMAP_PRESSED,kf_SetDroidRetreatMedium, strresGetString(psStringRes,STR_BIND_LDAM) );
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_FULLSTOP,KEYMAP_PRESSED,kf_SetDroidRetreatHeavy, strresGetString(psStringRes,STR_BIND_HDAM) );
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_FORWARDSLASH,KEYMAP_PRESSED,kf_SetDroidRetreatNever,strresGetString(psStringRes,STR_BIND_NDAM) );
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_COMMA,KEYMAP_PRESSED,kf_SetDroidRetreatMedium, _("Retreat at Medium Damage") );
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_FULLSTOP,KEYMAP_PRESSED,kf_SetDroidRetreatHeavy, _("Retreat at Heavy Damage") );
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,KEY_FORWARDSLASH,KEYMAP_PRESSED,kf_SetDroidRetreatNever,_("Do or Die!") );
// **********************************
// **********************************
// In game mappings - COMBO (CTRL + LETTER) presses.
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_A,KEYMAP_PRESSED,kf_SelectAllCombatUnits, strresGetString(psStringRes,STR_BIND_ACU));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_D,KEYMAP_PRESSED,kf_SelectAllDamaged, strresGetString(psStringRes,STR_BIND_ABDU));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_A,KEYMAP_PRESSED,kf_SelectAllCombatUnits, _("Select all Combat Units"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_D,KEYMAP_PRESSED,kf_SelectAllDamaged, _("Select all Heavily Damaged Units"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_F,KEYMAP_PRESSED,kf_SelectAllHalfTracked, strresGetString(psStringRes,STR_BIND_AHTR));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_H,KEYMAP_PRESSED,kf_SelectAllHovers, strresGetString(psStringRes,STR_BIND_AHOV));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_R,KEYMAP_PRESSED,kf_SetDroidRecycle, strresGetString(psStringRes,STR_BIND_RECY));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_S,KEYMAP_PRESSED,kf_SelectAllOnScreenUnits, strresGetString(psStringRes,STR_BIND_ASCR));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_T,KEYMAP_PRESSED,kf_SelectAllTracked, strresGetString(psStringRes,STR_BIND_ATR));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_U,KEYMAP_PRESSED,kf_SelectAllUnits, strresGetString(psStringRes,STR_BIND_ALL));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_V,KEYMAP_PRESSED,kf_SelectAllVTOLs, strresGetString(psStringRes,STR_BIND_AVTOL));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_W,KEYMAP_PRESSED,kf_SelectAllWheeled, strresGetString(psStringRes,STR_BIND_AWHE));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_F,KEYMAP_PRESSED,kf_SelectAllHalfTracked, _("Select all Half-tracks"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_H,KEYMAP_PRESSED,kf_SelectAllHovers, _("Select all Hovers"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_R,KEYMAP_PRESSED,kf_SetDroidRecycle, _("Return for Recycling"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_S,KEYMAP_PRESSED,kf_SelectAllOnScreenUnits, _("Select all Units on Screen"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_T,KEYMAP_PRESSED,kf_SelectAllTracked, _("Select all Tracks"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_U,KEYMAP_PRESSED,kf_SelectAllUnits, _("Select EVERY unit"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_V,KEYMAP_PRESSED,kf_SelectAllVTOLs, _("Select all VTOLs"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_W,KEYMAP_PRESSED,kf_SelectAllWheeled, _("Select all Wheels"));
keyAddMapping(KEYMAP__DEBUG,KEY_LCTRL,KEY_Y,KEYMAP_PRESSED,kf_FrameRate, "Show frame rate");
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_Z,KEYMAP_PRESSED,kf_SelectAllSameType, strresGetString(psStringRes,STR_BIND_ASIMIL));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_LCTRL,KEY_Z,KEYMAP_PRESSED,kf_SelectAllSameType, _("Select all Similiar Units"));
// **********************************
// **********************************
// SELECT PLAYERS - DEBUG ONLY
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_SelectNextFactory,strresGetString(psStringRes,STR_BIND_SELFACTORY));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_SelectNextResearch,strresGetString(psStringRes,STR_BIND_SELRESEARCH));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_SelectNextPowerStation,strresGetString(psStringRes,STR_BIND_SELPOWER));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_SelectNextCyborgFactory,strresGetString(psStringRes,STR_BIND_SELCYBORG));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_ToggleReopenBuildMenu,strresGetString(psStringRes,STR_BIND_REOPEN_BUILD));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_SelectNextFactory,_("Select next Factory"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_SelectNextResearch,_("Select next Research Facility"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_SelectNextPowerStation,_("Select next Power Generator"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_SelectNextCyborgFactory,_("Select next Cyborg Factory"));
keyAddMapping(KEYMAP_ASSIGNABLE,KEY_IGNORE,(KEY_CODE)KEY_MAXSCAN,KEYMAP_PRESSED,kf_ToggleReopenBuildMenu,_("Toggle reopening the build menu"));
// NOTE THIS!!!!!!!
// available: ctrl+e, ctrl+m
@ -465,7 +465,7 @@ void keyInitMappings( BOOL bForceDefaults )
keyAddMapping(KEYMAP__DEBUG,KEY_IGNORE,KEY_Y,KEYMAP_PRESSED,kf_ToggleDemoMode,"Toggles on/off DEMO Mode");
keyAddMapping(KEYMAP__DEBUG,KEY_IGNORE,KEY_Z,KEYMAP_PRESSED,kf_ShowGridInfo,"DBPRINTF map grid coverage");
keyAddMapping(KEYMAP__DEBUG,KEY_IGNORE,KEY_SCROLLLOCK,KEYMAP_PRESSED,kf_TogglePauseMode, strresGetString(psStringRes,STR_BIND_PAUSE)); //not needed, done with KEY_ESC
keyAddMapping(KEYMAP__DEBUG,KEY_IGNORE,KEY_SCROLLLOCK,KEYMAP_PRESSED,kf_TogglePauseMode, _("Toggle Pause Mode")); //not needed, done with KEY_ESC
keyAddMapping(KEYMAP__DEBUG,KEY_IGNORE,KEY_J,KEYMAP_PRESSED,kf_MaxScrollLimits, "Maximum scroll limits");
keyAddMapping(KEYMAP__DEBUG,KEY_IGNORE,KEY_N,KEYMAP_PRESSED,kf_GiveTemplateSet, "Give template set(s) to player 0 ");
keyAddMapping(KEYMAP__DEBUG,KEY_LCTRL,KEY_KP_MINUS,KEYMAP_PRESSED,kf_SystemClose, "System Close (EXIT)"); //not working right now

View File

@ -255,7 +255,7 @@ static BOOL _addLoadSave(BOOL bLoad, const char *sSearchPath, const char *sExten
sButInit.id = LOADSAVE_CANCEL;
sButInit.style = WBUT_PLAIN;
sButInit.pTip = strresGetString(psStringRes, STR_MISC_CLOSE);
sButInit.pTip = _("Close");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayImageHilight;
widgAddButton(psRequestScreen, &sButInit);

View File

@ -58,6 +58,7 @@
#include "message.h"
#include "bucket3d.h"
#include "display3d.h"
#include "warzoneconfig.h"
#include "multiplay.h" //ajl
#include "lib/script/script.h"
@ -595,7 +596,7 @@ GAMECODE gameLoop(void)
{
if (saveGame(sRequestResult, GTYPE_SAVE_START))
{
addConsoleMessage(strresGetString(psStringRes, STR_GAME_SAVED), LEFT_JUSTIFY);
addConsoleMessage(_("GAME SAVED!"), LEFT_JUSTIFY);
}
else
{
@ -607,7 +608,7 @@ GAMECODE gameLoop(void)
{
if (saveGame(sRequestResult, GTYPE_SAVE_MIDMISSION))//mid mission from [esc] menu
{
addConsoleMessage(strresGetString(psStringRes, STR_GAME_SAVED), LEFT_JUSTIFY);
addConsoleMessage(_("GAME SAVED!"), LEFT_JUSTIFY);
}
else
{

View File

@ -25,6 +25,7 @@
#include <SDL/SDL_main.h>
#include <physfs.h>
#include <string.h>
#include <locale.h>
// Get platform defines before checking for them!
#include "lib/framework/frame.h"
@ -421,6 +422,10 @@ int main(int argc, char *argv[])
#else
debug( LOG_WZ, "Warzone 2100 - Version %s - Built %s", VERSION, __DATE__ );
#endif
/*** Initialize translations ***/
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
/*** Initialize PhysicsFS ***/
@ -888,6 +893,3 @@ void SetGameMode(UDWORD status)
gameStatus = status;
}

View File

@ -2867,7 +2867,7 @@ BOOL intAddTransporterTimer(void)
sFormInit.y = TRAN_FORM_Y;
sFormInit.width = iV_GetImageWidth(IntImages,IMAGE_TRANSETA_UP);
sFormInit.height = iV_GetImageHeight(IntImages,IMAGE_TRANSETA_UP);
sFormInit.pTip = strresGetString(psStringRes, STR_INT_TRANSPORTER);
sFormInit.pTip = _("Load Transport");
sFormInit.pDisplay = intDisplayImageHilight;
sFormInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_TRANSETA_DOWN,
IMAGE_TRANSETA_UP);
@ -2975,7 +2975,7 @@ BOOL intAddTransporterTimer(void)
sButInit.FontID = WFont;
sButInit.style = WBUT_PLAIN;
//sButInit.pText = "T";
sButInit.pTip = strresGetString(psStringRes, STR_INT_TRANSPORTER);
sButInit.pTip = _("Load Transport");
sButInit.pDisplay = intDisplayImageHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_TRANSETA_DOWN,
IMAGE_TRANSETA_UP);
@ -3348,13 +3348,13 @@ static BOOL _intAddMissionResult(BOOL result, BOOL bPlaySuccess)
//don't bother adding the text if haven't played the audio
if (bPlaySuccess)
{
sLabInit.pText = strresGetString(psStringRes,STR_MR_OBJECTIVE_ACHIEVED);//"Objective Achieved";
sLabInit.pText = _("OBJECTIVE ACHIEVED");//"Objective Achieved";
}
}
else
{
sLabInit.pText = strresGetString(psStringRes,STR_MR_OBJECTIVE_FAILED);//"Objective Failed;
sLabInit.pText = _("OBJECTIVE FAILED");//"Objective Failed;
}
sLabInit.FontID = WFont;
if (!widgAddLabel(psWScreen, &sLabInit))
@ -3380,7 +3380,7 @@ static BOOL _intAddMissionResult(BOOL result, BOOL bPlaySuccess)
{
sButInit.id = IDMISSIONRES_QUIT;
sButInit.y = MISSION_2_Y-8;
sButInit.pText = strresGetString(psStringRes,STR_MR_QUIT_TO_MAIN);
sButInit.pText = _("Quit To Main Menu");
widgAddButton(psWScreen, &sButInit);
intSetCurrentCursorPosition(&InterfaceSnap,sButInit.id);
}
@ -3389,7 +3389,7 @@ static BOOL _intAddMissionResult(BOOL result, BOOL bPlaySuccess)
// Finished the mission, so display "Continue Game"
sButInit.y = MISSION_2_Y;
sButInit.id = IDMISSIONRES_CONTINUE;
sButInit.pText = strresGetString(psStringRes,STR_MR_CONTINUE);//"Continue Game";
sButInit.pText = _("Continue Game");//"Continue Game";
widgAddButton(psWScreen, &sButInit);
intSetCurrentCursorPosition(&InterfaceSnap,sButInit.id);
}
@ -3403,7 +3403,7 @@ static BOOL _intAddMissionResult(BOOL result, BOOL bPlaySuccess)
sButInit.id = IDMISSIONRES_SAVE;
sButInit.x = MISSION_1_X;
sButInit.y = MISSION_1_Y;
sButInit.pText = strresGetString(psStringRes,STR_MR_SAVE_GAME);//"Save Game";
sButInit.pText = _("Save Game");//"Save Game";
widgAddButton(psWScreen, &sButInit);
intSetCurrentCursorPosition(&InterfaceSnap,sButInit.id);
}
@ -3414,14 +3414,14 @@ static BOOL _intAddMissionResult(BOOL result, BOOL bPlaySuccess)
sButInit.id = IDMISSIONRES_LOAD;
sButInit.x = MISSION_1_X;
sButInit.y = MISSION_1_Y;
sButInit.pText = strresGetString(psStringRes,STR_MR_LOAD_GAME);//"Load Saved Game";
sButInit.pText = _("Load Saved Game");//"Load Saved Game";
widgAddButton(psWScreen, &sButInit);
intSetCurrentCursorPosition(&InterfaceSnap,sButInit.id);
//quit
sButInit.id = IDMISSIONRES_QUIT;
sButInit.x = MISSION_2_X;
sButInit.y = MISSION_2_Y;
sButInit.pText = strresGetString(psStringRes,STR_MR_QUIT_TO_MAIN);//"Quit to Main Menu";
sButInit.pText = _("Quit To Main Menu");//"Quit to Main Menu";
widgAddButton(psWScreen, &sButInit);
}
@ -3500,7 +3500,7 @@ void intRunMissionResult(void)
{
saveGame(sRequestResult,GTYPE_SAVE_START);
addConsoleMessage(strresGetString(psStringRes, STR_GAME_SAVED), LEFT_JUSTIFY);
addConsoleMessage(_("GAME SAVED!"), LEFT_JUSTIFY);
}
}
}
@ -3558,10 +3558,10 @@ void intProcessMissionResult(UDWORD id)
case IDMISSIONRES_LOAD:
// throw up some filerequester
addLoadSave(LOAD_MISSIONEND,SaveGamePath,"gam",strresGetString(psStringRes,STR_MR_LOAD_GAME)/*"Load Game"*/);
addLoadSave(LOAD_MISSIONEND,SaveGamePath,"gam",_("Load Saved Game")/*"Load Game"*/);
break;
case IDMISSIONRES_SAVE:
addLoadSave(SAVE_MISSIONEND,SaveGamePath,"gam",strresGetString(psStringRes,STR_MR_SAVE_GAME)/*"Save Game"*/);
addLoadSave(SAVE_MISSIONEND,SaveGamePath,"gam",_("Save Game")/*"Save Game"*/);
if (widgGetFromID(psWScreen, IDMISSIONRES_QUIT) == NULL)
{
@ -3577,7 +3577,7 @@ void intProcessMissionResult(UDWORD id)
sButInit.id = IDMISSIONRES_QUIT;
sButInit.x = MISSION_3_X;
sButInit.y = MISSION_3_Y;
sButInit.pText = strresGetString(psStringRes,STR_MR_QUIT_TO_MAIN);
sButInit.pText = _("Quit To Main Menu");
widgAddButton(psWScreen, &sButInit);
}
break;

View File

@ -240,7 +240,7 @@ static void recvGiftDroids(UDWORD from,UDWORD to,NETMSG *pMsg)
if(to == selectedPlayer)
{
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GIFT_DRO),getPlayerName(from) ));
CONPRINTF(ConsoleString,(ConsoleString,_("%s Gives You Units"),getPlayerName(from) ));
}
}
@ -337,7 +337,7 @@ static void giftResearch(UDWORD from,UDWORD to,BOOL send)
{
if(to == selectedPlayer)
{
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GIFT_TEC),getPlayerName(from) ));
CONPRINTF(ConsoleString,(ConsoleString,_("%s Gives You Technology Documents"),getPlayerName(from) ));
}
}
@ -377,7 +377,7 @@ void giftPower(UDWORD from,UDWORD to,BOOL send)
{
if(to == selectedPlayer)
{
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GIFT_POW),getPlayerName(from) ));
CONPRINTF(ConsoleString,(ConsoleString,_("%s Gives You Power"),getPlayerName(from) ));
}
}
}
@ -398,7 +398,7 @@ void requestAlliance(UBYTE from ,UBYTE to,BOOL prop,BOOL allowAudio)
if(to == selectedPlayer)
{
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_ALLI_REQ),getPlayerName(from) ));
CONPRINTF(ConsoleString,(ConsoleString,_("%s Requests An Alliance With You"),getPlayerName(from) ));
if(allowAudio)
{
audio_QueueTrack(ID_ALLIANCE_OFF);
@ -406,7 +406,7 @@ void requestAlliance(UBYTE from ,UBYTE to,BOOL prop,BOOL allowAudio)
}
if(from == selectedPlayer)
{
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_ALLI_OFF),getPlayerName(to) ));
CONPRINTF(ConsoleString,(ConsoleString,_("You Invite %s To Form An Alliance"),getPlayerName(to) ));
if(allowAudio)
{
audio_QueueTrack(ID_ALLIANCE_OFF);
@ -425,7 +425,7 @@ void breakAlliance(UBYTE p1, UBYTE p2,BOOL prop,BOOL allowAudio)
if(alliances[p1][p2] == ALLIANCE_FORMED)
{
strcpy(tm1,getPlayerName(p1));
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_ALLI_BRK),tm1,getPlayerName(p2) ));
CONPRINTF(ConsoleString,(ConsoleString,_("%s Breaks The Alliance With %s"),tm1,getPlayerName(p2) ));
if(allowAudio && (p1 == selectedPlayer || p2 == selectedPlayer))
{
audio_QueueTrack(ID_ALLIANCE_BRO);
@ -451,7 +451,7 @@ void formAlliance(UBYTE p1, UBYTE p2,BOOL prop,BOOL allowAudio,BOOL allowNotific
if(bMultiPlayer && !(alliances[p1][p2] == ALLIANCE_FORMED) && allowNotification )
{
strcpy(tm1,getPlayerName(p1));
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_ALLI_FRM),tm1,getPlayerName(p2) ));
CONPRINTF(ConsoleString,(ConsoleString,_("%s Forms An Alliance With %s"),tm1,getPlayerName(p2) ));
}
alliances[p1][p2] = ALLIANCE_FORMED;

View File

@ -78,6 +78,7 @@
#include "lib/script/script.h"
#include "keymap.h"
#include "game.h"
#include "warzoneconfig.h"
#include "lib/netplay/netplay.h"
#include "multiplay.h"
@ -457,7 +458,7 @@ static BOOL OptionsInet(UDWORD parentID) //internet options
sLabInit.y = 10;
sLabInit.width = CON_SETTINGSWIDTH;
sLabInit.height = 20;
sLabInit.pText = strresGetString(psStringRes, STR_MUL_IPADDR);
sLabInit.pText = _("IP Address or Machine Name");
sLabInit.FontID = WFont;
widgAddLabel(psConScreen, &sLabInit);
@ -470,7 +471,7 @@ static BOOL OptionsInet(UDWORD parentID) //internet options
sEdInit.y = CON_IPY;
sEdInit.width = CON_NAMEBOXWIDTH;
sEdInit.height = CON_NAMEBOXHEIGHT;
sEdInit.pText = ""; //strresGetString(psStringRes, STR_MUL_IPADDR);
sEdInit.pText = ""; //_("IP Address or Machine Name");
sEdInit.FontID = WFont;
// sEdInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_DES_EDITBOXLEFTH , IMAGE_DES_EDITBOXLEFT);
// sEdInit.pBoxDisplay = intDisplayButtonHilight;
@ -497,7 +498,7 @@ BOOL startConnectionScreen(void)
NETuseNetwork(TRUE); // don't pretend!!
addSideText(FRONTEND_SIDETEXT, FRONTEND_SIDEX, FRONTEND_SIDEY,strresGetString(psStringRes,STR_MUL_SIDECONNECTION));
addSideText(FRONTEND_SIDETEXT, FRONTEND_SIDEX, FRONTEND_SIDEY,_("CONNECTION"));
addMultiBut(psWScreen,FRONTEND_BOTFORM,CON_CANCEL,10,10,MULTIOP_OKW,MULTIOP_OKH,
STR_MUL_CANCEL,IMAGE_RETURN,IMAGE_RETURN_HI,TRUE); // goback buttpn levels
@ -511,7 +512,7 @@ BOOL startConnectionScreen(void)
static void addConnections(UDWORD begin)
{
UDWORD pos = 50;
addTextButton(CON_TYPESID_START+begin,FRONTEND_POS1X,pos, strresGetString(psStringRes,STR_CON_INTERNET),FALSE,FALSE);
addTextButton(CON_TYPESID_START+begin,FRONTEND_POS1X,pos, _("Internet"),FALSE,FALSE);
}
void runConnectionScreen(void )
@ -750,7 +751,7 @@ FAIL:
if(safeSearch)
{
iV_SetFont(FEFont);
pie_DrawText(strresGetString(psStringRes, STR_MUL_SEARCHING), D_W+260, D_H+460);
pie_DrawText(_("Searching"), D_W+260, D_H+460);
}
}
@ -761,7 +762,7 @@ void startGameFind(void)
addTopForm(); // logo
addBottomForm();
addSideText(FRONTEND_SIDETEXT, FRONTEND_SIDEX, FRONTEND_SIDEY,strresGetString(psStringRes,STR_GAMES_GAMES));
addSideText(FRONTEND_SIDETEXT, FRONTEND_SIDEX, FRONTEND_SIDEY,_("GAMES"));
// cancel
addMultiBut(psWScreen,FRONTEND_BOTFORM,CON_CANCEL,10,5,MULTIOP_OKW,MULTIOP_OKH,STR_MUL_CANCEL,
@ -846,7 +847,7 @@ static void addGameOptions(BOOL bRedo)
sFormInit.pDisplay = intDisplayPlainForm;
widgAddForm(psWScreen, &sFormInit);
addSideText(FRONTEND_SIDETEXT3, MULTIOP_OPTIONSX-3 , MULTIOP_OPTIONSY,strresGetString(psStringRes,STR_MUL_SIDEOPTIONS));
addSideText(FRONTEND_SIDETEXT3, MULTIOP_OPTIONSX-3 , MULTIOP_OPTIONSY,_("OPTIONS"));
addMultiEditBox(MULTIOP_OPTIONS,MULTIOP_GNAME,MCOL0,MROW2,STR_MUL_GAMEIC, game.name ,IMAGE_EDIT_GAME,MULTIOP_GNAME_ICON);
addMultiEditBox(MULTIOP_OPTIONS,MULTIOP_MAP ,MCOL0,MROW3,STR_MUL_MAPIC, game.map ,IMAGE_EDIT_MAP,MULTIOP_MAP_ICON);
@ -855,7 +856,7 @@ static void addGameOptions(BOOL bRedo)
// buttons.
// game type
addBlueForm(MULTIOP_OPTIONS,MULTIOP_GAMETYPE,strresGetString(psStringRes,STR_LABEL_TYPE),MCOL0,MROW5,MULTIOP_BLUEFORMW,27);
addBlueForm(MULTIOP_OPTIONS,MULTIOP_GAMETYPE,_("Game"),MCOL0,MROW5,MULTIOP_BLUEFORMW,27);
// addMultiBut(psWScreen,MULTIOP_GAMETYPE,MULTIOP_ARENA, MCOL1, 2 , MULTIOP_BUTW,MULTIOP_BUTH,
// STR_MUL_ARENA, IMAGE_ARENA, IMAGE_ARENA_HI,TRUE); //arena
addMultiBut(psWScreen,MULTIOP_GAMETYPE,MULTIOP_CAMPAIGN,MCOL1, 2 , MULTIOP_BUTW,MULTIOP_BUTH,
@ -901,7 +902,7 @@ static void addGameOptions(BOOL bRedo)
// Fog type
addBlueForm(MULTIOP_OPTIONS,MULTIOP_FOG,strresGetString(psStringRes,STR_LABEL_FOG),MCOL0,MROW6,MULTIOP_BLUEFORMW,27);
addBlueForm(MULTIOP_OPTIONS,MULTIOP_FOG,_("Fog"),MCOL0,MROW6,MULTIOP_BLUEFORMW,27);
addMultiBut(psWScreen,MULTIOP_FOG,MULTIOP_FOG_ON ,MCOL1,2,MULTIOP_BUTW,MULTIOP_BUTH,STR_MUL_FOG_ON, IMAGE_FOG_OFF, IMAGE_FOG_OFF_HI,TRUE);//black stuff
addMultiBut(psWScreen,MULTIOP_FOG,MULTIOP_FOG_OFF,MCOL2,2,MULTIOP_BUTW,MULTIOP_BUTH,STR_MUL_FOG_OFF,IMAGE_FOG_ON,IMAGE_FOG_ON_HI,TRUE);
@ -920,11 +921,11 @@ static void addGameOptions(BOOL bRedo)
// alliances
// if(game.type == DMATCH)
// {
// addBlueForm(MULTIOP_OPTIONS,MULTIOP_ALLIANCES,strresGetString(psStringRes,STR_LABEL_ALLI),MCOL0,MROW7,MULTIOP_BLUEFORMW,27);
// addBlueForm(MULTIOP_OPTIONS,MULTIOP_ALLIANCES,_("Alliances"),MCOL0,MROW7,MULTIOP_BLUEFORMW,27);
// }
// else
// {
addBlueForm(MULTIOP_OPTIONS,MULTIOP_ALLIANCES,strresGetString(psStringRes,STR_LABEL_ALLI),MCOL0,MROW8,MULTIOP_BLUEFORMW,27);
addBlueForm(MULTIOP_OPTIONS,MULTIOP_ALLIANCES,_("Alliances"),MCOL0,MROW8,MULTIOP_BLUEFORMW,27);
// }
addMultiBut(psWScreen,MULTIOP_ALLIANCES,MULTIOP_ALLIANCE_N,MCOL1,2,MULTIOP_BUTW,MULTIOP_BUTH,
@ -967,7 +968,7 @@ static void addGameOptions(BOOL bRedo)
{
// limit options
addBlueForm(MULTIOP_OPTIONS,MULTIOP_LIMIT,strresGetString(psStringRes,STR_LABEL_LIMIT) ,MCOL0,MROW8,MULTIOP_BLUEFORMW,27);
addBlueForm(MULTIOP_OPTIONS,MULTIOP_LIMIT,_("Limits") ,MCOL0,MROW8,MULTIOP_BLUEFORMW,27);
addMultiBut(psWScreen,MULTIOP_LIMIT,MULTIOP_NOLIMIT,MCOL1,2,MULTIOP_BUTW,MULTIOP_BUTH,
STR_MUL_NOLIM,IMAGE_NOLIMIT,IMAGE_NOLIMIT_HI,TRUE);
addMultiBut(psWScreen,MULTIOP_LIMIT,MULTIOP_FRAGLIMIT,MCOL2,2,MULTIOP_BUTW,MULTIOP_BUTH,
@ -1002,7 +1003,7 @@ static void addGameOptions(BOOL bRedo)
{
// pow levels
addBlueForm(MULTIOP_OPTIONS,MULTIOP_POWER,strresGetString(psStringRes,STR_INT_POWER),MCOL0,MROW9,MULTIOP_BLUEFORMW,27);
addBlueForm(MULTIOP_OPTIONS,MULTIOP_POWER,_("Power"),MCOL0,MROW9,MULTIOP_BLUEFORMW,27);
addMultiBut(psWScreen,MULTIOP_POWER,MULTIOP_POWLEV_LOW,MCOL1,2,MULTIOP_BUTW,MULTIOP_BUTH,
STR_MUL_POWLO,IMAGE_POWLO,IMAGE_POWLO_HI,TRUE);
addMultiBut(psWScreen,MULTIOP_POWER,MULTIOP_POWLEV_MED,MCOL2,2,MULTIOP_BUTW,MULTIOP_BUTH,
@ -1026,7 +1027,7 @@ static void addGameOptions(BOOL bRedo)
}
//type clean/base/defence
addBlueForm(MULTIOP_OPTIONS,MULTIOP_BASETYPE,strresGetString(psStringRes,STR_LABEL_BASE),MCOL0,MROW7,MULTIOP_BLUEFORMW,27);
addBlueForm(MULTIOP_OPTIONS,MULTIOP_BASETYPE,_("Base"),MCOL0,MROW7,MULTIOP_BLUEFORMW,27);
addMultiBut(psWScreen,MULTIOP_BASETYPE,MULTIOP_CLEAN,MCOL1,2,MULTIOP_BUTW,MULTIOP_BUTH,
STR_MUL_CAMPCLEAN,IMAGE_NOBASE,IMAGE_NOBASE_HI,TRUE);
addMultiBut(psWScreen,MULTIOP_BASETYPE,MULTIOP_BASE,MCOL2,2,MULTIOP_BUTW,MULTIOP_BUTH,
@ -1056,11 +1057,11 @@ static void addGameOptions(BOOL bRedo)
//type opposition/no computer opposition
if(game.type == CAMPAIGN)
{
addBlueForm(MULTIOP_OPTIONS,MULTIOP_COMPUTER,strresGetString(psStringRes,STR_MUL_COMP),MCOL0,MROW10,MULTIOP_BLUEFORMW,27);
addBlueForm(MULTIOP_OPTIONS,MULTIOP_COMPUTER,_("Computer"),MCOL0,MROW10,MULTIOP_BLUEFORMW,27);
}
else
{
addBlueForm(MULTIOP_OPTIONS,MULTIOP_COMPUTER,strresGetString(psStringRes,STR_MUL_COMP),MCOL0,MROW8,MULTIOP_BLUEFORMW,27);
addBlueForm(MULTIOP_OPTIONS,MULTIOP_COMPUTER,_("Computer"),MCOL0,MROW8,MULTIOP_BLUEFORMW,27);
}
addMultiBut(psWScreen,MULTIOP_COMPUTER,MULTIOP_COMPUTER_Y,MCOL1,2,MULTIOP_BUTW,MULTIOP_BUTH,
@ -1497,7 +1498,7 @@ UDWORD addPlayerBox(BOOL players)
sFormInit.pDisplay = intDisplayPlainForm;
widgAddForm(psWScreen, &sFormInit);
addSideText(FRONTEND_SIDETEXT2, MULTIOP_PLAYERSX-3, MULTIOP_PLAYERSY,strresGetString(psStringRes,STR_MUL_SIDEPLAYERS));
addSideText(FRONTEND_SIDETEXT2, MULTIOP_PLAYERSX-3, MULTIOP_PLAYERSY,_("PLAYERS"));
if(players)
{
@ -1646,7 +1647,7 @@ static void addChatBox(void)
sFormInit.pDisplay = intOpenPlainForm;//intDisplayPlainForm;
widgAddForm(psWScreen, &sFormInit);
addSideText(FRONTEND_SIDETEXT4,MULTIOP_CHATBOXX-3,MULTIOP_CHATBOXY,strresGetString(psStringRes, STR_MUL_CHAT));
addSideText(FRONTEND_SIDETEXT4,MULTIOP_CHATBOXX-3,MULTIOP_CHATBOXY,_("CHAT"));
flushConsoleMessages(); // add the chatbox.
initConsoleMessages();
@ -2327,7 +2328,7 @@ static void processMultiopWidgets(UDWORD id)
if(NetPlay.bHost)
{
sendTextMessage(strresGetString(psStringRes, STR_MUL_STARTING),TRUE);
sendTextMessage(_("Host is Starting Game"),TRUE);
}
return;
break;
@ -2386,7 +2387,7 @@ static void processMultiopWidgets(UDWORD id)
{
setLockedTeamsMode(); //update GUI
sprintf( msg,"'%s' mode enabled", strresGetString(psStringRes, STR_MUL_ALLIANCE_TEAMS) );
sprintf( msg,"'%s' mode enabled", _("Locked Teams") );
addConsoleMessage(msg,DEFAULT_JUSTIFY);
}
}
@ -2935,7 +2936,7 @@ static void CurrentForce(void)
sFormInit.pDisplay = intDisplayPlainForm;
widgAddForm(psWScreen, &sFormInit);
addSideText(FRONTEND_SIDETEXT3,FORCE_CURRENTX-1,FORCE_CURRENTY,strresGetString(psStringRes,STR_MUL_SIDEFORCE));
addSideText(FRONTEND_SIDETEXT3,FORCE_CURRENTX-1,FORCE_CURRENTY,_("FORCE"));
/* Add the design templates form */
memset(&sFormInit, 0, sizeof(W_FORMINIT));
@ -3058,7 +3059,7 @@ static void AvailableForces(void)
widgAddForm(psWScreen, &sFormInit);
addSideText(FRONTEND_SIDETEXT1,FORCE_AVAILABLEX-1,FORCE_AVAILABLEY,strresGetString(psStringRes, STR_MUL_SIDETEMPLATES));
addSideText(FRONTEND_SIDETEXT1,FORCE_AVAILABLEX-1,FORCE_AVAILABLEY,_("TEMPLATES"));
/* Add the design templates form */
memset(&sFormInit, 0, sizeof(W_FORMINIT));
@ -3222,11 +3223,11 @@ void runForceSelect(void)
break;
case FORCE_LOAD:
addLoadSave(LOAD_FORCE,MultiForcesPath,"for",strresGetString(psStringRes,STR_MUL_LOAD) );
addLoadSave(LOAD_FORCE,MultiForcesPath,"for",_("Load Force") );
break;
case FORCE_SAVE:
addLoadSave(SAVE_FORCE,MultiForcesPath,"for",strresGetString(psStringRes,STR_MUL_SAVE) );
addLoadSave(SAVE_FORCE,MultiForcesPath,"for",_("Save Force") );
break;
default:
@ -3291,7 +3292,7 @@ BOOL startForceSelect(void)
sFormInit.pDisplay = intDisplayPlainForm;
widgAddForm(psWScreen, &sFormInit);
addSideText(FRONTEND_SIDETEXT2,FORCE_STATSX-1,FORCE_STATSY,strresGetString(psStringRes, STR_MUL_SIDEINFO));
addSideText(FRONTEND_SIDETEXT2,FORCE_STATSX-1,FORCE_STATSY,_("CONTROL"));
sFormInit.formID = FORCE_STATS; // stats box
sFormInit.id = FORCE_DROID;
@ -3627,7 +3628,7 @@ void displayRemoteGame(WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, UDWORD
}
else
{
iV_DrawText(strresGetString(psStringRes, STR_MUL_PLAYERS), x + 5, y + 18);
iV_DrawText(_("Players"), x + 5, y + 18);
sprintf(tmp,"%d/%d",NetPlay.games[i].desc.dwCurrentPlayers,NetPlay.games[i].desc.dwMaxPlayers);
iV_DrawText(tmp, x + 17, y + 33);
}

View File

@ -160,8 +160,8 @@ BOOL intDisplayMultiJoiningStatus(UBYTE joinCount)
RenderWindowFrame(&FrameNormal, x, y ,w, h); // draw a wee blu box.
// display how far done..
pie_DrawText(strresGetString(psStringRes, STR_GAM_JOINING),
x+(w/2)-(iV_GetTextWidth(strresGetString(psStringRes,STR_GAM_JOINING))/2),
pie_DrawText(_("Players Still Joining"),
x+(w/2)-(iV_GetTextWidth(_("Players Still Joining"))/2),
y+(h/2)-8 );
sprintf(sTmp,"%d%%", PERCENT((NetPlay.playercount-joinCount),NetPlay.playercount) );
pie_DrawText(sTmp ,x + (w / 2) - 10, y + (h / 2) + 10);
@ -281,7 +281,7 @@ BOOL MultiPlayerLeave( UDWORD dp)
{
NETlogEntry("Player Unexpectedly leaving, came from directplay...",0,dp);
sprintf( buf,strresGetString(psStringRes, STR_MUL_LEAVE),getPlayerName(i) );
sprintf( buf,_("%s has Left the Game"),getPlayerName(i) );
turnOffMultiMsg(TRUE);
clearPlayer(i,FALSE,FALSE);
@ -399,7 +399,7 @@ void setupNewPlayer(UDWORD dpid, UDWORD player)
setMultiStats(player2dpid[player],getMultiStats(player,FALSE),TRUE); // get the players score from the ether.
sprintf( buf,strresGetString(psStringRes, STR_MUL_JOINING),getPlayerName(player) );
sprintf( buf,_("%s is Joining the Game"),getPlayerName(player) );
addConsoleMessage(buf,DEFAULT_JUSTIFY);
}

View File

@ -464,7 +464,7 @@ void addMultiRequest(char *ToFindb,UDWORD mode, UBYTE mapCam, UBYTE numPlayers)
sButInit.y = 0;
sButInit.width = CLOSE_WIDTH;
sButInit.height = CLOSE_HEIGHT;
sButInit.pTip = strresGetString(psStringRes, STR_MISC_CLOSE);
sButInit.pTip = _("Close");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayImageHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_CLOSEHILIGHT , IMAGE_CLOSE);
@ -768,9 +768,9 @@ void displayExtraGubbins(UDWORD height)
iV_SetFont(WFont); // font
iV_SetTextColour(-1); //colour
iV_DrawText(strresGetString(psStringRes, STR_MUL_ALLIANCES), MULTIMENU_FORM_X+MULTIMENU_C0, MULTIMENU_FORM_Y+MULTIMENU_FONT_OSET);
iV_DrawText(strresGetString(psStringRes, STR_MUL_SCORE), MULTIMENU_FORM_X+MULTIMENU_C8, MULTIMENU_FORM_Y+MULTIMENU_FONT_OSET);
iV_DrawText(strresGetString(psStringRes, STR_MUL_KILLS), MULTIMENU_FORM_X+MULTIMENU_C9, MULTIMENU_FORM_Y+MULTIMENU_FONT_OSET);
iV_DrawText(_("Alliances"), MULTIMENU_FORM_X+MULTIMENU_C0, MULTIMENU_FORM_Y+MULTIMENU_FONT_OSET);
iV_DrawText(_("Score"), MULTIMENU_FORM_X+MULTIMENU_C8, MULTIMENU_FORM_Y+MULTIMENU_FONT_OSET);
iV_DrawText(_("Kills"), MULTIMENU_FORM_X+MULTIMENU_C9, MULTIMENU_FORM_Y+MULTIMENU_FONT_OSET);
if(getDebugMappingStatus())
{
@ -779,8 +779,8 @@ void displayExtraGubbins(UDWORD height)
}
else
{
iV_DrawText(strresGetString(psStringRes, STR_MUL_PING), MULTIMENU_FORM_X+MULTIMENU_C10, MULTIMENU_FORM_Y+MULTIMENU_FONT_OSET);
iV_DrawText(strresGetString(psStringRes, STR_MUL_PLAY), MULTIMENU_FORM_X+MULTIMENU_C11, MULTIMENU_FORM_Y+MULTIMENU_FONT_OSET);
iV_DrawText(_("Ping"), MULTIMENU_FORM_X+MULTIMENU_C10, MULTIMENU_FORM_Y+MULTIMENU_FONT_OSET);
iV_DrawText(_("Played"), MULTIMENU_FORM_X+MULTIMENU_C11, MULTIMENU_FORM_Y+MULTIMENU_FONT_OSET);
}
#ifdef DEBUG
@ -1094,7 +1094,7 @@ void addMultiPlayer(UDWORD player,UDWORD pos)
sButInit.height = 24;
sButInit.FontID = WFont;
sButInit.id = MULTIMENU_ALLIANCE_BASE + player;
sButInit.pTip = strresGetString(psStringRes,STR_ALLI_STATE);
sButInit.pTip = _("Toggle Alliance State");
sButInit.pDisplay = displayAllianceState;
sButInit.pUserData = (void*)player;
@ -1111,25 +1111,25 @@ void addMultiPlayer(UDWORD player,UDWORD pos)
sButInit.id = MULTIMENU_GIFT_RAD+ player;
sButInit.x = MULTIMENU_C4;
sButInit.pTip = strresGetString(psStringRes,STR_ALLI_VIS);
sButInit.pTip = _("Give Visibility Report");
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_MULTI_VIS_HI, IMAGE_MULTI_VIS);
widgAddButton(psWScreen, &sButInit);
sButInit.id = MULTIMENU_GIFT_RES + player;
sButInit.x = MULTIMENU_C5;
sButInit.pTip = strresGetString(psStringRes,STR_ALLI_TEC);
sButInit.pTip = _("Leak Technology Documents");
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_MULTI_TEK_HI , IMAGE_MULTI_TEK);
widgAddButton(psWScreen, &sButInit);
sButInit.id = MULTIMENU_GIFT_DRO + player;
sButInit.x = MULTIMENU_C6;
sButInit.pTip = strresGetString(psStringRes,STR_ALLI_DRO);
sButInit.pTip = _("Hand Over Selected Units");
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_MULTI_DRO_HI , IMAGE_MULTI_DRO);
widgAddButton(psWScreen, &sButInit);
sButInit.id = MULTIMENU_GIFT_POW + player;
sButInit.x = MULTIMENU_C7;
sButInit.pTip = strresGetString(psStringRes,STR_ALLI_POW);
sButInit.pTip = _("Give Power To Player");
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_MULTI_POW_HI , IMAGE_MULTI_POW);
widgAddButton(psWScreen, &sButInit);
@ -1243,7 +1243,7 @@ BOOL addDebugMenu(BOOL bAdd)
sButInit.y = 0;
sButInit.width = CLOSE_WIDTH;
sButInit.height = CLOSE_HEIGHT;
sButInit.pTip = strresGetString(psStringRes, STR_MISC_CLOSE);
sButInit.pTip = _("Close");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayImageHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_CLOSEHILIGHT , IMAGE_CLOSE);
@ -1321,7 +1321,7 @@ BOOL intAddMultiMenu(void)
sButInit.y = 0;
sButInit.width = CLOSE_WIDTH;
sButInit.height = CLOSE_HEIGHT;
sButInit.pTip = strresGetString(psStringRes, STR_MISC_CLOSE);
sButInit.pTip = _("Close");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayImageHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_CLOSEHILIGHT , IMAGE_CLOSE);

View File

@ -2039,28 +2039,28 @@ char *getPlayerColourName(SDWORD player)
switch(getPlayerColour(player))
{
case 0:
strcpy(tempString,strresGetString(psStringRes, STR_FE_GREEN));
strcpy(tempString,_("Green"));
break;
case 1:
strcpy(tempString,strresGetString(psStringRes, STR_FE_ORANGE));
strcpy(tempString,_("Orange"));
break;
case 2:
strcpy(tempString,strresGetString(psStringRes, STR_FE_GREY));
strcpy(tempString,_("Grey"));
break;
case 3:
strcpy(tempString,strresGetString(psStringRes, STR_FE_BLACK));
strcpy(tempString,_("Black"));
break;
case 4:
strcpy(tempString,strresGetString(psStringRes, STR_FE_RED));
strcpy(tempString,_("Red"));
break;
case 5:
strcpy(tempString,strresGetString(psStringRes, STR_FE_BLUE));
strcpy(tempString,_("Blue"));
break;
case 6:
strcpy(tempString,strresGetString(psStringRes, STR_FE_PINK));
strcpy(tempString,_("Pink"));
break;
case 7:
strcpy(tempString,strresGetString(psStringRes, STR_FE_CYAN));
strcpy(tempString,_("Cyan"));
break;
}

View File

@ -1135,7 +1135,7 @@ BOOL sendPing(void)
{
if( isHumanPlayer(i) && PingSend[i] && ingame.PingTimes[i] && (i!= selectedPlayer) )
{
// CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_MUL_RESPOND),getPlayerName(i) ));
// CONPRINTF(ConsoleString,(ConsoleString,_("%s is Not Respoding"),getPlayerName(i) ));
ingame.PingTimes[i] = PING_LIMIT;
}
else if( !isHumanPlayer(i) && PingSend[i] && ingame.PingTimes[i] && (i!= selectedPlayer) )

View File

@ -2011,7 +2011,7 @@ void researchResult(UDWORD researchIndex, UBYTE player, BOOL bDisplay)
{
audio_QueueTrack(ID_SOUND_MAJOR_RESEARCH);
//add console text message
addConsoleMessage(strresGetString(psStringRes, STR_INT_RESCOMPLETED), LEFT_JUSTIFY);
addConsoleMessage(_("Research Completed"), LEFT_JUSTIFY);
}
//check there is viewdata for the research topic - just don't add message if not!
@ -2030,7 +2030,7 @@ void researchResult(UDWORD researchIndex, UBYTE player, BOOL bDisplay)
{
audio_QueueTrack(ID_SOUND_RESEARCH_COMPLETED);
//add console text message
addConsoleMessage(strresGetString(psStringRes, STR_INT_RESCOMPLETED), LEFT_JUSTIFY);
addConsoleMessage(_("Research Completed"), LEFT_JUSTIFY);
}
}
@ -2889,18 +2889,18 @@ void researchReward(UBYTE losingPlayer, UBYTE rewardPlayer)
researchResult(rewardID, rewardPlayer, TRUE);
if (rewardPlayer == selectedPlayer)
{
//addConsoleMessage(strresGetString(psStringRes,STR_GAM_RESREWARD), DEFAULT_JUSTIFY);
//addConsoleMessage(_("Research Award"), DEFAULT_JUSTIFY);
//name the actual reward
//addConsoleMessage(asResearch[rewardID].pName, DEFAULT_JUSTIFY);
CONPRINTF(ConsoleString,(ConsoleString,"%s :- %s",
strresGetString(psStringRes,STR_GAM_RESREWARD),
_("Research Award"),
getName(asResearch[rewardID].pName)));
}
}
/* Not worth mentioning if nothing useful to gain?
if (rewardPlayer == selectedPlayer)
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_RESREWARD), DEFAULT_JUSTIFY);
addConsoleMessage(_("Research Award"), DEFAULT_JUSTIFY);
}*/
}

View File

@ -269,9 +269,9 @@ UDWORD div;
pie_UniTransBoxFill( 16 + D_W, MT_Y_POS - 16, pie_GetVideoBufferWidth() - D_W - 16, MT_Y_POS + 256, 0x00000088, 128 );
iV_Box( 16 + D_W, MT_Y_POS - 16, pie_GetVideoBufferWidth() - D_W - 16, MT_Y_POS + 256, 1);
iV_DrawText( strresGetString(psStringRes,STR_MR_UNIT_LOSSES), LC_X + D_W, 80 + 16 + D_H );
iV_DrawText( strresGetString(psStringRes,STR_MR_STRUCTURE_LOSSES), LC_X + D_W, 140 + 16 + D_H );
iV_DrawText( strresGetString(psStringRes,STR_MR_FORCE_INFO), LC_X + D_W, 200 + 16 + D_H );
iV_DrawText( _("Unit Losses"), LC_X + D_W, 80 + 16 + D_H );
iV_DrawText( _("Structure Losses"), LC_X + D_W, 140 + 16 + D_H );
iV_DrawText( _("Force Information"), LC_X + D_W, 200 + 16 + D_H );
index = 0;
@ -356,17 +356,17 @@ void dispAdditionalInfo( void )
average unit experience level an number of artefacts found */
/* Firstly, top of the screen, number of artefacts found */
sprintf( text, strresGetString(psStringRes,STR_MR_ARTEFACTS_FOUND), missionData.artefactsFound );
sprintf( text, _("ARTIFACTS RECOVERED: %d"), missionData.artefactsFound );
iV_DrawText( text, (pie_GetVideoBufferWidth() - iV_GetTextWidth(text))/2, 300 + D_H );
/* Get the mission result time in a string - and write it out */
getAsciiTime( (char*)&text2, gameTime - missionData.missionStarted );
sprintf( text, strresGetString(psStringRes,STR_MR_MISSION_TIME), text2 );
sprintf( text, _("Mission Time - %s"), text2 );
iV_DrawText( text, (pie_GetVideoBufferWidth() - iV_GetTextWidth(text))/2, 320 + D_H);
/* Write out total game time so far */
getAsciiTime( (char*)&text2, gameTime );
sprintf( text, strresGetString(psStringRes,STR_MR_GAME_TIME), text2 );
sprintf( text, _("Total Game Time - %s"), text2 );
iV_DrawText( text, (pie_GetVideoBufferWidth() - iV_GetTextWidth(text))/2, 340 + D_H );
}

View File

@ -121,7 +121,7 @@ char selInfo[255];
}
/* Send back the return value */
sprintf(selInfo,strresGetString(psStringRes,STR_GAM_UNITSEL),retVal);
sprintf(selInfo,_("%d Unit(s) Selected"),retVal);
addConsoleMessage(selInfo,RIGHT_JUSTIFY);
return(retVal);
}
@ -438,16 +438,16 @@ BOOL bLaterInList, bMatch;
switch(unitType)
{
case DROID_REPAIR:
addConsoleMessage(strresGetString(psStringRes,STR_GAM_REPNOTFOUND),LEFT_JUSTIFY);
addConsoleMessage(_("Unable to locate any repair units!"),LEFT_JUSTIFY);
break;
case DROID_CONSTRUCT:
addConsoleMessage(strresGetString(psStringRes,STR_GAM_CONNOTFOUND),LEFT_JUSTIFY);
addConsoleMessage(_("Unable to locate any Trucks!"),LEFT_JUSTIFY);
break;
case DROID_SENSOR:
addConsoleMessage(strresGetString(psStringRes,STR_GAM_SENNOTFOUND),LEFT_JUSTIFY);
addConsoleMessage(_("Unable to locate any Sensor Units!"),LEFT_JUSTIFY);
break;
case DROID_COMMAND:
addConsoleMessage(strresGetString(psStringRes,STR_GAM_COMNOTFOUND),LEFT_JUSTIFY);
addConsoleMessage(_("Unable to locate any Commanders!"),LEFT_JUSTIFY);
break;
}
}
@ -527,7 +527,7 @@ BOOL bLaterInList;
}
else
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_REPNOTFOUND),LEFT_JUSTIFY);
addConsoleMessage(_("Unable to locate any repair units!"),LEFT_JUSTIFY);
}
}
// ---------------------------------------------------------------------
@ -605,7 +605,7 @@ BOOL bLaterInList;
}
else
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_REPNOTFOUND),LEFT_JUSTIFY);
addConsoleMessage(_("Unable to locate any repair units!"),LEFT_JUSTIFY);
}
}
// ---------------------------------------------------------------------

View File

@ -3807,7 +3807,7 @@ BOOL CheckHaltOnMaxUnitsReached(STRUCTURE *psStructure)
if ((psStructure->player == selectedPlayer) &&
(lastMaxUnitMessage + MAX_UNIT_MESSAGE_PAUSE < gameTime))
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_MAXUNITSREACHED),DEFAULT_JUSTIFY);
addConsoleMessage(_("Command Control Limit Reached - Production Halted"),DEFAULT_JUSTIFY);
lastMaxUnitMessage = gameTime;
}
/*
@ -7741,7 +7741,7 @@ void printStructureInfo(STRUCTURE *psStructure)
getStatName(psStructure->pStructureType), ((RES_EXTRACTOR *)psStructure->
pFunctionality)->power,psStructure->id));
#else
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GAM_RESREM),
CONPRINTF(ConsoleString,(ConsoleString,_("%s - Resource Remaining %d"),
getStatName(psStructure->pStructureType), ((RES_EXTRACTOR *)psStructure->
pFunctionality)->power));
#endif*/
@ -7767,7 +7767,7 @@ void printStructureInfo(STRUCTURE *psStructure)
getStatName(psStructure->pStructureType), numConnected, NUM_POWER_MODULES,
psStructure->id));
#else
CONPRINTF(ConsoleString,(ConsoleString,strresGetString(psStringRes,STR_GAM_POWCON),
CONPRINTF(ConsoleString,(ConsoleString,_("%s - Connected %d of %d"),
getStatName(psStructure->pStructureType), numConnected, NUM_POWER_MODULES));
#endif
break;
@ -7959,7 +7959,7 @@ BOOL electronicDamage(BASE_OBJECT *psTarget, UDWORD damage, UBYTE attackPlayer)
//add a console message for the selected Player
if (psDroid->player == selectedPlayer)
{
CONPRINTF(ConsoleString, (ConsoleString, strresGetString(psStringRes, STR_GAM_ELECDAM), "Unit"));
CONPRINTF(ConsoleString, (ConsoleString, _("%s - Electronically Damaged"), "Unit"));
//tell the scripts if selectedPlayer has lost a droid
eventFireCallbackTrigger((TRIGGER_TYPE)CALL_ELECTRONIC_TAKEOVER);
}
@ -8233,7 +8233,7 @@ BOOL electronicReward(STRUCTURE *psStructure, UBYTE attackPlayer)
hqReward(psStructure->player,attackPlayer);
if (attackPlayer == selectedPlayer)
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_REWELEC), DEFAULT_JUSTIFY);
addConsoleMessage(_("Electronic Reward - Visibility Report"), DEFAULT_JUSTIFY);
}
bRewarded = TRUE;
break;
@ -8273,9 +8273,9 @@ void factoryReward(UBYTE losingPlayer, UBYTE rewardPlayer)
apCompLists[rewardPlayer][COMP_PROPULSION][comp] = AVAILABLE;
if (rewardPlayer == selectedPlayer)
{
//addConsoleMessage(strresGetString(psStringRes,STR_GAM_REWPROP), DEFAULT_JUSTIFY);
//addConsoleMessage(_("Factory Reward - Propulsion"), DEFAULT_JUSTIFY);
CONPRINTF(ConsoleString,(ConsoleString,"%s :- %s",
strresGetString(psStringRes,STR_GAM_REWPROP),
_("Factory Reward - Propulsion"),
getName(asPropulsionStats[comp].pName)));
}
return;
@ -8298,9 +8298,9 @@ void factoryReward(UBYTE losingPlayer, UBYTE rewardPlayer)
apCompLists[rewardPlayer][COMP_BODY][comp] = AVAILABLE;
if (rewardPlayer == selectedPlayer)
{
//addConsoleMessage(strresGetString(psStringRes,STR_GAM_REWBODY), DEFAULT_JUSTIFY);
//addConsoleMessage(_("Factory Reward - Body"), DEFAULT_JUSTIFY);
CONPRINTF(ConsoleString,(ConsoleString,"%s :- %s",
strresGetString(psStringRes,STR_GAM_REWBODY),
_("Factory Reward - Body"),
getName(asBodyStats[comp].pName)));
}
return;
@ -8323,9 +8323,9 @@ void factoryReward(UBYTE losingPlayer, UBYTE rewardPlayer)
apCompLists[rewardPlayer][COMP_WEAPON][comp] = AVAILABLE;
if (rewardPlayer == selectedPlayer)
{
//addConsoleMessage(strresGetString(psStringRes,STR_GAM_REWWEAP), DEFAULT_JUSTIFY);
//addConsoleMessage(_("Factory Reward - Weapon"), DEFAULT_JUSTIFY);
CONPRINTF(ConsoleString,(ConsoleString,"%s :- %s",
strresGetString(psStringRes,STR_GAM_REWWEAP),
_("Factory Reward - Weapon"),
getName(asWeaponStats[comp].pName)));
}
return;
@ -8334,7 +8334,7 @@ void factoryReward(UBYTE losingPlayer, UBYTE rewardPlayer)
//losing Player hasn't got anything better so don't gain anything!
if (rewardPlayer == selectedPlayer)
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_REWNOWT), DEFAULT_JUSTIFY);
addConsoleMessage(_("Factory Reward - Nothing"), DEFAULT_JUSTIFY);
}
}
@ -8361,16 +8361,16 @@ void repairFacilityReward(UBYTE losingPlayer, UBYTE rewardPlayer)
apCompLists[rewardPlayer][COMP_REPAIRUNIT][comp] = AVAILABLE;
if (rewardPlayer == selectedPlayer)
{
//addConsoleMessage(strresGetString(psStringRes,STR_GAM_REWREPA), DEFAULT_JUSTIFY);
//addConsoleMessage(_("Repair Facility Award - Repair"), DEFAULT_JUSTIFY);
CONPRINTF(ConsoleString,(ConsoleString,"%s :- %s",
strresGetString(psStringRes,STR_GAM_REWREPA),
_("Repair Facility Award - Repair"),
getName(asRepairStats[comp].pName)));
}
return;
}
if (rewardPlayer == selectedPlayer)
{
addConsoleMessage(strresGetString(psStringRes,STR_GAM_REWREPN), DEFAULT_JUSTIFY);
addConsoleMessage(_("Repair Facility Award - Nothing"), DEFAULT_JUSTIFY);
}
}

View File

@ -293,7 +293,7 @@ static BOOL _intAddTransporter(DROID *psSelected, BOOL offWorld)
sButInit.y = 0;
sButInit.width = CLOSE_WIDTH;
sButInit.height = CLOSE_HEIGHT;
sButInit.pTip = strresGetString(psStringRes, STR_MISC_CLOSE);
sButInit.pTip = _("Close");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayImageHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_CLOSEHILIGHT , IMAGE_CLOSE);
@ -382,7 +382,7 @@ BOOL intAddTransporterContents(void)
sButInit.y = 0;
sButInit.width = CLOSE_WIDTH;
sButInit.height = CLOSE_HEIGHT;
sButInit.pTip = strresGetString(psStringRes, STR_MISC_CLOSE);
sButInit.pTip = _("Close");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayImageHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_CLOSEHILIGHT , IMAGE_CLOSE);
@ -432,7 +432,7 @@ BOOL intAddTransporterContents(void)
sButFInit.width = iV_GetImageWidth(IntImages,IMAGE_LAUNCHUP);
sButFInit.height = iV_GetImageHeight(IntImages,IMAGE_LAUNCHUP);
sButFInit.pTip = strresGetString(psStringRes, STR_INT_TRANSLAUNCH);
sButFInit.pTip = _("Launch Transport");
//sButInit.pText = "Launch";
// sButFInit.FontID = WFont;
sButFInit.pDisplay = intDisplayImageHilight;
@ -489,7 +489,7 @@ BOOL intAddTransporterLaunch(DROID *psDroid)
sButInit.y = (SWORD)TIMER_Y;
sButInit.width = (UWORD)(10 + iV_GetImageWidth(IntImages,IMAGE_LAUNCHUP));
sButInit.height = iV_GetImageHeight(IntImages,IMAGE_LAUNCHUP);
sButInit.pTip = strresGetString(psStringRes, STR_INT_TRANSLAUNCH);
sButInit.pTip = _("Launch Transport");
sButInit.pDisplay = intDisplayImageHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_LAUNCHDOWN,IMAGE_LAUNCHUP);
if (!widgAddForm(psWScreen, &sButInit))
@ -883,7 +883,7 @@ BOOL intAddDroidsAvailForm(void)
sButInit.y = 0;
sButInit.width = CLOSE_WIDTH;
sButInit.height = CLOSE_HEIGHT;
sButInit.pTip = strresGetString(psStringRes, STR_MISC_CLOSE);
sButInit.pTip = _("Close");
sButInit.FontID = WFont;
sButInit.pDisplay = intDisplayImageHilight;
sButInit.pUserData = (void*)PACKDWORD_TRI(0,IMAGE_CLOSEHILIGHT , IMAGE_CLOSE);
@ -1875,7 +1875,7 @@ BOOL updateTransporter(DROID *psTransporter)
//play reinforcements have arrived message
audio_QueueTrackPos( ID_SOUND_TRANSPORT_LANDING,
psTransporter->x, psTransporter->y, psTransporter->z );
addConsoleMessage(strresGetString(psStringRes,STR_GAM_REINF),LEFT_JUSTIFY);
addConsoleMessage(_("Reinforcements landing"),LEFT_JUSTIFY);
//reset the data for the transporter timer
widgSetUserData(psWScreen, IDTRANTIMER_DISPLAY, (void*)NULL);
return TRUE;

View File

@ -417,7 +417,7 @@ BOOL displayGameOver(BOOL bDidit)
// flushConsoleMessages( );
// addConsoleMessage(" ", CENTRE_JUSTIFY );
// addConsoleMessage(strresGetString(psStringRes,STR_GAM_GAMEOVER), CENTRE_JUSTIFY );
// addConsoleMessage(_("Game Over"), CENTRE_JUSTIFY );
// addConsoleMessage(" ", CENTRE_JUSTIFY );
//set this for debug mode too - what gets displayed then depends on whether we