mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
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:
@@ -1458,6 +1458,9 @@ void LoadGameExternalOptions()
|
|||||||
|
|
||||||
// CtH/2 if the target are out of gun range or invisible for this merc
|
// 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);
|
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
|
// *** ddd - END
|
||||||
|
|
||||||
// SANDRO - Improved camo applying and camo can be removed
|
// SANDRO - Improved camo applying and camo can be removed
|
||||||
|
|||||||
@@ -827,6 +827,10 @@ typedef struct
|
|||||||
FLOAT uWeightDivisor;
|
FLOAT uWeightDivisor;
|
||||||
|
|
||||||
FLOAT fOutOfGunRangeOrSight;
|
FLOAT fOutOfGunRangeOrSight;
|
||||||
|
|
||||||
|
// anv: automatically return to team panel on turn end (better situation overview during enemy turn)
|
||||||
|
BOOLEAN fAutoCollapseInventoryOnTurnEnd;
|
||||||
|
|
||||||
// WANNE: Always use "prof.dat".
|
// WANNE: Always use "prof.dat".
|
||||||
BOOLEAN fUseDifficultyBasedProfDat;
|
BOOLEAN fUseDifficultyBasedProfDat;
|
||||||
|
|
||||||
|
|||||||
@@ -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 );
|
return( GAME_SCREEN );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2146,6 +2146,12 @@ BOOLEAN InitializeSMPanel( )
|
|||||||
// full cursor - disable, from item pickup
|
// full cursor - disable, from item pickup
|
||||||
EnableSMPanelButtons( FALSE, TRUE );
|
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 );
|
return( TRUE );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user