mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Bugfix: Money-amount was not shown anymore in UDB if you click on "Deposit/Withdraw Money" (by silversurfer)
Bugfix: If we open the UDB for money, the "Description Page" is now shown automatically (by silversurfer) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6231 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5030,6 +5030,7 @@ BOOLEAN InternalInitItemDescriptionBox( OBJECTTYPE *pObject, INT16 sX, INT16 sY,
|
||||
// HEADROCK HAM 5: Adjust Item Region
|
||||
// Before creating the ammo button, we set a region that spans the entire Big Item image. Clicking on the image
|
||||
// will trigger a Transformation menu.
|
||||
if ( gpItemDescObject->usItem != MONEY )
|
||||
{
|
||||
MSYS_DefineRegion( &gInvDescTransformRegion, (UINT16)ITEMDESC_ITEM_X, (UINT16)ITEMDESC_ITEM_Y ,(UINT16)(ITEMDESC_ITEM_X + ITEMDESC_ITEM_WIDTH), (UINT16)(ITEMDESC_ITEM_Y + ITEMDESC_ITEM_HEIGHT), MSYS_PRIORITY_HIGHEST,
|
||||
MSYS_NO_CURSOR, MSYS_NO_CALLBACK, ItemDescTransformRegionCallback );
|
||||
@@ -5209,6 +5210,7 @@ BOOLEAN InternalInitItemDescriptionBox( OBJECTTYPE *pObject, INT16 sX, INT16 sY,
|
||||
gRemoveMoney.uiTotalAmount = (*gpItemDescObject)[0]->data.money.uiMoneyAmount;
|
||||
gRemoveMoney.uiMoneyRemaining = (*gpItemDescObject)[0]->data.money.uiMoneyAmount;
|
||||
gRemoveMoney.uiMoneyRemoving = 0;
|
||||
gubDescBoxPage = 0;
|
||||
|
||||
// Load graphic
|
||||
VObjectDesc.fCreateFlags = VOBJECT_CREATE_FROMFILE;
|
||||
@@ -7339,9 +7341,9 @@ void RenderItemDescriptionBox( )
|
||||
mprintf( (UINT16)(gMoneyButtonLoc.x + gMoneyButtonOffsets[4].x), (UINT16)(gMoneyButtonLoc.y + gMoneyButtonOffsets[4].y ), gzMoneyAmounts[4] );
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ( Item[ gpItemDescObject->usItem ].usItemClass == IC_MONEY )
|
||||
{
|
||||
// }
|
||||
// else if ( Item[ gpItemDescObject->usItem ].usItemClass == IC_MONEY )
|
||||
// {
|
||||
SetFontForeground( FONT_FCOLOR_WHITE );
|
||||
SetFontShadow( DEFAULT_SHADOW );
|
||||
swprintf( pStr, L"%ld", (*gpItemDescObject)[gubItemDescStatusIndex]->data.money.uiMoneyAmount );
|
||||
|
||||
Reference in New Issue
Block a user