DgsProgressBarSetStyleProperty: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client function}} This function set property for a progress bar. ==Syntax== <syntaxhighlight lang="lua"> bool dgsProgressBarGetStyle( element progressbar, string property...")
 
(Blanked the page)
Tag: Blanking
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Client function}}


This function set property for a progress bar.
==Syntax==
<syntaxhighlight lang="lua">
bool dgsProgressBarGetStyle( element progressbar, string propertyName, float value)
</syntaxhighlight>
===Required Arguments===
*'''progressbar:''' A progress bar you want to get style from
*'''propertyName:''' Name of a property you want to get
*'''value:''' Float for the property
<section name="Client" class="client" show="true">
'''Example 1:''
<syntaxhighlight lang="lua">
DGS = exports.dgs
local pbRound = DGS:dgsCreateProgressBar(500,200,600,600,false)
DGS:dgsProgressBarSetProgress(pbRound, 50)
DGS:dgsProgressBarSetStyle(pbRound,"ring-round")
DGS:dgsProgressBarSetStyleProperty(pbRound,"rotation",90)
</syntaxhighlight>
</section>
==See Also==
{{DGSFUNCTIONS}}

Latest revision as of 17:24, 6 June 2021