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,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: