Exemplo n.º 1
0
        public void Draw(string text, SharpDX.Color color, int x, int y)
        {
            if (!IsDrawing)
            {
                Core.EndAllDrawing(Core.RenderingType.Sprite);
                SpriteHandle.Begin();
                IsDrawing = true;
            }

            // Draw the text
            TextHandle.DrawText(SpriteHandle, text, x, y, color);
        }
Exemplo n.º 2
0
        public void Draw(string text, SharpDX.Color color, params Rectangle[] positions)
        {
            if (!IsDrawing)
            {
                Core.EndAllDrawing(Core.RenderingType.Sprite);
                SpriteHandle.Begin();
                IsDrawing = true;
            }

            // Draw the text
            foreach (var pos in positions)
            {
                TextHandle.DrawText(SpriteHandle, text, pos, DrawFlags, new ColorBGRA(color.R, color.G, color.B, color.A));
            }
        }
Exemplo n.º 3
0
        public void Draw()
        {
            if (FullCrop)
            {
                return;
            }

            if (!IsDrawing)
            {
                Core.EndAllDrawing(Core.RenderingType.Sprite);
                SpriteHandle.Begin();
                IsDrawing = true;
            }

            // Draw the text
            TextHandle.DrawText(SpriteHandle, DisplayedText, PositionRectangle, DrawFlags, _color);
        }