implement F9 in the course menu

only toggles song translations, not courses (we don't store translits
for those)
This commit is contained in:
Glenn Maynard
2003-02-17 00:59:46 +00:00
parent 3c549b40ae
commit 813bd435de
3 changed files with 32 additions and 9 deletions
+13 -1
View File
@@ -190,7 +190,18 @@ void ScreenSelectCourse::TweenOffScreen()
void ScreenSelectCourse::Input( const DeviceInput& DeviceI, InputEventType type, const GameInput &GameI, const MenuInput &MenuI, const StyleInput &StyleI )
{
LOG->Trace( "ScreenSelectCourse::Input()" );
if( DeviceI.device == DEVICE_KEYBOARD && DeviceI.button == SDLK_F9 )
{
if( type != IET_FIRST_PRESS ) return;
PREFSMAN->m_bShowTranslations ^= 1;
m_MusicWheel.RebuildWheelItemDisplays();
Course* pCourse = m_MusicWheel.GetSelectedCourse();
if(pCourse)
m_CourseContentsFrame.SetFromCourse( pCourse );
return;
}
if( MenuI.button == MENU_BUTTON_RIGHT || MenuI.button == MENU_BUTTON_LEFT )
{
if( !MenuI.IsValid() ) return;
@@ -354,6 +365,7 @@ void ScreenSelectCourse::AfterCourseChange()
m_Banner.LoadFromCourse( pCourse );
m_CourseContentsFrame.SetFromCourse( pCourse );
m_CourseContentsFrame.TweenInAfterChangedCourse();
}
break;
case TYPE_SECTION: // if we get here, there are no courses