LuaGui

class LuaGui
valid :: boolean [R] Is this object valid?
player :: LuaPlayer [R] The player who owns this gui.
top :: LuaGuiElement [R] The top part of the GUI.
left :: LuaGuiElement [R] The left part of the GUI.
center :: LuaGuiElement [R] The center part of the GUI.

The root of the GUI. This type houses the root elements, top, left and center, to which other elements can be added to be displayed on screen.

Note: Every player can have a different GUI state.
valid :: boolean [Read-only]

Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.

player :: LuaPlayer [Read-only]

The player who owns this gui.

top :: LuaGuiElement [Read-only]

The top part of the GUI. It is a flow element.

left :: LuaGuiElement [Read-only]

The left part of the GUI. It is a flow element.

center :: LuaGuiElement [Read-only]

The center part of the GUI. It is a flow element.