Esempio n. 1
0
        public void Draw(float fDeltaTime, SpriteBatch DrawBatch)
        {
            GenerateMarkup();
            Vector2 vPosition = m_vBottomLeft;

            vPosition.Y -= m_Markup.Size.Y;

            // Draw my BG
            Rectangle rect = new Rectangle((int)vPosition.X - 4, (int)vPosition.Y - 1,
                                           (int)m_Markup.Size.X + 4, (int)m_Markup.Size.Y + 1);

            GraphicsManager.Get().DrawFilled(DrawBatch, rect, Color.Black, 2.0f, Color.DarkBlue);

            // Draw some lines to make a BOX


            // Now draw the wrapped/markup text
            m_Markup.Draw(DrawBatch, vPosition);
        }
Esempio n. 2
0
        public override void Draw(float fDeltaTime, SpriteBatch DrawBatch)
        {
            // Draw background
            GraphicsManager g    = GraphicsManager.Get();
            Rectangle       rect = new Rectangle(0, 0, g.Width, g.Height);

            g.DrawFilled(DrawBatch, rect, Color.Black, 4.0f, Color.Black);

            // Title
            Vector2 vOffset = Vector2.Zero;

            vOffset.Y = -1.0f * GraphicsManager.Get().Height / 2.5f;
            DrawCenteredString(DrawBatch, m_Title, m_TitleFont, Color.DarkBlue, vOffset);

            // Instruction block
            vOffset.X = GraphicsManager.Get().Width / 2.0f - m_Instructions.Size.X / 2.0f;
            vOffset.Y = GraphicsManager.Get().Height / 2.0f - m_Instructions.Size.Y / 2.0f;
            m_Instructions.Draw(DrawBatch, vOffset);
            base.Draw(fDeltaTime, DrawBatch);
        }