mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
- fixed key ring icon position for all resolutions
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5540 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1662,13 +1662,17 @@ void HandleRenderInvSlots( SOLDIERTYPE *pSoldier, UINT8 fDirtyLevel )
|
||||
// CHRISL: adjust settings to use variables for coords
|
||||
if ( guiCurrentItemDescriptionScreen != MAP_SCREEN )
|
||||
{
|
||||
sX=((UsingNewInventorySystem() == false))?496:221;
|
||||
sY=((UsingNewInventorySystem() == false))?INV_INTERFACE_START_Y+106:INV_INTERFACE_START_Y+5;
|
||||
//sX=((UsingNewInventorySystem() == false))?496:221;
|
||||
//sY=((UsingNewInventorySystem() == false))?INV_INTERFACE_START_Y+106:INV_INTERFACE_START_Y+5;
|
||||
sX=KEYRING_X;
|
||||
sY=KEYRING_Y;
|
||||
}
|
||||
else
|
||||
{
|
||||
sX=((UsingNewInventorySystem() == false))?217:188;
|
||||
sY=((UsingNewInventorySystem() == false))?271:126;
|
||||
//sX=((UsingNewInventorySystem() == false))?217:188;
|
||||
//sY=((UsingNewInventorySystem() == false))?271:126;
|
||||
sX=MAP_KEYRING_X;
|
||||
sY=MAP_KEYRING_Y;
|
||||
}
|
||||
BltVideoObjectFromIndex( guiSAVEBUFFER, guiGoldKeyVO, 0, sX, sY, VO_BLT_SRCTRANSPARENCY, NULL );
|
||||
RestoreExternBackgroundRect( sX, sY, 29, 23 );
|
||||
|
||||
@@ -1617,9 +1617,9 @@ BOOLEAN InitializeSMPanelCoordsOld()
|
||||
INTERFACE_CLOCK_Y = ( 119 + INV_INTERFACE_START_Y );
|
||||
LOCATION_NAME_Y = ( 65 + INTERFACE_START_Y );
|
||||
|
||||
// Keyring
|
||||
KEYRING_X = xResOffset + 494;
|
||||
KEYRING_Y = (105 + INV_INTERFACE_START_Y);
|
||||
// Keyring 496/106 on Inventory_Bottom_Panel.sti
|
||||
KEYRING_X = xResOffset + 496;
|
||||
KEYRING_Y = (106 + INV_INTERFACE_START_Y);
|
||||
|
||||
// so we got everything "dynamic" now we just return TRUE
|
||||
return ( TRUE );
|
||||
@@ -1989,8 +1989,8 @@ BOOLEAN InitializeSMPanelCoordsNew()
|
||||
INTERFACE_CLOCK_Y = ( 117 + INV_INTERFACE_START_Y );
|
||||
LOCATION_NAME_Y = ( 89 + INTERFACE_START_Y );
|
||||
|
||||
//Keyring
|
||||
KEYRING_X = xResOffset + 217; //209;
|
||||
//Keyring 218/5 on Inventory_Bottom_Panel.sti
|
||||
KEYRING_X = xResOffset + 219; //209;
|
||||
KEYRING_Y = (5 + INV_INTERFACE_START_Y);
|
||||
|
||||
// so we got everything "dynamic" now we just return TRUE
|
||||
|
||||
Reference in New Issue
Block a user