Ejemplo n.º 1
0
        public override void Draw(ZSpriteBatch spriteBatch)
        {
            spriteBatch.DrawRectangle(X, Y, Width, Height, BackgroundColour, this.border, BorderColour);
            Brush brush = new Brush(spriteBatch, this);

            DrawContent(brush);
        }
Ejemplo n.º 2
0
 public override void Draw(ZSpriteBatch spriteBatch)
 {
     int currY;
     currY = y;
     spriteBatch.DrawRectangle(X, Y, width, height, Color.Black);
     foreach (string msg in messages)
     {
         foreach (string line in textReader.Lines(msg))
         {
             currY += font.LineSpacing;
             if (currY > Y + Height)
                 return;
             else
             {
                 spriteBatch.DrawString(font, line, new Vector2(X, currY), color);
             }
         }
     }
 }
Ejemplo n.º 3
0
        public override void Draw(ZSpriteBatch spriteBatch)
        {
            int currY;

            currY = y;
            spriteBatch.DrawRectangle(X, Y, width, height, Color.Black);
            foreach (string msg in messages)
            {
                foreach (string line in textReader.Lines(msg))
                {
                    currY += font.LineSpacing;
                    if (currY > Y + Height)
                    {
                        return;
                    }
                    else
                    {
                        spriteBatch.DrawString(font, line, new Vector2(X, currY), color);
                    }
                }
            }
        }
Ejemplo n.º 4
0
 public override void DrawRectangle(int x, int y, int width, int height, Color color)
 {
     spriteBatch.DrawRectangle(X + x, Y + y, width, height, color);
 }
Ejemplo n.º 5
0
 public override void Draw(ZSpriteBatch spriteBatch)
 {
     spriteBatch.DrawRectangle(X, Y, Width, Height, Color.Black, this.border, Color.DarkGray);
 }
Ejemplo n.º 6
0
 public override void Draw(ZSpriteBatch spriteBatch)
 {
     spriteBatch.DrawRectangle(X, Y, Width, Height, BackgroundColour, this.border, BorderColour);
     Brush brush = new Brush(spriteBatch, this);
     DrawContent(brush);
 }
Ejemplo n.º 7
0
 public override void Draw(ZSpriteBatch spriteBatch)
 {
     spriteBatch.DrawRectangle(X, Y, Width, Height, Color.Black, this.border, Color.DarkGray);
 }