mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
- externalised squad names
- moved Pockets.xml an PocketPopups.xml - requires GameDir >= r1608 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5872 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -9226,10 +9226,16 @@ void SquadMenuBtnCallback( MOUSE_REGION * pRegion, INT32 iReason )
|
||||
swprintf( sString, pMapErrorString[ 37 ], pSoldier->name );
|
||||
break;
|
||||
case CHARACTER_CANT_JOIN_SQUAD_TOO_FAR:
|
||||
swprintf( sString, pMapErrorString[ 20 ], pSoldier->name, pLongAssignmentStrings[ iValue ] );
|
||||
if ( gGameExternalOptions.fUseXMLSquadNames )
|
||||
swprintf( sString, pMapErrorString[ 20 ], pSoldier->name, SquadNames[ iValue ].squadname );
|
||||
else
|
||||
swprintf( sString, pMapErrorString[ 20 ], pSoldier->name, pLongAssignmentStrings[ iValue ] );
|
||||
break;
|
||||
case CHARACTER_CANT_JOIN_SQUAD_FULL:
|
||||
swprintf( sString, pMapErrorString[ 19 ], pSoldier->name, pLongAssignmentStrings[ iValue ] );
|
||||
if ( gGameExternalOptions.fUseXMLSquadNames )
|
||||
swprintf( sString, pMapErrorString[ 19 ], pSoldier->name, SquadNames[ iValue ].squadname );
|
||||
else
|
||||
swprintf( sString, pMapErrorString[ 19 ], pSoldier->name, pLongAssignmentStrings[ iValue ] );
|
||||
break;
|
||||
default:
|
||||
// generic "you can't join this squad" msg
|
||||
@@ -10059,13 +10065,17 @@ void CreateSquadBox( void )
|
||||
// add strings for box
|
||||
for(uiCounter=0; uiCounter <= uiMaxSquad; uiCounter++)
|
||||
{
|
||||
// get info about current squad and put in string
|
||||
//SQUAD10 FIX
|
||||
swprintf( sString, L"%s ( %d/%d )", pSquadMenuStrings[uiCounter], NumberOfPeopleInSquad( ( INT8 )uiCounter ), gGameOptions.ubSquadSize );
|
||||
AddMonoString(&hStringHandle, sString );
|
||||
// get info about current squad and put in string
|
||||
//SQUAD10 FIX
|
||||
if ( gGameExternalOptions.fUseXMLSquadNames )
|
||||
swprintf( sString, L"%s ( %d/%d )", SquadNames[ uiCounter ].squadname, NumberOfPeopleInSquad( ( INT8 )uiCounter ), gGameOptions.ubSquadSize );
|
||||
else
|
||||
swprintf( sString, L"%s ( %d/%d )", pSquadMenuStrings[uiCounter], NumberOfPeopleInSquad( ( INT8 )uiCounter ), gGameOptions.ubSquadSize );
|
||||
|
||||
// make sure it is unhighlighted
|
||||
UnHighLightLine(hStringHandle);
|
||||
AddMonoString(&hStringHandle, sString );
|
||||
|
||||
// make sure it is unhighlighted
|
||||
UnHighLightLine(hStringHandle);
|
||||
}
|
||||
|
||||
// add cancel line
|
||||
@@ -13744,6 +13754,10 @@ UINT32 GetLastSquadListedInSquadMenu( void )
|
||||
uiMaxSquad = NUMBER_OF_SQUADS - 1;
|
||||
}
|
||||
|
||||
// Flugente: if using xml squad names, always show all squads - people will propably want to use them
|
||||
if ( gGameExternalOptions.fUseXMLSquadNames )
|
||||
uiMaxSquad = NUMBER_OF_SQUADS - 1;
|
||||
|
||||
return( uiMaxSquad );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user