Panel/IsOurChild

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Warning template)
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=IsOurChild
 
|Parent=Panel
 
 
|Description=Returns whether the panel contains the given panel, recursively.
 
|Description=Returns whether the panel contains the given panel, recursively.
  
'''Warning: ''' This function is horribly inefficient and does a depth-first search of the panel's children. Use {{ClassFunction|Panel|HasParent}} instead.
+
{{Warning|This function is horribly inefficient and does a depth-first search of the panel's children. Use {{ClassFunction|Panel|HasParent}} instead}}
 
|Realm=Client
 
|Realm=Client
 
|IsClass=Yes
 
|IsClass=Yes
 +
|Name=IsOurChild
 +
|Parent=Panel
 
}}
 
}}
 
{{Arg
 
{{Arg

Revision as of 09:41, 23 August 2016

 Panel:IsOurChild( )

Description

Returns whether the panel contains the given panel, recursively.

WARNING

This function is horribly inefficient and does a depth-first search of the panel's children. Use Panel:HasParent instead

Arguments

Panel childPanel

Returns

boolean

True if the panel contains childPanel.
Personal tools
Navigation