Dgs-dx3dinterface

From Multi Theft Auto: Wiki
Revision as of 02:41, 12 June 2018 by Thisdp (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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-dx3dinterface that you could use.

Main Functions

Properties

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.

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.

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.

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.

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.

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.

See Also

General Properties

Unique Properties For DGS Core Elements

Extra Properties For DGS Plugins