mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix button glitches in widescreen UI (#125)
In widescreen strategic UI, team panel sort buttons would be hidden when transferring items to and fro merc inventory via CTRL + left click Exit inventory panel button should always be disabled in widescreen UI
This commit is contained in:
@@ -1292,7 +1292,7 @@ void EnableDisableBottomButtonsAndRegions( void )
|
||||
{
|
||||
DisableButton( giMapInvDoneButton );
|
||||
}
|
||||
else
|
||||
else if (!isWidescreenUI())
|
||||
{
|
||||
EnableButton( giMapInvDoneButton );
|
||||
}
|
||||
|
||||
@@ -5708,7 +5708,7 @@ UINT32 MapScreenHandle(void)
|
||||
HandleCharBarRender( );
|
||||
}
|
||||
|
||||
if( fShowInventoryFlag || fDisableDueToBattleRoster )
|
||||
if( (fShowInventoryFlag && !isWidescreenUI()) || fDisableDueToBattleRoster )
|
||||
{
|
||||
for( iCounter = 0; iCounter < MAX_SORT_METHODS; iCounter++ )
|
||||
{
|
||||
@@ -17968,4 +17968,4 @@ void initMapViewAndBorderCoordinates(void)
|
||||
UI_MAP.HeliETA.Upper_Popup_Y = (50 + iScreenHeightOffset - 100);
|
||||
UI_MAP.HeliETA.Alternate_Height = 97;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user