From Multi Theft Auto: Wiki
Jump to navigation
Jump to search
|
|
| (6 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|400px|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