(Formerly known as SetTextOverlay, which is now obsolete)
Overlay.SetText(int width, FontType font, int color, string text, ...)
Replaces the specified overlay with a new one, at the same co-ordinates but with
the new specified text, width, font and colour.
You can insert the value of variables into the message. For more information,
see the string formatting section.
Example:
Overlay* myOverlay = Overlay.CreateTextual(50,80,120,Game.SpeechFont,15,"This is a text overlay");
Wait(200);
myOverlay.SetText(120,Game.SpeechFont,15,"This is another text overlay");
will create a text overlay , wait for 200 game cycles (about 5 seconds) and then
replace the overlay with another one.
See Also: Overlay.CreateTextual,
Overlay.Remove
|