(Formerly known as RawPrintMessageWrapped, which is now obsolete)
DrawingSurface.DrawMessageWrapped(int x, int y, int width,
FontType font, int message_number)
Draws the room message MESSAGE_NUMBER onto the surface at (x,y), using the
specified FONT.
WIDTH is the width of the virtual textbox enclosing the text, and is the point that
the text will wrap at. This command is designed for writing a long message to the
screen with it wrapping normally like a standard label would do.
The text will be printed using the current drawing colour.
Example:
DrawingSurface *surface = Room.GetDrawingSurfaceForBackground();
surface.DrawingColor = 14;
surface.DrawMessageWrapped(80, 40, 160, Game.NormalFont, 10);
surface.Release();
will display message 10 in the centre of the screen, starting from Y = 40.
See Also: DrawingSurface.DrawString,
DrawingSurface.DrawingColor,
DrawingSurface.DrawStringWrapped
|