DgsGetLayer

From Multi Theft Auto: Wiki
Revision as of 15:31, 19 April 2021 by Lettify (talk | contribs) (DGS (OOP Syntax)/(Template Organization) Mission)
Jump to navigation Jump to search

This function allow us to set the render layer of a dgs element.

Syntax

string dgsGetLayer( element dgsElement )

DGS OOP Syntax Help! I don't understand this!

DGSRenderLayer

Required Arguments

  • dgsElement: The DGS element to get from.

Returns

Returns a string if succeed, false otherwise.

The string value can be as follows:

  • top
  • center
  • bottom

Example

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
local layer = DGS:dgsGetLayer (window1)
outputChatBox(layer) -- The default layer is center

See Also

General Functions

General Events