DgsProgressBarGetStyleProperty: 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 returna property name from a progress bar.
==Syntax==
<syntaxhighlight lang="lua">
mixed dgsProgressBarGetStyleProperty( element progressbar, string propertyName)
</syntaxhighlight>
===Required Arguments===
*'''progressbar:''' A progress bar you want to get style from
*'''propertyName:''' Name of a property you want to get
===Returns===
Returns a the value of the style property of the progress bar if successfully, ''false'' otherwise.
<section name="Client" class="client" show="true">
===Example===
<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)
outputChatBox(DGS:dgsProgressBarGetStyleProperty(pbRound, "rotation")) -- return `90`
</syntaxhighlight>
</section>
==See Also==
{{DGSFUNCTIONS}}

Latest revision as of 17:24, 6 June 2021