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