Dgs/DgsDxCreateGridList: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "==Syntax== Not completed <syntaxhighlight lang="lua"> element dgsDxCreateGridList( float x, float y, float width, float height, bool relative[element parent = nil] ) </syntax...")
 
Line 2: Line 2:
Not completed
Not completed
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
element dgsDxCreateGridList( float x, float y, float width, float height, bool relative[element parent = nil] )
element dgsDxCreateGridList( float x, float y, float width, float height, bool relative,[ element parent = nil] )
</syntaxhighlight>  
</syntaxhighlight>  
===Optional Arguments===  
===Optional Arguments===  

Revision as of 17:47, 1 July 2017

Syntax

Not completed

element dgsDxCreateGridList( float x, float y, float width, float height, bool relative,[ element parent = nil] )

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. Not completed

  • parent: This is the parent that the DGS button is attached to. If the relative argument is true, sizes and positioning will be made relative to this parent. If the relative argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.

Returns

Returns an element of the created gridlist if it was successfully created, false otherwise.