Merged from revision: 7189

Update (Rev. 7124): Enhanced Description Box (EDB) Compare Feature (by anv) 
- changed shortcut from "alt" to "ctrl" to prevent accidental sales (ctrl+LMB apparently places item in inventory),
- restored displaying code to more coherent state,
- all columns can be compared - base value, modifier and final value too.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7190 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2014-05-04 15:59:16 +00:00
parent 004fdf839b
commit 7163b0d9a5
2 changed files with 1801 additions and 3455 deletions
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -6926,7 +6926,7 @@ void RenderItemDescriptionBox( )
{
OBJECTTYPE *gpComparedItemDescObject;
BOOLEAN fComparisonMode = FALSE;
if( _KeyDown( ALT ) && gfCheckForCursorOverMapSectorInventoryItem )
if( _KeyDown( CTRL ) && gfCheckForCursorOverMapSectorInventoryItem )
{
gpComparedItemDescObject = &pInventoryPoolList[ ( iCurrentInventoryPoolPage * MAP_INVENTORY_POOL_SLOT_COUNT ) + iCurrentlyHighLightedItem].object;// = pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].object;
if( gpComparedItemDescObject != NULL )
@@ -7392,7 +7392,7 @@ void RenderItemDescriptionBox( )
{
OBJECTTYPE *gpComparedItemDescObject;
BOOLEAN fComparisonMode = FALSE;
if( _KeyDown( ALT ) && gfCheckForCursorOverMapSectorInventoryItem )
if( _KeyDown( CTRL ) && gfCheckForCursorOverMapSectorInventoryItem )
{
gpComparedItemDescObject = &pInventoryPoolList[ ( iCurrentInventoryPoolPage * MAP_INVENTORY_POOL_SLOT_COUNT ) + iCurrentlyHighLightedItem].object;// = pInventoryPoolList[ iCurrentSlot + iFirstSlotOnPage ].object;
if( gpComparedItemDescObject != NULL )