Scripting/Client/GUI/window.AddChild

Makes an element a child of a window (positions become window-relative).

Syntax

window.AddChild(element)

Arguments

Returns

bool

Example

function onScriptLoad()
{
	// window is a window handle (see Element methods)
	local result = window.AddChild( 0 );
	MessagePlayer( "window.AddChild returned: " + result, player );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Element methods

Categories: Client functions | Element methods