Improve CanvasItem.self_modulate docs
This commit is contained in:
parent
c58080299a
commit
4fb9aa2294
2 changed files with 7 additions and 6 deletions
|
@ -569,13 +569,14 @@
|
|||
The rendering layers in which this [CanvasItem] responds to [Light2D] nodes.
|
||||
</member>
|
||||
<member name="material" type="Material" setter="set_material" getter="get_material">
|
||||
The material applied to textures on this [CanvasItem].
|
||||
The material applied to this [CanvasItem].
|
||||
</member>
|
||||
<member name="modulate" type="Color" setter="set_modulate" getter="get_modulate" default="Color(1, 1, 1, 1)">
|
||||
The color applied to textures on this [CanvasItem].
|
||||
The color applied to this [CanvasItem]. This property does affect child [CanvasItem]s, unlike [member self_modulate] which only affects the node itself.
|
||||
</member>
|
||||
<member name="self_modulate" type="Color" setter="set_self_modulate" getter="get_self_modulate" default="Color(1, 1, 1, 1)">
|
||||
The color applied to textures on this [CanvasItem]. This is not inherited by children [CanvasItem]s.
|
||||
The color applied to this [CanvasItem]. This property does [b]not[/b] affect child [CanvasItem]s, unlike [member modulate] which affects both the node itself and its children.
|
||||
[b]Note:[/b] Internal children (e.g. sliders in [ColorPicker] or tab bar in [TabContainer]) are also not affected by this property (see [code]include_internal[/code] parameter of [method Node.get_child] and other similar methods).
|
||||
</member>
|
||||
<member name="show_behind_parent" type="bool" setter="set_draw_behind_parent" getter="is_draw_behind_parent_enabled" default="false">
|
||||
If [code]true[/code], the object draws behind its parent.
|
||||
|
|
|
@ -206,7 +206,7 @@
|
|||
<param index="1" name="recursive" type="bool" default="true" />
|
||||
<param index="2" name="owned" type="bool" default="true" />
|
||||
<description>
|
||||
Finds the first descendant of this node whose name matches [param pattern] as in [method String.match].
|
||||
Finds the first descendant of this node whose name matches [param pattern] as in [method String.match]. Internal children are also searched over (see [code]internal[/code] parameter in [method add_child]).
|
||||
[param pattern] does not match against the full path, just against individual node names. It is case-sensitive, with [code]"*"[/code] matching zero or more characters and [code]"?"[/code] matching any single character except [code]"."[/code]).
|
||||
If [param recursive] is [code]true[/code], all child nodes are included, even if deeply nested. Nodes are checked in tree order, so this node's first direct child is checked first, then its own direct children, etc., before moving to the second direct child, and so on. If [param recursive] is [code]false[/code], only this node's direct children are matched.
|
||||
If [param owned] is [code]true[/code], this method only finds nodes who have an assigned [member Node.owner]. This is especially important for scenes instantiated through a script, because those scenes don't have an owner.
|
||||
|
@ -222,7 +222,7 @@
|
|||
<param index="2" name="recursive" type="bool" default="true" />
|
||||
<param index="3" name="owned" type="bool" default="true" />
|
||||
<description>
|
||||
Finds descendants of this node whose name matches [param pattern] as in [method String.match], and/or type matches [param type] as in [method Object.is_class].
|
||||
Finds descendants of this node whose name matches [param pattern] as in [method String.match], and/or type matches [param type] as in [method Object.is_class]. Internal children are also searched over (see [code]internal[/code] parameter in [method add_child]).
|
||||
[param pattern] does not match against the full path, just against individual node names. It is case-sensitive, with [code]"*"[/code] matching zero or more characters and [code]"?"[/code] matching any single character except [code]"."[/code]).
|
||||
[param type] will check equality or inheritance, and is case-sensitive. [code]"Object"[/code] will match a node whose type is [code]"Node"[/code] but not the other way around.
|
||||
If [param recursive] is [code]true[/code], all child nodes are included, even if deeply nested. Nodes are checked in tree order, so this node's first direct child is checked first, then its own direct children, etc., before moving to the second direct child, and so on. If [param recursive] is [code]false[/code], only this node's direct children are matched.
|
||||
|
|
Loading…
Reference in a new issue