Exemplo n.º 1
0
        public MainMenu(Stack<IScreen> stack, SystemMain main)
        {
            _menuStack = stack;
            _systemMain = main;
            _menuText = new List<string> {"Take Quiz", "Options", "View Scores"/*, "Edit Material"*/, "Exit"};
            _menu = new ScreenMenu(_menuText,"XNA GAMES!");

            //SystemMain.Drawing.DrawInstruction(40, 640, " to go back", SystemMain.TexturePackage["B"], 4);
        }
Exemplo n.º 2
0
        public QuizDisplay(Quiz q, SystemDisplay sysDisplay)
        {
            _display = sysDisplay;

            _currentQuiz = q;
            _currentQuestion = _currentQuiz.GetNextQuestion();
            _currentQuestionAnswers = _currentQuestion.GetRandomAnswers();
            _currentQuizScore = new Score("Eric", ActivityType.Quiz, 0, _currentQuiz.GetTitle());
            _menu = new ScreenMenu(_currentQuestionAnswers,_currentQuiz.GetTitle(),_currentQuestion.Title);
            SystemMain.Drawing.DestroyTips();
            SystemMain.Drawing.DrawInstruction(40, 660, " to confirm your answer!", SystemMain.TexturePackage["A"], -1);
        }
Exemplo n.º 3
0
        public OptionsMenu(Stack<IScreen> stack, SystemMain main)
        {
            _menuStack = stack;
            _systemMain = main;

            if (Game.Equals("DeathSquid"))
                _menuText = new List<string> {"DeathSquid", "Breakout", "Back"};
            else
                _menuText = new List<string> {"Breakout", "DeathSquid", "Back"};
            _menu = new ScreenMenu(_menuText, "Options");
            SystemMain.Drawing.DestroyTips();
            SystemMain.Drawing.DrawInstruction(40, 560, " to continue", SystemMain.TexturePackage["A"], 3);
            SystemMain.Drawing.DrawInstruction(40, 640, " to go back", SystemMain.TexturePackage["B"], 3);
        }
Exemplo n.º 4
0
        public SystemDisplay(Stack<IScreen> screens, SystemMain main)
        {
            _menuStack = screens;
            _systemMain = main;
            //_qLoad = new QuestionLoader();

            //populate a booklet from file system
            _booklet = SystemMain.Booklets[SystemMain.SelectedBooklet];

            _player = "Eric";
            _scoreManager = new ScoreManager(_player);

            _menu = new ScreenMenu(_menuText, "Are you ready to take your quiz?");
            SystemMain.Drawing.DestroyTips();
            SystemMain.Drawing.DrawInstruction(40, 560, " to continue", SystemMain.TexturePackage["A"], 3);
            SystemMain.Drawing.DrawInstruction(40, 640, " to go back", SystemMain.TexturePackage["B"], 4);
        }
Exemplo n.º 5
0
 public ScoresMenu(Stack<IScreen> stack, SystemMain main)
 {
     _menuStack = stack;
     _systemMain = main;
     _menu = new ScreenMenu(_menuText,"Scores Menu");
 }