예제 #1
0
 void LoadQuiz(object sender, PlayerIndexEventArgs e)
 {
     HelpFadeScreen hfs = new HelpFadeScreen()
     {
         Title = "This is the quiz.This icon on the right will bring up the quiz. You must\n" +
                 "Select the correct answer before you continue to the next day. The arrow\n" +
                 "in the top left will exit our of the quiz.",
         Selection = test,
     };
     QuizScreen quiz = new QuizScreen();
     hfs.Exit += delegate(object s, PlayerIndexEventArgs x)
     {
         quiz.ExitScreen();
     };
     ScreenManager.AddScreen(quiz, e.PlayerIndex);
     ScreenManager.AddScreen(hfs, e.PlayerIndex);
 }
예제 #2
0
 void LoadQuiz(object sender, PlayerIndexEventArgs e)
 {
     if (!quizComplete)
     {
         QuizScreen quiz = new QuizScreen();
         quiz.Complete += delegate(object o, PlayerIndexEventArgs arg)
         {
             quizComplete = true;
         };
         ScreenManager.AddScreen(quiz, e.PlayerIndex);
     }
 }