Also remove clicking sound effect on empty container UI slots for rclick and middle mouse button click
Tested by me so no PR and just push upstream
This commit is contained in:
@@ -1323,8 +1323,16 @@ bool IUIScene_AbstractContainerMenu::handleKeyDown(int iPad, int iAction, bool b
|
|||||||
// Standard right click
|
// Standard right click
|
||||||
buttonNum = 1;
|
buttonNum = 1;
|
||||||
quickKeyHeld = FALSE;
|
quickKeyHeld = FALSE;
|
||||||
|
|
||||||
|
if( IsSectionSlotList( m_eCurrSection ) )
|
||||||
|
{
|
||||||
|
int currentIndex = getCurrentIndex( m_eCurrSection ) - getSectionStartOffset(m_eCurrSection);
|
||||||
|
|
||||||
|
bool bSlotHasItem = !isSlotEmpty(m_eCurrSection, currentIndex);
|
||||||
|
if ( bSlotHasItem )
|
||||||
ui.PlayUISFX(eSFX_Press);
|
ui.PlayUISFX(eSFX_Press);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ACTION_MENU_Y:
|
case ACTION_MENU_Y:
|
||||||
if(!bRepeat)
|
if(!bRepeat)
|
||||||
@@ -1342,9 +1350,16 @@ bool IUIScene_AbstractContainerMenu::handleKeyDown(int iPad, int iAction, bool b
|
|||||||
// Shift and left click
|
// Shift and left click
|
||||||
buttonNum = 0;
|
buttonNum = 0;
|
||||||
quickKeyHeld = TRUE;
|
quickKeyHeld = TRUE;
|
||||||
|
if( IsSectionSlotList( m_eCurrSection ) )
|
||||||
|
{
|
||||||
|
int currentIndex = getCurrentIndex( m_eCurrSection ) - getSectionStartOffset(m_eCurrSection);
|
||||||
|
|
||||||
|
bool bSlotHasItem = !isSlotEmpty(m_eCurrSection, currentIndex);
|
||||||
|
if ( bSlotHasItem )
|
||||||
ui.PlayUISFX(eSFX_Press);
|
ui.PlayUISFX(eSFX_Press);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
// 4J Stu - Also enable start to exit the scene. This key is also not constrained by the tutorials.
|
// 4J Stu - Also enable start to exit the scene. This key is also not constrained by the tutorials.
|
||||||
case ACTION_MENU_PAUSEMENU:
|
case ACTION_MENU_PAUSEMENU:
|
||||||
|
|||||||
Reference in New Issue
Block a user