Dgs-dx3dinterface: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "DGS Properties is always used to change the gui style and make it more fantastic. This page shows the properties of dgs-dx3dinterface that you could use. ==Main Func...")
 
No edit summary
Line 8: Line 8:


==Properties==
==Properties==
===position===
===fadeDistance===
A table stores x,y,z coordinate of the dx 3d interface in the world.
The distance of which 3D Interface starts to fading.
<syntaxhighlight lang="lua">dgsSetProperty(interface,"position",{x,y,z})</syntaxhighlight>
<syntaxhighlight lang="lua">dgsSetProperty(interface,"fadeDistance",fadeDistance)</syntaxhighlight>
*'''x:''' The x coordinate of the destination.
*'''fadeDistance:''' A float of the fade distance.
*'''y:''' The y coordinate of the destination.
*'''z:''' The z coordinate of the destination.


===faceTo===
===faceTo===
Line 21: Line 19:
*'''faceTowardsY:''' The y coordinate of the destination dx 3d interface faces towards.
*'''faceTowardsY:''' The y coordinate of the destination dx 3d interface faces towards.
*'''faceTowardsZ:''' The z coordinate of the destination dx 3d interface faces towards.
*'''faceTowardsZ:''' The z coordinate of the destination dx 3d interface faces towards.
===size===
The size is relative to the world.
<syntaxhighlight lang="lua">dgsSetProperty(interface,"size",{width,height})</syntaxhighlight>
*'''width:''' A float of the width of the dx 3d interface relative to the world.
*'''height:''' A float of the height of the dx 3d interface relative to the world.


===color===
===color===
Line 32: Line 24:
<syntaxhighlight lang="lua">dgsSetProperty(interface,"color",color)</syntaxhighlight>
<syntaxhighlight lang="lua">dgsSetProperty(interface,"color",color)</syntaxhighlight>
*'''color:'''  An integer of the color of the dx 3d interface.
*'''color:'''  An integer of the color of the dx 3d interface.
===resolution===
The resolution (pixels) of the render target.
<syntaxhighlight lang="lua">dgsSetProperty(interface,"resolution",{width,height})</syntaxhighlight>
*'''width:''' The width of the render target in pixels.
*'''height:''' The height of the render target in pixels.


===maxDistance===
===maxDistance===
Line 48: Line 34:
<syntaxhighlight lang="lua">dgsSetProperty(interface,"renderTarget_parent",renderTarget)</syntaxhighlight>
<syntaxhighlight lang="lua">dgsSetProperty(interface,"renderTarget_parent",renderTarget)</syntaxhighlight>
*'''renderTarget:''' A render target that is used to render the child dgs elements of the dx 3d interface.
*'''renderTarget:''' A render target that is used to render the child dgs elements of the dx 3d interface.
===resolution===
The resolution (pixels) of the render target.
<syntaxhighlight lang="lua">dgsSetProperty(interface,"resolution",{width,height})</syntaxhighlight>
*'''width:''' The width of the render target in pixels.
*'''height:''' The height of the render target in pixels.
===size===
The size is relative to the world.
<syntaxhighlight lang="lua">dgsSetProperty(interface,"size",{width,height})</syntaxhighlight>
*'''width:''' A float of the width of the dx 3d interface relative to the world.
*'''height:''' A float of the height of the dx 3d interface relative to the world.
===position===
A table stores x,y,z coordinate of the dx 3d interface in the world.
<syntaxhighlight lang="lua">dgsSetProperty(interface,"position",{x,y,z})</syntaxhighlight>
*'''x:''' The x coordinate of the destination.
*'''y:''' The y coordinate of the destination.
*'''z:''' The z coordinate of the destination.


==See Also==
==See Also==
{{DGSPROPERTIES}}
{{DGSPROPERTIES}}

Revision as of 03:16, 29 July 2019

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

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

Main Functions

Properties

fadeDistance

The distance of which 3D Interface starts to fading.

dgsSetProperty(interface,"fadeDistance",fadeDistance)
  • fadeDistance: A float of the fade distance.

faceTo

A table stores x,y,z coordinate that dx 3d interface faces towards in the world.

dgsSetProperty(interface,"faceTo",{faceTowardsX,faceTowardsY,faceTowardsZ})
  • faceTowardsX: The x coordinate of the destination dx 3d interface faces towards.
  • faceTowardsY: The y coordinate of the destination dx 3d interface faces towards.
  • faceTowardsZ: The z coordinate of the destination dx 3d interface faces towards.

color

The color which can be translated by tocolor of the dx 3d interface.

dgsSetProperty(interface,"color",color)
  • color: An integer of the color of the dx 3d interface.

maxDistance

The maximum visible distance in the world.

dgsSetProperty(interface,"maxDistance",maxDistance)
  • maxDistance: A float of the distance.

renderTarget_parent

This property stores a render target of the dx 3d interface.

dgsSetProperty(interface,"renderTarget_parent",renderTarget)
  • renderTarget: A render target that is used to render the child dgs elements of the dx 3d interface.

resolution

The resolution (pixels) of the render target.

dgsSetProperty(interface,"resolution",{width,height})
  • width: The width of the render target in pixels.
  • height: The height of the render target in pixels.

size

The size is relative to the world.

dgsSetProperty(interface,"size",{width,height})
  • width: A float of the width of the dx 3d interface relative to the world.
  • height: A float of the height of the dx 3d interface relative to the world.

position

A table stores x,y,z coordinate of the dx 3d interface in the world.

dgsSetProperty(interface,"position",{x,y,z})
  • x: The x coordinate of the destination.
  • y: The y coordinate of the destination.
  • z: The z coordinate of the destination.

See Also

General Properties

Unique Properties For DGS Core Elements

Extra Properties For DGS Plugins