spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * DrawingSurface functions and properties

DrawString

(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


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.