Dgs-dx3dinterface: Difference between revisions
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 |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
==Properties== | ==Properties== | ||
=== | ===fadeDistance=== | ||
The distance of which 3D Interface starts to fading. | |||
<syntaxhighlight lang="lua">dgsSetProperty(interface," | <syntaxhighlight lang="lua">dgsSetProperty(interface,"fadeDistance",fadeDistance)</syntaxhighlight> | ||
*''' | *'''fadeDistance:''' A float of the fade distance. | ||
*''' | |||
*''' | ===faceRelativeTo=== | ||
This property is used to adjust the relativity of property "faceTo". | |||
<syntaxhighlight lang="lua">dgsSetProperty(interface,"faceRelativeTo",faceRelativeTo)</syntaxhighlight> | |||
*'''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=== | ===faceTo=== | ||
Line 21: | Line 26: | ||
*'''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. | ||
===color=== | ===color=== | ||
Line 32: | Line 31: | ||
<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. | ||
===maxDistance=== | ===maxDistance=== | ||
Line 48: | Line 41: | ||
<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}} |
Latest revision as of 12:08, 3 November 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.
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
- dgs-dx3dinterface
- dgs-dx3dimage
- dgs-dx3dtext
- dgs-dx3dline
- dgs-dxbutton
- dgs-dxcheckbox
- dgs-dxcombobox
- dgs-dxdetectarea
- dgs-dxedit
- dgs-dxgridlist
- dgs-dximage
- dgs-dxlabel
- dgs-dxline
- dgs-dxmemo
- dgs-dxprogressbar
- dgs-dxradiobutton
- dgs-dxscrollbar
- dgs-dxscrollpane
- dgs-dxselector
- dgs-dxswitchbutton
- dgs-dxtabpanel
- dgs-dxtab
- dgs-dxwindow