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 ); DisableButton( giMapInvDoneButton );
} }
else else if (!isWidescreenUI())
{ {
EnableButton( giMapInvDoneButton ); EnableButton( giMapInvDoneButton );
} }
+1 -1
View File
@@ -5708,7 +5708,7 @@ UINT32 MapScreenHandle(void)
HandleCharBarRender( ); HandleCharBarRender( );
} }
if( fShowInventoryFlag || fDisableDueToBattleRoster ) if( (fShowInventoryFlag && !isWidescreenUI()) || fDisableDueToBattleRoster )
{ {
for( iCounter = 0; iCounter < MAX_SORT_METHODS; iCounter++ ) for( iCounter = 0; iCounter < MAX_SORT_METHODS; iCounter++ )
{ {