TextDisplayAddText: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→Syntax) |
||
Line 4: | Line 4: | ||
==Syntax== | ==Syntax== | ||
void textDisplayAddText ( [[textitem]] itemToAdd, [[textdisplay]] displayToAddTo ) | void [[textDisplayAddText]] ( [[textitem]] itemToAdd, [[textdisplay]] displayToAddTo ) | ||
===Required Arguments=== | ===Required Arguments=== |
Revision as of 22:14, 24 March 2006
Description
This function adds a textitem to a textdisplay. This allows any observers of the textdisplay to see the textitem.
Syntax
void textDisplayAddText ( textitem itemToAdd, textdisplay displayToAddTo )
Required Arguments
- itemToAdd: The textitem to add to the display.
- displayToAddTo: The textdisplay to add the textitem to.
Example
textDisplay = textCreateDisplay (); textDisplayAddObserver ( textDisplay, player ); textItem = textCreateTextItem ( "Hello World", 0.5, 0.5, "low", 255, 0, 0, 0, 1.0 ); textDisplayAddText ( textDisplay, textItem );