Dgs-dxprogressbar: 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-dxlabel that you could use. ==Main Functions=...")
 
 
(18 intermediate revisions by 2 users not shown)
Line 27: Line 27:
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"indicatorImage",indicatorImage)</syntaxhighlight>
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"indicatorImage",indicatorImage)</syntaxhighlight>
*'''indicatorImage''' : A material element that serves as the indicator image of the progress bar (texture/shader/screen source/renderTarget).
*'''indicatorImage''' : A material element that serves as the indicator image of the progress bar (texture/shader/screen source/renderTarget).
===indicatorMode===
This property determines the indicator mode of the progress bar. See [[dgsProgressBarSetMode]]/[[dgsProgressBarGetMode]].
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"indicatorMode",indicatorMode)</syntaxhighlight>
*'''indicatorMode''' : A bool indicates if indicator image uses clip mode or stretch mode. (false for stretch, true for clip)


===padding===
===padding===
Line 38: Line 43:
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"progress",progress)</syntaxhighlight>
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"progress",progress)</syntaxhighlight>
*'''progress''' : A float of progress value.
*'''progress''' : A float of progress value.
===progressReverse===
This property determines if the progress value is reversed.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"progressReverse",progressReverse)</syntaxhighlight>
*'''progressReverse''' : A bool indicates if the progress value is from 0 to 100 or 100 to 0.


===style===
===style===
Line 44: Line 54:
*'''style''' : A string of the style name.
*'''style''' : A string of the style name.


===styleData===
==Style Properties==
This property stores the style data of the progress bar. See [[dgsProgressBarGetStyleProperty]]/[[dgsProgressBarSetStyleProperty]] for detail.
===>Style:normal-horizontal<===
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"styleData",styleData)</syntaxhighlight>
None
*'''styleData''' : A table of the style data.
===>Style:normal-vertical<===
None
===>Style:ring-round<===
 
====antiAliased====
This style property determines the anti aliasing of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"antiAliased",antiAliased)</syntaxhighlight>
*'''antiAliased:''' A float of the anti aliasing of the ring.
 
====bgProgress====
This style property determines the progress of the background of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"bgProgress",bgProgress)</syntaxhighlight>
*'''bgProgress:''' A float of the progress of the background of the ring.
 
====bgRadius====
This style property determines the radius of the background of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"bgRadius",bgRadius)</syntaxhighlight>
*'''bgRadius:''' A float of the radius of the background of the ring.
 
====bgRotation====
This style property determines the rotation of the background of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"bgRotation",bgRotation)</syntaxhighlight>
*'''bgRotation:''' A float of the rotation of the background of the ring.
 
====bgThickness====
This style property determines the thickness of the background of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"bgThickness",bgThickness)</syntaxhighlight>
*'''bgThickness:''' A float of the thickness of the background of the ring.
 
====elements====
This style property stores the custom elements of the progress bar.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"elements",elements)</syntaxhighlight>
*'''elements:''' A table of elements. Built-in elements are as follows:
**'''elements.circleShader:''' A shader of ring-round style.
 
====isClockwise====
This style property determines whether the progress direction is clockwise or anti-clockwise .
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"isClockwise",isClockwise)</syntaxhighlight>
*'''isClockwise:''' A bool of whether the progress direction is clockwise or anti-clockwise.
 
====radius====
This style property determines the radius of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"radius",radius)</syntaxhighlight>
*'''radius:''' A float of the radius of the ring.
 
====rotation====
This style property determines the rotation of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"rotation",rotation)</syntaxhighlight>
*'''rotation:''' A float of the rotation of the ring.
 
====thickness====
This style property determines the thickness of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"thickness",thickness)</syntaxhighlight>
*'''radius:''' A float of the thickness of the ring.
 
===>Style:ring-plain<===
====antiAliased====
This style property determines the anti aliasing of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"antiAliased",antiAliased)</syntaxhighlight>
*'''antiAliased:''' A float of the anti aliasing of the ring.
 
====bgProgress====
This style property determines the progress of the background of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"bgProgress",bgProgress)</syntaxhighlight>
*'''bgProgress:''' A float of the progress of the background of the ring.
 
====bgRadius====
This style property determines the radius of the background of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"bgRadius",bgRadius)</syntaxhighlight>
*'''bgRadius:''' A float of the radius of the background of the ring.
 
====bgRotation====
This style property determines the rotation of the background of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"bgRotation",bgRotation)</syntaxhighlight>
*'''bgRotation:''' A float of the rotation of the background of the ring.
 
====bgThickness====
This style property determines the thickness of the background of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"bgThickness",bgThickness)</syntaxhighlight>
*'''bgThickness:''' A float of the thickness of the background of the ring.
 
====elements====
This style property stores the custom elements of the progress bar.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"elements",elements)</syntaxhighlight>
*'''elements:''' A table of elements. Built-in elements are as follows:
**'''elements.circleShader:''' A shader of ring-round style.
 
====isClockwise====
This style property determines whether the progress direction is clockwise or anti-clockwise.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"isClockwise",isClockwise)</syntaxhighlight>
*'''isClockwise:''' A bool of whether the progress direction is clockwise or anti-clockwise.
 
====radius====
This style property determines the radius of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"radius",radius)</syntaxhighlight>
*'''radius:''' A float of the radius of the ring.
 
====rotation====
This style property determines the rotation of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"rotation",rotation)</syntaxhighlight>
*'''rotation:''' A float of the rotation of the ring.
 
====thickness====
This style property determines the thickness of the ring.
<syntaxhighlight lang="lua">dgsSetProperty(progressbar,"thickness",thickness)</syntaxhighlight>
*'''thickness:''' A float of the thickness of the ring.


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

Latest revision as of 05:10, 21 August 2025

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

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

Main Functions

Properties

bgColor

This property determines the background color of the progress bar.

dgsSetProperty(progressbar,"bgColor",bgColor)
  • bgColor : An integer of the color that can be converted by tocolor.

bgImage

This property determines the background image of the progress bar.

dgsSetProperty(progressbar,"bgImage",bgImage)
  • bgImage : A material element that serves as the background image of the progress bar (texture/shader/screen source/renderTarget).

indicatorColor

This property determines the indicator color of the progress bar.

dgsSetProperty(progressbar,"indicatorColor",indicatorColor)
  • indicatorColor : An integer of the color that can be converted by tocolor.

indicatorImage

This property determines the indicator image of the progress bar.

dgsSetProperty(progressbar,"indicatorImage",indicatorImage)
  • indicatorImage : A material element that serves as the indicator image of the progress bar (texture/shader/screen source/renderTarget).

indicatorMode

This property determines the indicator mode of the progress bar. See dgsProgressBarSetMode/dgsProgressBarGetMode.

dgsSetProperty(progressbar,"indicatorMode",indicatorMode)
  • indicatorMode : A bool indicates if indicator image uses clip mode or stretch mode. (false for stretch, true for clip)

padding

This property determines the padding of the progress bar.

dgsSetProperty(progressbar,"padding",{paddingX,paddingY})
  • paddingX : An integer of 2D x padding value.
  • paddingY : An integer of 2D y padding value.

progress

This property stores the progress value of progress bar.

dgsSetProperty(progressbar,"progress",progress)
  • progress : A float of progress value.

progressReverse

This property determines if the progress value is reversed.

dgsSetProperty(progressbar,"progressReverse",progressReverse)
  • progressReverse : A bool indicates if the progress value is from 0 to 100 or 100 to 0.

style

This property stores the style name of progress bar, to change the style use dgsProgressBarSetStyle.

dgsSetProperty(progressbar,"style",style)
  • style : A string of the style name.

Style Properties

>Style:normal-horizontal<

None

>Style:normal-vertical<

None

>Style:ring-round<

antiAliased

This style property determines the anti aliasing of the ring.

dgsSetProperty(progressbar,"antiAliased",antiAliased)
  • antiAliased: A float of the anti aliasing of the ring.

bgProgress

This style property determines the progress of the background of the ring.

dgsSetProperty(progressbar,"bgProgress",bgProgress)
  • bgProgress: A float of the progress of the background of the ring.

bgRadius

This style property determines the radius of the background of the ring.

dgsSetProperty(progressbar,"bgRadius",bgRadius)
  • bgRadius: A float of the radius of the background of the ring.

bgRotation

This style property determines the rotation of the background of the ring.

dgsSetProperty(progressbar,"bgRotation",bgRotation)
  • bgRotation: A float of the rotation of the background of the ring.

bgThickness

This style property determines the thickness of the background of the ring.

dgsSetProperty(progressbar,"bgThickness",bgThickness)
  • bgThickness: A float of the thickness of the background of the ring.

elements

This style property stores the custom elements of the progress bar.

dgsSetProperty(progressbar,"elements",elements)
  • elements: A table of elements. Built-in elements are as follows:
    • elements.circleShader: A shader of ring-round style.

isClockwise

This style property determines whether the progress direction is clockwise or anti-clockwise .

dgsSetProperty(progressbar,"isClockwise",isClockwise)
  • isClockwise: A bool of whether the progress direction is clockwise or anti-clockwise.

radius

This style property determines the radius of the ring.

dgsSetProperty(progressbar,"radius",radius)
  • radius: A float of the radius of the ring.

rotation

This style property determines the rotation of the ring.

dgsSetProperty(progressbar,"rotation",rotation)
  • rotation: A float of the rotation of the ring.

thickness

This style property determines the thickness of the ring.

dgsSetProperty(progressbar,"thickness",thickness)
  • radius: A float of the thickness of the ring.

>Style:ring-plain<

antiAliased

This style property determines the anti aliasing of the ring.

dgsSetProperty(progressbar,"antiAliased",antiAliased)
  • antiAliased: A float of the anti aliasing of the ring.

bgProgress

This style property determines the progress of the background of the ring.

dgsSetProperty(progressbar,"bgProgress",bgProgress)
  • bgProgress: A float of the progress of the background of the ring.

bgRadius

This style property determines the radius of the background of the ring.

dgsSetProperty(progressbar,"bgRadius",bgRadius)
  • bgRadius: A float of the radius of the background of the ring.

bgRotation

This style property determines the rotation of the background of the ring.

dgsSetProperty(progressbar,"bgRotation",bgRotation)
  • bgRotation: A float of the rotation of the background of the ring.

bgThickness

This style property determines the thickness of the background of the ring.

dgsSetProperty(progressbar,"bgThickness",bgThickness)
  • bgThickness: A float of the thickness of the background of the ring.

elements

This style property stores the custom elements of the progress bar.

dgsSetProperty(progressbar,"elements",elements)
  • elements: A table of elements. Built-in elements are as follows:
    • elements.circleShader: A shader of ring-round style.

isClockwise

This style property determines whether the progress direction is clockwise or anti-clockwise.

dgsSetProperty(progressbar,"isClockwise",isClockwise)
  • isClockwise: A bool of whether the progress direction is clockwise or anti-clockwise.

radius

This style property determines the radius of the ring.

dgsSetProperty(progressbar,"radius",radius)
  • radius: A float of the radius of the ring.

rotation

This style property determines the rotation of the ring.

dgsSetProperty(progressbar,"rotation",rotation)
  • rotation: A float of the rotation of the ring.

thickness

This style property determines the thickness of the ring.

dgsSetProperty(progressbar,"thickness",thickness)
  • thickness: A float of the thickness of the ring.

See Also

General Properties

Unique Properties For DGS Core Elements

Extra Properties For DGS Plugins