Squirrel/Client/Functions/GUIWindow/AddChild

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
m
 
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.
+
 
 +
''Note:'' Currently adding a GUISprite to a window causes a crash. You need to use a separate layer for the sprite to fix this.
  
 
== Syntax ==
 
== Syntax ==

Latest 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 use a separate layer for the sprite to fix this.

[edit] Syntax

  1. bool GUIWindow.AddChild( GUIElement child )

[edit] Arguments

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

[edit] 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.  

[edit] Notes

Used functions and other notes here.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox