sm.gui.createGuiFromLayout

Create a GUI from a layout file.

Kind: Function

Environments: Game

Game

sm.gui.createGuiFromLayout( layout, destroyOnClose, settings )

Open the full Game reference

Availability: Client only

Parameters:

Name Type Description
layout string Path to the layout file
destroyOnClose (optional) boolean If true the gui is destroyed when closed, otherwise the gui can be reused. (Defaults to false)
settings (optional) table Table with bool settings for: isHud, isInteractive, needsCursor

Returns:

Type Description
GuiInterface The gui interface to the created gui.