DgsProgressBarSetStyleProperty: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Blanked the page)
Tag: Blanking
 
Line 1: Line 1:
{{Client function}}


This function sets the style property of a progress bar.
==Syntax==
<syntaxhighlight lang="lua">
bool dgsProgressBarSetStyleProperty( element progressbar, string propertyName, mixed value )
</syntaxhighlight>
===Required Arguments===
*'''progressbar:''' A progress bar you want to set style property to.
*'''propertyName:''' A string of the name of a property you want to set
*'''value:''' A mixed type.
==Example==
<section name="Client" class="client" show="true">
<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