Dgs-dxline

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

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