Squirrel/Client/Functions/GUIWindow/AddChild

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|GUIWindow.AddChild}} This member function attaches another GUI element to the window as a child. Allowed element types are all the other GUI elements. == Syntax…')
 
Line 1: Line 1:
 
{{Squirrel/Title|GUIWindow.AddChild}}
 
{{Squirrel/Title|GUIWindow.AddChild}}
 
This member function attaches another GUI element to the window as a child. Allowed element types are all the other GUI elements.
 
This member function attaches another GUI element to the window as a child. Allowed element types are all the other GUI elements.
 +
''Note:'' Currently adding a GUISprite to a window causes a crash. You need to add a separate layer for the sprite to fix this.
  
 
== Syntax ==
 
== Syntax ==

Revision as of 18:48, 5 December 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This member function attaches another GUI element to the window as a child. Allowed element types are all the other GUI elements. Note: Currently adding a GUISprite to a window causes a crash. You need to add a separate layer for the sprite to fix this.

Syntax

  1. bool GUIWindow.AddChild( GUIElement child )

Arguments

  • child - The GUI element you wish to add to this window

Example

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o

Explanation here.

  1.  
  2. -- todo
  3.  

Notes

Used functions and other notes here.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox