DgsSetTop: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Redirected page to DgsSetLayer)
Tag: New redirect
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
#REDIRECT [[dgsSetLayer]]
{{Client function}}
This function allow us to set a dgs element always on top
 
==Syntax==
<syntaxhighlight lang="lua">
bool dgsSetTop ( element dgsElement )
</syntaxhighlight>
 
[[Image:DGSRenderLayer.png|390px|thumb|DGSRenderLayer]]
===Required Arguments===
*'''dgsElement:''' The DGS element to set.
 
===Returns===
Returns true if succeed, ''false'' otherwise.
 
==Example==
<syntaxhighlight lang="lua">
DGS = exports.dgs
 
window1 = DGS:dgsCreateWindow(400,100,200,200,"DGS Window 1",false) --Create window1
window2 = DGS:dgsCreateWindow(400,100,200,200,"DGS Window 2",false) --Create window2
DGS:dgsSetTop(window1) --Now it is always on top
</syntaxhighlight>
 
==See Also==
{{DGSFUNCTIONS}}

Latest revision as of 13:14, 21 June 2021

Redirect to: