private void ConfirmSelectionAndAdvance(int pos) { int invertPos = 8 - pos; PD.sounds.SetSoundAndPlay(SoundPaths.S_Menu_Confirm); PD.prevMainMenuLocationX = cursor.getX(); PD.prevMainMenuLocationY = cursor.getY(); switch (invertPos) { case 0: Application.Quit(); break; case 1: PD.MainMenuConfirmation(PersistData.GT.Options); break; case 2: PD.MainMenuConfirmation(PersistData.GT.PlayerData); break; case 3: PD.MainMenuConfirmation(PersistData.GT.Training); break; case 4: PD.MainMenuConfirmation(PersistData.GT.Challenge); break; case 5: PD.MainMenuConfirmation(PersistData.GT.Campaign); break; case 6: PD.MainMenuConfirmation(PersistData.GT.Arcade); break; case 7: PD.MainMenuConfirmation(PersistData.GT.Versus); break; case 8: PD.MainMenuConfirmation(PersistData.GT.QuickPlay); break; default: break; } }