Disable annoying click sound effect when clicking the empty container UI (#152)

This commit is contained in:
void_17
2026-03-03 00:41:01 +07:00
committed by GitHub
parent 852b9aac50
commit 53443f1d55

View File

@@ -1303,8 +1303,17 @@ bool IUIScene_AbstractContainerMenu::handleKeyDown(int iPad, int iAction, bool b
// Standard left click
buttonNum = 0;
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);
}
//
}
break;
case ACTION_MENU_X:
if(!bRepeat)