ATTENTION! This requires at least GameDir 1782!

More secondary attributes are now shown on general page of UDB. The following item tags were added:

<Damageable>0
<Metal>1
<Sinks>1
<TwoHanded>1
<BlockIronSight>1

The new icons were added to ItemInfoSecondaryIcons.sti.


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6425 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
silversurfer
2013-09-20 14:46:06 +00:00
parent 8221472bc2
commit 58f6e2d188
11 changed files with 173 additions and 3 deletions
+81 -1
View File
@@ -2300,7 +2300,7 @@ void InternalInitEDBTooltipRegion( OBJECTTYPE * gpItemDescObject, UINT32 guiCurr
iFirstDataRegion = iRegionsCreated;
CHAR16 pStr[1000];
for (cnt = 0; cnt < 26; cnt++)
for (cnt = 0; cnt < 36; cnt++)
{
MSYS_DefineRegion( &gUDBFasthelpRegions[ iRegionsCreated ],
(INT16)(gItemDescGenSecondaryRegions[cnt].sLeft),
@@ -2621,6 +2621,51 @@ void InternalInitEDBTooltipRegion( OBJECTTYPE * gpItemDescObject, UINT32 guiCurr
MSYS_EnableRegion( &gUDBFasthelpRegions[ iFirstDataRegion + cnt ] );
cnt++;
}
//////////////////// NOT DAMAGEABLE
if ( Item[gpItemDescObject->usItem].damageable == 0 )
{
swprintf( pStr, L"%s%s", szUDBGenSecondaryStatsTooltipText[ 32 ], szUDBGenSecondaryStatsExplanationsTooltipText[ 32 ]);
SetRegionFastHelpText( &(gUDBFasthelpRegions[ iFirstDataRegion + cnt ]), pStr );
MSYS_EnableRegion( &gUDBFasthelpRegions[ iFirstDataRegion + cnt ] );
cnt++;
}
//////////////////// METAL
if ( Item[gpItemDescObject->usItem].metal > 0 )
{
swprintf( pStr, L"%s%s", szUDBGenSecondaryStatsTooltipText[ 33 ], szUDBGenSecondaryStatsExplanationsTooltipText[ 33 ]);
SetRegionFastHelpText( &(gUDBFasthelpRegions[ iFirstDataRegion + cnt ]), pStr );
MSYS_EnableRegion( &gUDBFasthelpRegions[ iFirstDataRegion + cnt ] );
cnt++;
}
//////////////////// SINKS
if ( Item[gpItemDescObject->usItem].sinks > 0 )
{
swprintf( pStr, L"%s%s", szUDBGenSecondaryStatsTooltipText[ 34 ], szUDBGenSecondaryStatsExplanationsTooltipText[ 34 ]);
SetRegionFastHelpText( &(gUDBFasthelpRegions[ iFirstDataRegion + cnt ]), pStr );
MSYS_EnableRegion( &gUDBFasthelpRegions[ iFirstDataRegion + cnt ] );
cnt++;
}
//////////////////// TWO HANDED
if ( Item[gpItemDescObject->usItem].twohanded > 0 )
{
swprintf( pStr, L"%s%s", szUDBGenSecondaryStatsTooltipText[ 35 ], szUDBGenSecondaryStatsExplanationsTooltipText[ 35 ]);
SetRegionFastHelpText( &(gUDBFasthelpRegions[ iFirstDataRegion + cnt ]), pStr );
MSYS_EnableRegion( &gUDBFasthelpRegions[ iFirstDataRegion + cnt ] );
cnt++;
}
//////////////////// BLOCKS IRON SIGHTS
if ( Item[gpItemDescObject->usItem].blockironsight > 0 )
{
swprintf( pStr, L"%s%s", szUDBGenSecondaryStatsTooltipText[ 36 ], szUDBGenSecondaryStatsExplanationsTooltipText[ 36 ]);
SetRegionFastHelpText( &(gUDBFasthelpRegions[ iFirstDataRegion + cnt ]), pStr );
MSYS_EnableRegion( &gUDBFasthelpRegions[ iFirstDataRegion + cnt ] );
cnt++;
}
}
//////////////////////////////////////////////////////
@@ -5832,6 +5877,41 @@ void DrawSecondaryStats( OBJECTTYPE * gpItemDescObject )
BltVideoObjectFromIndex( guiSAVEBUFFER, guiItemInfoSecondaryIcon, 30, gItemDescGenSecondaryRegions[cnt].sLeft+sOffsetX, gItemDescGenSecondaryRegions[cnt].sTop+sOffsetY, VO_BLT_SRCTRANSPARENCY, NULL );
cnt++;
}
//////////////////// NOT DAMAGEABLE
if ( Item[gpItemDescObject->usItem].damageable == 0 )
{
BltVideoObjectFromIndex( guiSAVEBUFFER, guiItemInfoSecondaryIcon, 31, gItemDescGenSecondaryRegions[cnt].sLeft+sOffsetX, gItemDescGenSecondaryRegions[cnt].sTop+sOffsetY, VO_BLT_SRCTRANSPARENCY, NULL );
cnt++;
}
//////////////////// METAL
if ( Item[gpItemDescObject->usItem].metal > 0 )
{
BltVideoObjectFromIndex( guiSAVEBUFFER, guiItemInfoSecondaryIcon, 32, gItemDescGenSecondaryRegions[cnt].sLeft+sOffsetX, gItemDescGenSecondaryRegions[cnt].sTop+sOffsetY, VO_BLT_SRCTRANSPARENCY, NULL );
cnt++;
}
//////////////////// SINKS
if ( Item[gpItemDescObject->usItem].sinks > 0 )
{
BltVideoObjectFromIndex( guiSAVEBUFFER, guiItemInfoSecondaryIcon, 33, gItemDescGenSecondaryRegions[cnt].sLeft+sOffsetX, gItemDescGenSecondaryRegions[cnt].sTop+sOffsetY, VO_BLT_SRCTRANSPARENCY, NULL );
cnt++;
}
//////////////////// TWO HANDED
if ( Item[gpItemDescObject->usItem].twohanded > 0 )
{
BltVideoObjectFromIndex( guiSAVEBUFFER, guiItemInfoSecondaryIcon, 34, gItemDescGenSecondaryRegions[cnt].sLeft+sOffsetX, gItemDescGenSecondaryRegions[cnt].sTop+sOffsetY, VO_BLT_SRCTRANSPARENCY, NULL );
cnt++;
}
//////////////////// BLOCKS IRON SIGHTS
if ( Item[gpItemDescObject->usItem].blockironsight > 0 )
{
BltVideoObjectFromIndex( guiSAVEBUFFER, guiItemInfoSecondaryIcon, 35, gItemDescGenSecondaryRegions[cnt].sLeft+sOffsetX, gItemDescGenSecondaryRegions[cnt].sTop+sOffsetY, VO_BLT_SRCTRANSPARENCY, NULL );
cnt++;
}
}
void DrawWeaponValues( OBJECTTYPE * gpItemDescObject )
+2 -2
View File
@@ -649,8 +649,8 @@ extern STR16 szUDBGenExplosiveStatsTooltipText[ 23 ]; // silversurfer Repair
extern STR16 szUDBGenExplosiveStatsExplanationsTooltipText[ 23 ]; // silversurfer Repair Ease: 22->23
extern STR16 szUDBGenCommonStatsTooltipText[ 1 ]; // silversurfer new for items that don't fit the other categories
extern STR16 szUDBGenCommonStatsExplanationsTooltipText[ 1 ]; // silversurfer new for items that don't fit the other categories
extern STR16 szUDBGenSecondaryStatsTooltipText[ 32 ]; // Flugente Food System: 26 -> 28 external feeding: 28->30 JMich_SkillsModifiers: 31 for Defusal kit - covert item: 31->32
extern STR16 szUDBGenSecondaryStatsExplanationsTooltipText[ 32 ]; // Flugente Food System: 26 -> 28 external feeding: 28->30 JMich_SkillsModifiers: 31 for Defusal kit - covert item: 31->32
extern STR16 szUDBGenSecondaryStatsTooltipText[ 37 ]; // Flugente Food System: 26 -> 28 external feeding: 28->30 JMich_SkillsModifiers: 31 for Defusal kit - covert item: 31->32 silversurfer more tags: 32->37
extern STR16 szUDBGenSecondaryStatsExplanationsTooltipText[ 37 ]; // Flugente Food System: 26 -> 28 external feeding: 28->30 JMich_SkillsModifiers: 31 for Defusal kit - covert item: 31->32 silversurfer more tags: 32->37
extern STR16 szUDBAdvStatsTooltipText[ 65 ]; // Flugente Overheating Weapons: 48->56 poison: 56->57 dirt: 57->58 food:58->64 silversurfer Best Laser Range:64->65
extern STR16 szUDBAdvStatsExplanationsTooltipText[ 64 ]; // Flugente Overheating Weapons: 48->56 poison: 56->57 dirt: 57->58 food:58->64
extern STR16 szUDBAdvStatsExplanationsTooltipTextForWeapons[ 52 ]; // Flugente Overheating Weapons: 48->52
+10
View File
@@ -7178,6 +7178,11 @@ STR16 szUDBGenSecondaryStatsTooltipText[]=
L"|机|枪|手|背|包", //L"|A|m|m|o |V|e|s|t",
L"|拆|弹|工|具", //L"|D|e|f|u|s|a|l |K|i|t",
L"|间|谍|器|材", //L"|C|o|v|e|r|t |I|t|e|m",
L"|C|a|n|n|o|t |b|e |d|a|m|a|g|e|d",
L"|M|a|d|e |o|f |M|e|t|a|l",
L"|S|i|n|k|s",
L"|T|w|o|-|H|a|n|d|e|d",
L"|B|l|o|c|k|s |I|r|o|n |S|i|g|h|t|s",
};
STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
@@ -7214,6 +7219,11 @@ STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
L"\n \n使用该机枪手背包中的供弹带,你可以为他人的机关枪供弹。", //L"\n \nYou can feed an MG with ammo\nbelts stored in this vest.",
L"\n \n该物品提升你的陷阱解除几率 ", //L"\n \nThis item improves your trap disarm chance by ",
L"\n \n该物品及附着其上的所有物品均让怀疑者无从觉察。", //L"\n \nThis item and everything attached/inside\nit is hidden from curious eyes.",
L"\n \nThis item cannot be damaged.",
L"\n \nThis item is made of metal.\nIt takes less damage than other items.",
L"\n \nThis item sinks when put in water.",
L"\n \nThis item requires both hands to be used.",
L"\n \nThis item will block your iron sights\nso you cannot use them.",
};
STR16 szUDBAdvStatsTooltipText[]=
+10
View File
@@ -7175,6 +7175,11 @@ STR16 szUDBGenSecondaryStatsTooltipText[]=
L"|A|m|m|o |V|e|s|t",
L"|D|e|f|u|s|a|l |K|i|t", // TODO.Translate
L"|C|o|v|e|r|t |I|t|e|m", // TODO.Translate
L"|C|a|n|n|o|t |b|e |d|a|m|a|g|e|d",
L"|M|a|d|e |o|f |M|e|t|a|l",
L"|S|i|n|k|s",
L"|T|w|o|-|H|a|n|d|e|d",
L"|B|l|o|c|k|s |I|r|o|n |S|i|g|h|t|s",
};
STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
@@ -7211,6 +7216,11 @@ STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
L"\n \nYou can feed an MG with ammo\nbelts stored in this vest.",
L"\n \nThis item improves your trap disarm chance by ", // TODO.Translate
L"\n \nThis item and everything attached/inside\nit is hidden from curious eyes.", // TODO.Translate
L"\n \nThis item cannot be damaged.",
L"\n \nThis item is made of metal.\nIt takes less damage than other items.",
L"\n \nThis item sinks when put in water.",
L"\n \nThis item requires both hands to be used.",
L"\n \nThis item will block your iron sights\nso you cannot use them.",
};
STR16 szUDBAdvStatsTooltipText[]=
+10
View File
@@ -7163,6 +7163,11 @@ STR16 szUDBGenSecondaryStatsTooltipText[]=
L"|A|m|m|o |V|e|s|t",
L"|D|e|f|u|s|a|l |K|i|t",
L"|C|o|v|e|r|t |I|t|e|m",
L"|C|a|n|n|o|t |b|e |d|a|m|a|g|e|d",
L"|M|a|d|e |o|f |M|e|t|a|l",
L"|S|i|n|k|s",
L"|T|w|o|-|H|a|n|d|e|d",
L"|B|l|o|c|k|s |I|r|o|n |S|i|g|h|t|s",
};
STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
@@ -7199,6 +7204,11 @@ STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
L"\n \nYou can feed an MG with ammo\nbelts stored in this vest.",
L"\n \nThis item improves your trap disarm chance by ",
L"\n \nThis item and everything attached/inside\nit is hidden from curious eyes.",
L"\n \nThis item cannot be damaged.",
L"\n \nThis item is made of metal.\nIt takes less damage than other items.",
L"\n \nThis item sinks when put in water.",
L"\n \nThis item requires both hands to be used.",
L"\n \nThis item will block your iron sights\nso you cannot use them.",
};
STR16 szUDBAdvStatsTooltipText[]=
+10
View File
@@ -7159,6 +7159,11 @@ STR16 szUDBGenSecondaryStatsTooltipText[]=
L"|A|m|m|o |V|e|s|t",
L"|D|e|f|u|s|a|l |K|i|t", // TODO.Translate
L"|C|o|v|e|r|t |I|t|e|m", // TODO.Translate
L"|C|a|n|n|o|t |b|e |d|a|m|a|g|e|d",
L"|M|a|d|e |o|f |M|e|t|a|l",
L"|S|i|n|k|s",
L"|T|w|o|-|H|a|n|d|e|d",
L"|B|l|o|c|k|s |I|r|o|n |S|i|g|h|t|s",
};
STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
@@ -7195,6 +7200,11 @@ STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
L"\n \nYou can feed an MG with ammo\nbelts stored in this vest.",
L"\n \nThis item improves your trap disarm chance by ", // TODO.Translate
L"\n \nThis item and everything attached/inside\nit is hidden from curious eyes.", // TODO.Translate
L"\n \nThis item cannot be damaged.",
L"\n \nThis item is made of metal.\nIt takes less damage than other items.",
L"\n \nThis item sinks when put in water.",
L"\n \nThis item requires both hands to be used.",
L"\n \nThis item will block your iron sights\nso you cannot use them.",
};
STR16 szUDBAdvStatsTooltipText[]=
+10
View File
@@ -6988,6 +6988,11 @@ STR16 szUDBGenSecondaryStatsTooltipText[]=
L"|M|u|n|i|t|i|o|n|s|w|e|s|t|e",
L"|E|n|t|s|c|h|ä|r|f|u|n|g|s|a|u|s|r|ü|s|t|u|n|g",
L"|V|e|r|d|e|c|k|t|e |G|e|g|e|n|s|t|a|n|d",
L"|K|a|n|n |n|i|c|h|t |b|e|s|c|h|ä|d|i|g|t |w|e|r|d|e|n",
L"|M|a|d|e |o|f |M|e|t|a|l",
L"|S|i|n|k|s",
L"|T|w|o|-|H|a|n|d|e|d",
L"|B|l|o|c|k|s |I|r|o|n |S|i|g|h|t|s",
};
STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
@@ -7024,6 +7029,11 @@ STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
L"\n \nIn diese Weste passen auch Munitionsgurte.",
L"\n \nDieser Gegenstand verbessert die Chance Fallen zu entschärfen um ",
L"\n \nDieser Gegenstand und alles was daran angebracht/enthalten ist\nwird von neugierigen Augen verborgen bleiben.",
L"\n \nDieser Gegenstand kann nicht beschädigt werden.",
L"\n \nDieser Gegenstand ist aus Metall.\nEr nimmt weniger Schaden als andere Gegenstände.",
L"\n \nDieser Gegenstand versinkt in Wasser.",
L"\n \nDieser Gegenstand muß mit beiden Händen benutzt werden.",
L"\n \nDieser Gegenstand verhindert die Verwendung von Kimme und Korn.",
};
STR16 szUDBAdvStatsTooltipText[]=
+10
View File
@@ -7161,6 +7161,11 @@ STR16 szUDBGenSecondaryStatsTooltipText[]=
L"|A|m|m|o |V|e|s|t",
L"|D|e|f|u|s|a|l |K|i|t", // TODO.Translate
L"|C|o|v|e|r|t |I|t|e|m", // TODO.Translate
L"|C|a|n|n|o|t |b|e |d|a|m|a|g|e|d",
L"|M|a|d|e |o|f |M|e|t|a|l",
L"|S|i|n|k|s",
L"|T|w|o|-|H|a|n|d|e|d",
L"|B|l|o|c|k|s |I|r|o|n |S|i|g|h|t|s",
};
STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
@@ -7197,6 +7202,11 @@ STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
L"\n \nYou can feed an MG with ammo\nbelts stored in this vest.",
L"\n \nThis item improves your trap disarm chance by ", // TODO.Translate
L"\n \nThis item and everything attached/inside\nit is hidden from curious eyes.", // TODO.Translate
L"\n \nThis item cannot be damaged.",
L"\n \nThis item is made of metal.\nIt takes less damage than other items.",
L"\n \nThis item sinks when put in water.",
L"\n \nThis item requires both hands to be used.",
L"\n \nThis item will block your iron sights\nso you cannot use them.",
};
STR16 szUDBAdvStatsTooltipText[]=
+10
View File
@@ -7179,6 +7179,11 @@ STR16 szUDBGenSecondaryStatsTooltipText[]=
L"|A|m|m|o |V|e|s|t",
L"|D|e|f|u|s|a|l |K|i|t", // TODO.Translate
L"|C|o|v|e|r|t |I|t|e|m", // TODO.Translate
L"|C|a|n|n|o|t |b|e |d|a|m|a|g|e|d",
L"|M|a|d|e |o|f |M|e|t|a|l",
L"|S|i|n|k|s",
L"|T|w|o|-|H|a|n|d|e|d",
L"|B|l|o|c|k|s |I|r|o|n |S|i|g|h|t|s",
};
STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
@@ -7215,6 +7220,11 @@ STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
L"\n \nYou can feed an MG with ammo\nbelts stored in this vest.",
L"\n \nThis item improves your trap disarm chance by ", // TODO.Translate
L"\n \nThis item and everything attached/inside\nit is hidden from curious eyes.", // TODO.Translate
L"\n \nThis item cannot be damaged.",
L"\n \nThis item is made of metal.\nIt takes less damage than other items.",
L"\n \nThis item sinks when put in water.",
L"\n \nThis item requires both hands to be used.",
L"\n \nThis item will block your iron sights\nso you cannot use them.",
};
STR16 szUDBAdvStatsTooltipText[]=
+10
View File
@@ -7163,6 +7163,11 @@ STR16 szUDBGenSecondaryStatsTooltipText[]=
L"|A|m|m|o |V|e|s|t",
L"|D|e|f|u|s|a|l |K|i|t", // TODO.Translate
L"|C|o|v|e|r|t |I|t|e|m", // TODO.Translate
L"|C|a|n|n|o|t |b|e |d|a|m|a|g|e|d",
L"|M|a|d|e |o|f |M|e|t|a|l",
L"|S|i|n|k|s",
L"|T|w|o|-|H|a|n|d|e|d",
L"|B|l|o|c|k|s |I|r|o|n |S|i|g|h|t|s",
};
STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
@@ -7199,6 +7204,11 @@ STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
L"\n \nYou can feed an MG with ammo\nbelts stored in this vest.",
L"\n \nThis item improves your trap disarm chance by ", // TODO.Translate
L"\n \nThis item and everything attached/inside\nit is hidden from curious eyes.", // TODO.Translate
L"\n \nThis item cannot be damaged.",
L"\n \nThis item is made of metal.\nIt takes less damage than other items.",
L"\n \nThis item sinks when put in water.",
L"\n \nThis item requires both hands to be used.",
L"\n \nThis item will block your iron sights\nso you cannot use them.",
};
STR16 szUDBAdvStatsTooltipText[]=
+10
View File
@@ -7179,6 +7179,11 @@ STR16 szUDBGenSecondaryStatsTooltipText[]=
L"|A|m|m|o |V|e|s|t",
L"|D|e|f|u|s|a|l |K|i|t", // TODO.Translate
L"|C|o|v|e|r|t |I|t|e|m", // TODO.Translate
L"|C|a|n|n|o|t |b|e |d|a|m|a|g|e|d",
L"|M|a|d|e |o|f |M|e|t|a|l",
L"|S|i|n|k|s",
L"|T|w|o|-|H|a|n|d|e|d",
L"|B|l|o|c|k|s |I|r|o|n |S|i|g|h|t|s",
};
STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
@@ -7215,6 +7220,11 @@ STR16 szUDBGenSecondaryStatsExplanationsTooltipText[]=
L"\n \nYou can feed an MG with ammo\nbelts stored in this vest.",
L"\n \nThis item improves your trap disarm chance by ", // TODO.Translate
L"\n \nThis item and everything attached/inside\nit is hidden from curious eyes.", // TODO.Translate
L"\n \nThis item cannot be damaged.",
L"\n \nThis item is made of metal.\nIt takes less damage than other items.",
L"\n \nThis item sinks when put in water.",
L"\n \nThis item requires both hands to be used.",
L"\n \nThis item will block your iron sights\nso you cannot use them.",
};
STR16 szUDBAdvStatsTooltipText[]=