DgsBlurBoxSetLevel: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} This function sets blur box level. ==Syntax== <syntaxhighlight lang="lua"> bool dgsBlurBoxSetLevel( element blurBox, int level ) </syntaxhigh...") |
No edit summary |
||
Line 10: | Line 10: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''blurBox:''' A dgs blur box element. | *'''blurBox:''' A dgs blur box element. | ||
*'''level:''' A int of the blur box level. | *'''level:''' A int of the blur box level. |
Revision as of 12:54, 6 May 2020
This function sets blur box level.
Syntax
bool dgsBlurBoxSetLevel( element blurBox, int level )
Required Arguments
- blurBox: A dgs blur box element.
- level: A int of the blur box level.
Returns
Returns true if successful, false otherwise.
Example
This example change blur box level every 1 second.
DGS = exports.dgs --get exported functions from dgs local blurbox = DGS:dgsCreateBlurBox(600,500) DGS:dgsBlurBoxSetLevel(blurbox,i) local window = DGS:dgsCreateImage(200,200,600,500,blurbox,false) int = 0 setTimer(function() int = int + 1 outputChatBox("Blur box level is now "..int) end, 1000, 0) addEventHandler("onClientRender", root, function() DGS:dgsBlurBoxSetLevel(blurbox,int) if int == 15 then int = 1 end end)