GuiCreateStaticImage: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
Line 4: Line 4:
==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
element guiCreateStaticImage ( float x, float y, float width, float height, string filename, bool relative, parent element )
element guiCreateStaticImage ( float x, float y, float width, float height, string filename, bool relative, parent element, [resource sourceResource = getThisResource()] )
</syntaxhighlight>  
</syntaxhighlight>  


Line 12: Line 12:
===Optional Arguments===  
===Optional Arguments===  
{{OptionalArg}}  
{{OptionalArg}}  
*'''argumentName2:''' description
*'''sourceResource:''' The resource to load the image from. Defaults to the resource that the script is running from.


===Returns===
===Returns===

Revision as of 20:41, 16 June 2007

This function creates a static image.

Syntax

element guiCreateStaticImage ( float x, float y, float width, float height, string filename, bool relative, parent element, [resource sourceResource = getThisResource()] )

Required Arguments

  • argumentName: description

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • sourceResource: The resource to load the image from. Defaults to the resource that the script is running from.

Returns

Returns true if blah, false otherwise.

Example

This example


See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows