Dgs-dxprogressbar: Difference between revisions
No edit summary |
|||
Line 52: | Line 52: | ||
====elements==== | ====elements==== | ||
This style property stores the custom elements of the progress bar. | This style property stores the custom elements of the progress bar. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">dgsSetProperty(progressbar,"elements",elements)</syntaxhighlight> | ||
*'''elements:''' A table of elements. Built-in elements are as follows: | *'''elements:''' A table of elements. Built-in elements are as follows: | ||
**'''elements.circleShader:''' A shader of ring-round style. | **'''elements.circleShader:''' A shader of ring-round style. | ||
Line 58: | Line 58: | ||
====isReverse==== | ====isReverse==== | ||
This style property determines whether the progress direction is reversed or not. | This style property determines whether the progress direction is reversed or not. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">dgsSetProperty(progressbar,"isReverse",isReverse)</syntaxhighlight> | ||
*'''isReverse:''' A bool of whether the progress direction is reversed or not. | *'''isReverse:''' A bool of whether the progress direction is reversed or not. | ||
====rotation==== | ====rotation==== | ||
This style property determines the rotation of the ring. | This style property determines the rotation of the ring. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">dgsSetProperty(progressbar,"rotation",rotation)</syntaxhighlight> | ||
*'''rotation:''' A float of the rotation of the ring. | *'''rotation:''' A float of the rotation of the ring. | ||
====antiAliased==== | ====antiAliased==== | ||
This style property determines the anti aliasing of the ring. | This style property determines the anti aliasing of the ring. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">dgsSetProperty(progressbar,"antiAliased",antiAliased)</syntaxhighlight> | ||
*'''antiAliased:''' A float of the anti aliasing of the ring. | *'''antiAliased:''' A float of the anti aliasing of the ring. | ||
====radius==== | ====radius==== | ||
This style property determines the radius of the ring. | This style property determines the radius of the ring. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">dgsSetProperty(progressbar,"radius",radius)</syntaxhighlight> | ||
*'''radius:''' A float of the radius of the ring. | *'''radius:''' A float of the radius of the ring. | ||
====thickness==== | ====thickness==== | ||
This style property determines the thickness of the ring. | This style property determines the thickness of the ring. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">dgsSetProperty(progressbar,"thickness",thickness)</syntaxhighlight> | ||
*'''radius:''' A float of the thickness of the ring. | *'''radius:''' A float of the thickness of the ring. | ||
Line 85: | Line 85: | ||
====elements==== | ====elements==== | ||
This style property stores the custom elements of the progress bar. | This style property stores the custom elements of the progress bar. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">dgsSetProperty(progressbar,"elements",elements)</syntaxhighlight> | ||
*'''elements:''' A table of elements. Built-in elements are as follows: | *'''elements:''' A table of elements. Built-in elements are as follows: | ||
**'''elements.circleShader:''' A shader of ring-round style. | **'''elements.circleShader:''' A shader of ring-round style. | ||
Line 91: | Line 91: | ||
====isReverse==== | ====isReverse==== | ||
This style property determines whether the progress direction is reversed or not. | This style property determines whether the progress direction is reversed or not. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">dgsSetProperty(progressbar,"isReverse",isReverse)</syntaxhighlight> | ||
*'''isReverse:''' A bool of whether the progress direction is reversed or not. | *'''isReverse:''' A bool of whether the progress direction is reversed or not. | ||
====rotation==== | ====rotation==== | ||
This style property determines the rotation of the ring. | This style property determines the rotation of the ring. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">dgsSetProperty(progressbar,"rotation",rotation)</syntaxhighlight> | ||
*'''rotation:''' A float of the rotation of the ring. | *'''rotation:''' A float of the rotation of the ring. | ||
====antiAliased==== | ====antiAliased==== | ||
This style property determines the anti aliasing of the ring. | This style property determines the anti aliasing of the ring. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">dgsSetProperty(progressbar,"antiAliased",antiAliased)</syntaxhighlight> | ||
*'''antiAliased:''' A float of the anti aliasing of the ring. | *'''antiAliased:''' A float of the anti aliasing of the ring. | ||
====radius==== | ====radius==== | ||
This style property determines the radius of the ring. | This style property determines the radius of the ring. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">dgsSetProperty(progressbar,"radius",radius)</syntaxhighlight> | ||
*'''radius:''' A float of the radius of the ring. | *'''radius:''' A float of the radius of the ring. | ||
====thickness==== | ====thickness==== | ||
This style property determines the thickness of the ring. | This style property determines the thickness of the ring. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua">dgsSetProperty(progressbar,"thickness",thickness)</syntaxhighlight> | ||
*'''radius:''' A float of the thickness of the ring. | *'''radius:''' A float of the thickness of the ring. | ||
==See Also== | ==See Also== | ||
{{DGSPROPERTIES}} | {{DGSPROPERTIES}} |
Revision as of 17:30, 6 June 2021
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).
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.
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<
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.
isReverse
This style property determines whether the progress direction is reversed or not.
dgsSetProperty(progressbar,"isReverse",isReverse)
- isReverse: A bool of whether the progress direction is reversed or not.
rotation
This style property determines the rotation of the ring.
dgsSetProperty(progressbar,"rotation",rotation)
- rotation: A float of the rotation of the ring.
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.
radius
This style property determines the radius of the ring.
dgsSetProperty(progressbar,"radius",radius)
- radius: A float of the radius 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<
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.
isReverse
This style property determines whether the progress direction is reversed or not.
dgsSetProperty(progressbar,"isReverse",isReverse)
- isReverse: A bool of whether the progress direction is reversed or not.
rotation
This style property determines the rotation of the ring.
dgsSetProperty(progressbar,"rotation",rotation)
- rotation: A float of the rotation of the ring.
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.
radius
This style property determines the radius of the ring.
dgsSetProperty(progressbar,"radius",radius)
- radius: A float of the radius 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.
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