Exemplo n.º 1
0
        public void Draw(SpriteBatch spriteBatch, GraphicsDeviceManager graphics)
        {
            // Background
            Background.Draw(spriteBatch, graphics);

            // Banner
            String DateString = MainCharacter.GetDateTimeString() + " - " + BGImagePath;

            DrawingUtils.DrawTextBanner(spriteBatch, graphics, Arial, DateString, Color.Red, Color.Black);
            spriteBatch.Draw(Notebook, NotebookRect, Color.White);
            spriteBatch.Draw(MapIcon, MapIconRect, Color.White);

            // Draw Characters
            foreach (string CharName in CharPics.Keys)
            {
                CharPics[CharName].Draw(spriteBatch, graphics);
            }

            // Draw Interviewee List
            DrawingUtils.DrawFilledRectangle(spriteBatch, graphics, IntervieweeListRect, Color.Beige);
            DrawingUtils.DrawOpenRectangle(spriteBatch, graphics, IntervieweeListRect, Color.Maroon, 3);
            Vector2 TextPos = new Vector2(IntervieweeListRect.X + 10, IntervieweeListRect.Y + 10);

            for (int i = 0; i < MaxInterviewees; i++)
            {
                string Name = "";
                if (Interviewees.Count > i)
                {
                    Name = CharList.AllChars[Interviewees[i]].Name;
                }
                spriteBatch.DrawString(Arial, (i + 1) + ". " + Name, TextPos, Color.Black);
                TextPos += TextOffset;
            }

            // Speech Menu if place is clicked
            if (GState == LocationState.ClickedPerson && SpeechMenu != null)
            {
                SpeechMenu.Draw(spriteBatch, graphics);
            }

            // Confirm Menu if returning to map
            if (GState == LocationState.ClickedReturn && ConfirmMenu != null)
            {
                ConfirmMenu.Draw(spriteBatch, graphics);
            }
        }
Exemplo n.º 2
0
        public void Draw(SpriteBatch spriteBatch, GraphicsDeviceManager graphics)
        {
            // Background
            Background.Draw(spriteBatch, graphics);

            // Banner with Date
            string DateString = MainCharacter.GetDateTimeString();

            DrawingUtils.DrawTextBanner(spriteBatch, graphics, Arial, DateString, Color.Red, Color.Black);
            spriteBatch.Draw(ReturnIcon, ReturnIconRect, Color.White);
            if (SeekingTestimony)
            {
                Rectangle InstructionRect = new Rectangle(Game1.GetWindowSize().X / 2, 20, Game1.GetWindowSize().X / 4, (int)TextOffset.Y * 2);
                DrawingUtils.DrawFilledRectangle(spriteBatch, graphics, InstructionRect, Color.Beige);
                spriteBatch.DrawString(JustBreathe, "Select a testimony", new Vector2(InstructionRect.X + 10, InstructionRect.Y + 10), Color.Black);
            }

            // Notebook Pages
            DrawLeftPage(spriteBatch, graphics);
            DrawRightPage(spriteBatch, graphics);

            // Draw Notebook Tabs
            OptionsTab.Draw(spriteBatch, graphics);
            StatsTab.Draw(spriteBatch, graphics);
            PeopleTab.Draw(spriteBatch, graphics);
            TestimonyTab.Draw(spriteBatch, graphics);

            // Confirm Menu if quitting the game
            if (GState == NotebookState.ClickedQuitGame)
            {
                ConfirmQuitMenu.Draw(spriteBatch, graphics);
            }

            // Confirm Menu if selected testimony
            if (GState == NotebookState.SelectedTestimony)
            {
                ConfirmContradictMenu.Draw(spriteBatch, graphics);
            }
        }