From d0ca5c85efa8452c4b09e74d9f95b547fe5d0c5b Mon Sep 17 00:00:00 2001 From: Colby Klein Date: Wed, 3 Sep 2008 06:40:14 +0000 Subject: [PATCH] Broadcast a message when native language display is toggled. Change the second arg for PlayerSelectMenu to SM_None, it doesn't seem to make a difference here. --- stepmania/src/ScreenSelectMusic.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenSelectMusic.cpp b/stepmania/src/ScreenSelectMusic.cpp index 2e7a895a47..754b5b160f 100644 --- a/stepmania/src/ScreenSelectMusic.cpp +++ b/stepmania/src/ScreenSelectMusic.cpp @@ -345,6 +345,7 @@ void ScreenSelectMusic::Input( const InputEventPlus &input ) if( input.type != IET_FIRST_PRESS ) return; PREFSMAN->m_bShowNativeLanguage.Set( !PREFSMAN->m_bShowNativeLanguage ); + MESSAGEMAN->Broadcast( "ChangedLanguageDisplay" ); m_MusicWheel.RebuildWheelItems(); return; } @@ -409,7 +410,7 @@ void ScreenSelectMusic::Input( const InputEventPlus &input ) { if( input.type == IET_RELEASE && input.MenuI == GAME_BUTTON_SELECT ) { - SCREENMAN->AddNewScreenToTop( "ScreenPlayerOptions", SM_BackFromPlayerOptions ); + SCREENMAN->AddNewScreenToTop( "ScreenPlayerOptions", SM_None ); } }