(Formerly known as RawPrint, which is now obsolete)
DrawingSurface.DrawString(int x, int y, FontType font, string text, ...)
Draws the text onto the surface at (x, y), using the supplied font number.
The text will be drawn in the current drawing colour.
You can insert the value of variables into the message. For more information,
see the string formatting section.
Example:
DrawingSurface *surface = Room.GetDrawingSurfaceForBackground();
surface.DrawingColor = 14;
surface.DrawString(0, 100, Game.NormalFont, "Text written into the background!");
surface.Release();
will write some text onto the middle-left of the room background
See Also: GetTextWidth,
DrawingSurface.DrawStringWrapped,
DrawingSurface.DrawingColor
|