| 942 | } |
| 943 | |
| 944 | void CMenus::UpdateMusicState() |
| 945 | { |
| 946 | const bool ShouldPlay = Client()->State() == IClient::STATE_OFFLINE && g_Config.m_SndEnable && g_Config.m_SndMusic; |
| 947 | if(ShouldPlay && !GameClient()->m_Sounds.IsPlaying(SOUND_MENU)) |
| 948 | GameClient()->m_Sounds.Enqueue(CSounds::CHN_MUSIC, SOUND_MENU); |
| 949 | else if(!ShouldPlay && GameClient()->m_Sounds.IsPlaying(SOUND_MENU)) |
| 950 | GameClient()->m_Sounds.Stop(SOUND_MENU); |
| 951 | } |
| 952 | |
| 953 | void CMenus::PopupMessage(const char *pTitle, const char *pMessage, const char *pButtonLabel, int NextPopup, FPopupButtonCallback pfnButtonCallback) |
| 954 | { |