mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +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 );
|
DisableButton( giMapInvDoneButton );
|
||||||
}
|
}
|
||||||
else
|
else if (!isWidescreenUI())
|
||||||
{
|
{
|
||||||
EnableButton( giMapInvDoneButton );
|
EnableButton( giMapInvDoneButton );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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++ )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user