Dgs-dximage: Difference between revisions

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


===imagesize===
===imagesize===
The uv image section. ''Learn More dxDrawImageSection''.
The uv size of image section. ''Learn More dxDrawImageSection''.
<syntaxhighlight lang="lua">dgsSetProperty(image,"imagesize",{usize,vsize})</syntaxhighlight>
<syntaxhighlight lang="lua">dgsSetProperty(image,"imagesize",{usize,vsize})</syntaxhighlight>
*'''usize''' : The absolute width of the image section.
*'''usize''' : The absolute width of the image section.
*'''vsize''' : The absolute height of the image section.
*'''vsize''' : The absolute height of the image section.
===imagepos===
The uv position image section. ''Learn More dxDrawImageSection''.
<syntaxhighlight lang="lua">dgsSetProperty(image,"imagepos",{upos,vpos})</syntaxhighlight>
*'''upos''' : the absolute X coordinate of the top left corner of the section which should be drawn from image.
*'''vpos''' : the absolute Y coordinate of the top left corner of the section which should be drawn from image.


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

Revision as of 15:09, 12 February 2018

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

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

Main Functions

Properties

image

This is equivalent to dgsImageSetImage/dgsImageGetImage.

dgsSetProperty(image,"image",texture)
  • texture : A material element (texture/shader/screen source/render target) of the image.

color

The color which can be translated by tocolor of the image.

dgsSetProperty(image,"color",color)
  • color : An integer of the color of the image.

sideColor

The color which can be translated by tocolor of the image.(sideSize should be changed to enable border)

dgsSetProperty(image,"sideColor",color)
  • color : An integer of the color of the border of the image.

sideSize

The size of the border of the image.(sideColor should be changed to enable border)

dgsSetProperty(image,"sideSize",size)
  • size : A float of the size of the border of the image.

sideState

The state of the border.(in/out/center)

dgsSetProperty(image,"sideState",state)
  • state : A string of the state of the border which can be:
    • in
    • out
    • center

rotationCenter

The rotation center of the image. Learn More dxDrawImage.

dgsSetProperty(image,"rotationCenter",{xoffset,yoffset})
  • xoffset : The relative X (0~1) offset from the image center for which to rotate the image from.
  • yoffset : The relative Y (0~1) offset from the image center for which to rotate the image from.

rotation

The rotation of the image. Learn More dxDrawImage.

dgsSetProperty(image,"rotation",rotation)
  • rotation : The rotation, in degrees for the image.

imagesize

The uv size of image section. Learn More dxDrawImageSection.

dgsSetProperty(image,"imagesize",{usize,vsize})
  • usize : The absolute width of the image section.
  • vsize : The absolute height of the image section.

imagepos

The uv position image section. Learn More dxDrawImageSection.

dgsSetProperty(image,"imagepos",{upos,vpos})
  • upos : the absolute X coordinate of the top left corner of the section which should be drawn from image.
  • vpos : the absolute Y coordinate of the top left corner of the section which should be drawn from image.

See Also

General Properties

Unique Properties For DGS Core Elements

Extra Properties For DGS Plugins