MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / GetMenuSound

Method GetMenuSound

core/MenuManager.cpp:726–765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726std::string *MenuManager::GetMenuSound(ItemSelection sel)
727{
728 std::string *sound = nullptr;
729
730 switch (sel)
731 {
732 case ItemSel_Back:
733 case ItemSel_Next:
734 case ItemSel_Item:
735 {
736 if (m_SelectSound.size() > 0)
737 {
738 sound = &m_SelectSound;
739 }
740 break;
741 }
742 case ItemSel_ExitBack:
743 {
744 if (m_ExitBackSound.size() > 0)
745 {
746 sound = &m_ExitBackSound;
747 }
748 break;
749 }
750 case ItemSel_Exit:
751 {
752 if (m_ExitSound.size() > 0)
753 {
754 sound = &m_ExitSound;
755 }
756 break;
757 }
758 default:
759 {
760 break;
761 }
762 }
763
764 return sound;
765}
766
767void MenuManager::OnSourceModLevelChange(const char *mapName)
768{

Callers 1

ClientPressedKeyMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected