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:
Asdow
2023-02-15 16:36:57 +02:00
committed by GitHub
parent 17a0a08097
commit e1f7fa7bfb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1292,7 +1292,7 @@ void EnableDisableBottomButtonsAndRegions( void )
{
DisableButton( giMapInvDoneButton );
}
else
else if (!isWidescreenUI())
{
EnableButton( giMapInvDoneButton );
}
+2 -2
View File
@@ -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;
}
}
}