Skip to content

atl/sm/jsongui

import "atl/sm/jsongui"

GUIs built from a table "DOM" (sm.jsonGui; see sm.JsonGui).

func Create(settings atl.Value) sm.JsonGui

Creates a JsonGui. settings: { isHud, isInteractive, needsCursor, hidesHotbar, backgroundAlpha, ... } (see sm.GuiOptions).

type ViewSize struct {
Width, Height int
}

A size in 720p units.

func ReadViewSize() ViewSize

[client] The window size in 720p units.