Exemplo n.º 1
0
        /// <summary>
        /// Draw/print a string message on the draw area
        /// </summary>
        /// <param name="location">The world location acting as the starting point of the drawing</param>
        /// <param name="message">The message to print</param>
        /// <param name="offsetX">The offset in X-direction of the top-left location in pixels</param>
        /// <param name="offsetY">The offset in Y-direction of the top-left location in pixels</param>
        public void DrawExpandingString(WorldLocation location, string message, int offsetX, int offsetY)
        {
            if (OutOfArea(location))
            {
                return;
            }
            Vector2 textOffset = new Vector2(offsetX, offsetY);

            BasicShapes.DrawExpandingString(GetWindowVector(location) + textOffset, DrawColors.colorsNormal.Text, message);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Draw/print a string message on the draw area
        /// </summary>
        /// <param name="location">The world location acting as the starting point of the drawing</param>
        /// <param name="message">The message to print</param>
        public void DrawExpandingString(WorldLocation location, string message)
        {
            if (OutOfArea(location))
            {
                return;
            }
            // We offset the top-left corner to make sure the text is not on the marker.
            int     offsetXY   = 2 + (int)GetWindowSize(2f);
            Vector2 textOffset = new Vector2(offsetXY, offsetXY);

            BasicShapes.DrawExpandingString(GetWindowVector(location) + textOffset, DrawColors.colorsNormal.Text, message);
        }