TextDestroyDisplay: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">void textDestroyDisplay ( textdisplay textdisplay )</syntaxhighlight>
<syntaxhighlight lang="lua">
void textDestroyDisplay ( textdisplay display )
</syntaxhighlight>
 
===Required Arguments===
* '''display:''' This is the [[textdisplay]] that you wish to have destroyed.


==Example==
==Example==
<syntaxhighlight lang="lua">textDisplay = textCreateDisplay ()
This example creates a display then destroys it again straight away.
textDestroyDisplay ( textDisplay )</syntaxhighlight>
<syntaxhighlight lang="lua">
myDisplay = textCreateDisplay ()
textDestroyDisplay ( myDisplay )
</syntaxhighlight>

Revision as of 13:06, 20 May 2006

Description

This function destroys a text display and will unlink all the text items on it. This does not stop the text items existing, but anyone who was observing the text items through this display will stop seeing them.

Syntax

void textDestroyDisplay ( textdisplay display )

Required Arguments

  • display: This is the textdisplay that you wish to have destroyed.

Example

This example creates a display then destroys it again straight away.

myDisplay = textCreateDisplay ()
textDestroyDisplay ( myDisplay )