DgsBringToFront

From Multi Theft Auto: Wiki
Revision as of 03:45, 8 June 2018 by Scorpyo (talk | contribs) (Created page with "This function sets the font of a dgs element to be used when drawing text. ==Syntax== <syntaxhighlight lang="lua"> bool guiBringToFront ( element dgsElement ) </syntaxhighli...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function sets the font of a dgs element to be used when drawing text.

Syntax

bool guiBringToFront ( element dgsElement )

Required Arguments

  • dgsElement: the DGS element that you want to move to the front.

Returns

Returns true if the function was successful, false otherwise.

Example

This example creates a dgs window and brings it on top.

local window = dgsCreateWindow ( 0.4, 0.4, 0.3, 0.3, "My dummy window", true )
dgsBringToFront ( window )