sm.jsonGui
Associated object type: JsonGui
Functions:
sm.jsonGui.createGui(settings?)
Creates a new gui.
Parameters:
| Type | Name | Description |
|---|---|---|
| table | settings? | Table with bool settings for: isHud, isInteractive, needsCursor, hidesHotbar, isOverlapped, backgroundAlpha, handleKeySetup, name, layer |
Returns:
| Type | Description |
|---|---|
| JsonGui | gui The gui |
sm.jsonGui.getViewSize()
Client only
Returns the size of the window in 720 coords.
Returns:
| Type | Description |
|---|---|
| integer,integer | The view size as width and height. |