mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
- Updated tooltip code
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@539 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -538,6 +538,7 @@ void LoadGameExternalOptions()
|
|||||||
// ShadoWarrior: Tooltip changes (start)
|
// ShadoWarrior: Tooltip changes (start)
|
||||||
gGameExternalOptions.ubSoldierTooltipDetailLevel = iniReader.ReadInteger("JA2 Tactical Settings", "SOLDIER_TOOLTIP_DETAIL_LEVEL", 2);
|
gGameExternalOptions.ubSoldierTooltipDetailLevel = iniReader.ReadInteger("JA2 Tactical Settings", "SOLDIER_TOOLTIP_DETAIL_LEVEL", 2);
|
||||||
|
|
||||||
|
gGameExternalOptions.fEnableDynamicSoldierTooltips = iniReader.ReadBoolean("JA2 Tactical Settings", "DYNAMIC_SOLDIER_TOOLTIPS", TRUE);
|
||||||
gGameExternalOptions.fEnableSoldierTooltipLocation = iniReader.ReadBoolean("JA2 Tactical Settings", "SOLDIER_TOOLTIP_DISPLAY_LOCATION", TRUE);
|
gGameExternalOptions.fEnableSoldierTooltipLocation = iniReader.ReadBoolean("JA2 Tactical Settings", "SOLDIER_TOOLTIP_DISPLAY_LOCATION", TRUE);
|
||||||
gGameExternalOptions.fEnableSoldierTooltipBrightness = iniReader.ReadBoolean("JA2 Tactical Settings", "SOLDIER_TOOLTIP_DISPLAY_BRIGHTNESS", TRUE);
|
gGameExternalOptions.fEnableSoldierTooltipBrightness = iniReader.ReadBoolean("JA2 Tactical Settings", "SOLDIER_TOOLTIP_DISPLAY_BRIGHTNESS", TRUE);
|
||||||
gGameExternalOptions.fEnableSoldierTooltipRangeToTarget = iniReader.ReadBoolean("JA2 Tactical Settings", "SOLDIER_TOOLTIP_DISPLAY_RANGE_TO_TARGET", TRUE);
|
gGameExternalOptions.fEnableSoldierTooltipRangeToTarget = iniReader.ReadBoolean("JA2 Tactical Settings", "SOLDIER_TOOLTIP_DISPLAY_RANGE_TO_TARGET", TRUE);
|
||||||
|
|||||||
@@ -143,6 +143,7 @@ typedef struct
|
|||||||
BOOLEAN fSellAll;
|
BOOLEAN fSellAll;
|
||||||
INT16 iPriceModifier;
|
INT16 iPriceModifier;
|
||||||
|
|
||||||
|
INT32 iMaxIMPMaleCharacters;
|
||||||
INT32 iMaxIMPCharacters;
|
INT32 iMaxIMPCharacters;
|
||||||
INT32 iMinAttribute;
|
INT32 iMinAttribute;
|
||||||
INT32 iMaxAttribute;
|
INT32 iMaxAttribute;
|
||||||
@@ -350,6 +351,7 @@ typedef struct
|
|||||||
// ShadoWarrior: Tooltip changes (start)
|
// ShadoWarrior: Tooltip changes (start)
|
||||||
UINT8 ubSoldierTooltipDetailLevel;
|
UINT8 ubSoldierTooltipDetailLevel;
|
||||||
|
|
||||||
|
BOOLEAN fEnableDynamicSoldierTooltips;
|
||||||
BOOLEAN fEnableSoldierTooltipLocation;
|
BOOLEAN fEnableSoldierTooltipLocation;
|
||||||
BOOLEAN fEnableSoldierTooltipBrightness;
|
BOOLEAN fEnableSoldierTooltipBrightness;
|
||||||
BOOLEAN fEnableSoldierTooltipRangeToTarget;
|
BOOLEAN fEnableSoldierTooltipRangeToTarget;
|
||||||
|
|||||||
+2
-2
@@ -23,12 +23,12 @@ INT16 zVersionLabel[256] = { L"Beta v. 0.98" };
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
//RELEASE BUILD VERSION
|
//RELEASE BUILD VERSION
|
||||||
INT16 zVersionLabel[256] = { L"Release v1.13.536" };
|
INT16 zVersionLabel[256] = { L"Release v1.13.538" };
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
INT8 czVersionNumber[16] = { "Build 06.09.18" };
|
INT8 czVersionNumber[16] = { "Build 06.09.19" };
|
||||||
INT16 zTrackingNumber[16] = { L"Z" };
|
INT16 zTrackingNumber[16] = { L"Z" };
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -49,8 +49,7 @@ void SoldierTooltip( SOLDIERTYPE* pSoldier )
|
|||||||
if ( gusSelectedSoldier != NOBODY )
|
if ( gusSelectedSoldier != NOBODY )
|
||||||
iRangeToTarget = GetRangeInCellCoordsFromGridNoDiff( MercPtrs[ gusSelectedSoldier ]->sGridNo, sSoldierGridNo ) / 10;
|
iRangeToTarget = GetRangeInCellCoordsFromGridNoDiff( MercPtrs[ gusSelectedSoldier ]->sGridNo, sSoldierGridNo ) / 10;
|
||||||
|
|
||||||
// WANNE NEW
|
if ( gGameExternalOptions.fEnableDynamicSoldierTooltips )
|
||||||
//if ( gGameExternalOptions.fEnableDynamicSoldierTooltips )
|
|
||||||
{
|
{
|
||||||
for ( INT32 cnt = 0; cnt < MAX_ATTACHMENTS; cnt++ )
|
for ( INT32 cnt = 0; cnt < MAX_ATTACHMENTS; cnt++ )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user