Squirrel/Client/Functions/GUIWindow/AddChild
From Liberty Unleashed Wiki
(Difference between revisions)
(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
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
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.
-- todo
Notes
Used functions and other notes here.