Dgs-dx3dinterface

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

faceRelativeTo

This property is used to adjust the relativity of property "faceTo".

dgsSetProperty(interface,"faceRelativeTo",faceRelativeTo)
  • faceRelativeTo: A string of the relative options:
    • self: Default state, relative to 3D Interface itself, faceTo = selfPosition+faceTo
    • world: Default state, relative to the world, faceTo = absoluteWorldPosition

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