DgsSetTop: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function}} This function allow us to set a dgs element always on top ==Syntax== <syntaxhighlight lang="lua"> bool dgsSetTop ( element dgsElement ) </synt...")
 
(Redirected page to DgsSetLayer)
Tag: New redirect
 
(10 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>
 
===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: