Disable annoying click sound effect when clicking the empty container UI (#152)
This commit is contained in:
parent
852b9aac50
commit
53443f1d55
|
|
@ -1303,7 +1303,16 @@ bool IUIScene_AbstractContainerMenu::handleKeyDown(int iPad, int iAction, bool b
|
||||||
// Standard left click
|
// Standard left click
|
||||||
buttonNum = 0;
|
buttonNum = 0;
|
||||||
quickKeyHeld = FALSE;
|
quickKeyHeld = FALSE;
|
||||||
ui.PlayUISFX(eSFX_Press);
|
|
||||||
|
if( IsSectionSlotList( m_eCurrSection ) )
|
||||||
|
{
|
||||||
|
int currentIndex = getCurrentIndex( m_eCurrSection ) - getSectionStartOffset(m_eCurrSection);
|
||||||
|
|
||||||
|
bool bSlotHasItem = !isSlotEmpty(m_eCurrSection, currentIndex);
|
||||||
|
if ( bSlotHasItem )
|
||||||
|
ui.PlayUISFX(eSFX_Press);
|
||||||
|
}
|
||||||
|
//
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ACTION_MENU_X:
|
case ACTION_MENU_X:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue