Merged from revision: 7157

- Fixed inventory artefacts in widescreen (by anv)
- Automatically return to team panel on turn end (better situation overview during enemy turn) (by anv)
  ja2_options.ini: AUTO_COLLAPSE_INVENTORY_ON_TURN_END

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7158 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2014-04-19 10:09:33 +00:00
parent cd1c0a4e43
commit 01e68ac2ba
4 changed files with 17 additions and 0 deletions
+3
View File
@@ -1458,6 +1458,9 @@ void LoadGameExternalOptions()
// CtH/2 if the target are out of gun range or invisible for this merc
gGameExternalOptions.fOutOfGunRangeOrSight = iniReader.ReadFloat("Tactical Interface Settings","OUT_OF_SIGHT_OR_GUN_RANGE",2,1,100);
// anv: automatically return to team panel on turn end (better situation overview during enemy turn)
gGameExternalOptions.fAutoCollapseInventoryOnTurnEnd = iniReader.ReadBoolean("Tactical Interface Settings","AUTO_COLLAPSE_INVENTORY_ON_TURN_END", TRUE);
// *** ddd - END
// SANDRO - Improved camo applying and camo can be removed
+4
View File
@@ -827,6 +827,10 @@ typedef struct
FLOAT uWeightDivisor;
FLOAT fOutOfGunRangeOrSight;
// anv: automatically return to team panel on turn end (better situation overview during enemy turn)
BOOLEAN fAutoCollapseInventoryOnTurnEnd;
// WANNE: Always use "prof.dat".
BOOLEAN fUseDifficultyBasedProfDat;
+4
View File
@@ -1337,6 +1337,10 @@ UINT32 UIHandleEndTurn( UI_EVENT *pUIEvent )
}
}
// anv: automatically return to team panel on turn end (better situation overview during enemy turn)
if( gGameExternalOptions.fAutoCollapseInventoryOnTurnEnd == TRUE )
SetCurrentInterfacePanel( TEAM_PANEL );
return( GAME_SCREEN );
}
+6
View File
@@ -2146,6 +2146,12 @@ BOOLEAN InitializeSMPanel( )
// full cursor - disable, from item pickup
EnableSMPanelButtons( FALSE, TRUE );
}
if( INTERFACE_START_X > 0 )
{
ColorFillVideoSurfaceArea( FRAME_BUFFER, 0, INV_INTERFACE_START_Y, SCREEN_WIDTH, SCREEN_HEIGHT, 0 );
ColorFillVideoSurfaceArea( guiSAVEBUFFER, 0, INV_INTERFACE_START_Y, SCREEN_WIDTH, SCREEN_HEIGHT, 0 );
}
return( TRUE );
}