LuaContainerProto

This type represents the prototype for control containers, encapsulating all of its fields and methods.

circle-info

This is just a prototype and must be constructed into a LuaContainerControl. You may use self inside any overridden methods to access the underlying LuaContainerControl.

__call

Constructor

Constructs the control container prototype.

Arguments

None

Returns

Type

Description

LuaContainerProto

The prototype

Example

local proto = gui.LuaContainerProto()

onControlAdded

MethodOverridable

Called whenever a control is added to this container.

Arguments

Name

Type

Description

control

The new control

Returns

Nothing.

Example


onControlRemoved

MethodOverridable

Called whenever a control is removed from this container.

Arguments

Name

Type

Description

control

The old control

Returns

Nothing.

Example


onRenderPostChildren

MethodOverridable

Called after all children have been rendered.

Arguments

Name

Type

Description

contents

The main drawing layer

scrollbar

The secondary drawing layer

mins

The top left corner of the container

maxs

The bottom right corner of the container

Returns

Nothing.

Example

Last updated