add "CancelAll" code for PlayerOptions screen

This commit is contained in:
Chris Danford
2004-02-23 07:44:57 +00:00
parent ddeb153ed3
commit e8f3886d2c
4 changed files with 14 additions and 1 deletions
+10
View File
@@ -17,6 +17,7 @@
#include "RageSounds.h"
#include "ScreenSongOptions.h"
#include "PrefsManager.h"
#include "CodeDetector.h"
#define PREV_SCREEN( play_mode ) THEME->GetMetric ("ScreenPlayerOptions","PrevScreen"+Capitalize(PlayModeToString(play_mode)))
@@ -108,6 +109,15 @@ void ScreenPlayerOptions::Input( const DeviceInput& DeviceI, const InputEventTyp
}
}
if( CodeDetector::EnteredCode(GameI.controller,CodeDetector::CODE_CANCEL_ALL) )
{
SOUND->PlayOnce( THEME->GetPathToS("ScreenPlayerOptions cancel all") );
GAMESTATE->m_PlayerOptions[MenuI.player].Init();
GAMESTATE->m_PlayerOptions[MenuI.player].FromString( PREFSMAN->m_sDefaultModifiers );
this->ImportOptions();
this->PositionUnderlines();
}
ScreenOptionsMaster::Input( DeviceI, type, GameI, MenuI, StyleI );
}