diff options
| author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-25 13:22:20 -0600 |
|---|---|---|
| committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-25 13:22:20 -0600 |
| commit | ec01ad65fd615740177e403693cc3c8984f0d62a (patch) | |
| tree | 7623789d95fe3ba60a082b9658bdd9cbc617ec39 /doc/classes | |
| parent | 7104f20634c7a1ea4b751575ac6eecec16949a72 (diff) | |
| parent | 13b565c64d25a170c65f00c6716cb41dad9408c3 (diff) | |
| download | redot-engine-ec01ad65fd615740177e403693cc3c8984f0d62a.tar.gz | |
Merge pull request #99620 from tetrapod00/doc-control-children
Docs: Update Control class to properly reflect behavior of Themes on Control Children
Diffstat (limited to 'doc/classes')
| -rw-r--r-- | doc/classes/Control.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index 342e20759e..d22be4a52d 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -12,7 +12,7 @@ Call [method accept_event] so no other node receives the event. Once you accept an input, it becomes handled so [method Node._unhandled_input] will not process it. Only one [Control] node can be in focus. Only the node in focus will receive events. To get the focus, call [method grab_focus]. [Control] nodes lose focus when another node grabs it, or if you hide the node in focus. Sets [member mouse_filter] to [constant MOUSE_FILTER_IGNORE] to tell a [Control] node to ignore mouse or touch events. You'll need it if you place an icon on top of a button. - [Theme] resources change the Control's appearance. If you change the [Theme] on a [Control] node, it affects all of its children. To override some of the theme's parameters, call one of the [code]add_theme_*_override[/code] methods, like [method add_theme_font_override]. You can override the theme with the Inspector. + [Theme] resources change the control's appearance. The [member theme] of a [Control] node affects all of its direct and indirect children (as long as a chain of controls is uninterrupted). To override some of the theme items, call one of the [code]add_theme_*_override[/code] methods, like [method add_theme_font_override]. You can also override theme items in the Inspector. [b]Note:[/b] Theme items are [i]not[/i] [Object] properties. This means you can't access their values using [method Object.get] and [method Object.set]. Instead, use the [code]get_theme_*[/code] and [code]add_theme_*_override[/code] methods provided by this class. </description> <tutorials> |
