Dgs-dxline: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
Line 12: Line 12:
<syntaxhighlight lang="lua">dgsSetProperty(line,"color",color)</syntaxhighlight>
<syntaxhighlight lang="lua">dgsSetProperty(line,"color",color)</syntaxhighlight>
*'''color:''' An integer of the color of the line.
*'''color:''' An integer of the color of the line.
===lineData===
A table stores the line data of line
<syntaxhighlight lang="lua">dgsSetProperty(line,"lineData",lineData)</syntaxhighlight>
*'''lineData:''' A table stores all line data.
'''Data Structure'''
<syntaxhighlight lang="lua">
--- If StartXY don't exist, will use last endXY or 0,0
{
{ startX, startY, endX, endY, width, color, relative },
{ startX, startY, endX, endY, width, color, relative },
...
}
</syntaxhighlight>


===lineWidth===
===lineWidth===

Latest revision as of 06:54, 21 March 2022

DGS Properties is always used to change the gui style and make it more fantastic.

This page shows the properties of dgs-dxline that you could use.

Main Functions

Properties

color

The color which can be translated by tocolor of the default color of the line. If the color of item is not specified, this color will be used.

dgsSetProperty(line,"color",color)
  • color: An integer of the color of the line.

lineData

A table stores the line data of line

dgsSetProperty(line,"lineData",lineData)
  • lineData: A table stores all line data.

Data Structure

--- If StartXY don't exist, will use last endXY or 0,0
{
	{ startX, startY, endX, endY, width, color, relative },
	{ startX, startY, endX, endY, width, color, relative },
	...
}

lineWidth

An float of the default width of line. If the width of item is not specified, this width will be used.

dgsSetProperty(line,"lineWidth",lineWidth)
  • lineWidth: A float of the width.

See Also

General Properties

Unique Properties For DGS Core Elements

Extra Properties For DGS Plugins