|
@@ -457,7 +457,7 @@
|
|
<method name="get_theme_color" qualifiers="const">
|
|
<method name="get_theme_color" qualifiers="const">
|
|
<return type="Color" />
|
|
<return type="Color" />
|
|
<param index="0" name="name" type="StringName" />
|
|
<param index="0" name="name" type="StringName" />
|
|
- <param index="1" name="theme_type" type="StringName" default="""" />
|
|
|
|
|
|
+ <param index="1" name="theme_type" type="StringName" default="&""" />
|
|
<description>
|
|
<description>
|
|
Returns a [Color] from the first matching [Theme] in the tree if that [Theme] has a color item with the specified [param name] and [param theme_type]. If [param theme_type] is omitted the class name of the current control is used as the type, or [member theme_type_variation] if it is defined. If the type is a class name its parent classes are also checked, in order of inheritance. If the type is a variation its base types are checked, in order of dependency, then the control's class name and its parent classes are checked.
|
|
Returns a [Color] from the first matching [Theme] in the tree if that [Theme] has a color item with the specified [param name] and [param theme_type]. If [param theme_type] is omitted the class name of the current control is used as the type, or [member theme_type_variation] if it is defined. If the type is a class name its parent classes are also checked, in order of inheritance. If the type is a variation its base types are checked, in order of dependency, then the control's class name and its parent classes are checked.
|
|
For the current control its local overrides are considered first (see [method add_theme_color_override]), then its assigned [member theme]. After the current control, each parent control and its assigned [member theme] are considered; controls without a [member theme] assigned are skipped. If no matching [Theme] is found in the tree, the custom project [Theme] (see [member ProjectSettings.gui/theme/custom]) and the default [Theme] are used (see [ThemeDB]).
|
|
For the current control its local overrides are considered first (see [method add_theme_color_override]), then its assigned [member theme]. After the current control, each parent control and its assigned [member theme] are considered; controls without a [member theme] assigned are skipped. If no matching [Theme] is found in the tree, the custom project [Theme] (see [member ProjectSettings.gui/theme/custom]) and the default [Theme] are used (see [ThemeDB]).
|
|
@@ -484,7 +484,7 @@
|
|
<method name="get_theme_constant" qualifiers="const">
|
|
<method name="get_theme_constant" qualifiers="const">
|
|
<return type="int" />
|
|
<return type="int" />
|
|
<param index="0" name="name" type="StringName" />
|
|
<param index="0" name="name" type="StringName" />
|
|
- <param index="1" name="theme_type" type="StringName" default="""" />
|
|
|
|
|
|
+ <param index="1" name="theme_type" type="StringName" default="&""" />
|
|
<description>
|
|
<description>
|
|
Returns a constant from the first matching [Theme] in the tree if that [Theme] has a constant item with the specified [param name] and [param theme_type].
|
|
Returns a constant from the first matching [Theme] in the tree if that [Theme] has a constant item with the specified [param name] and [param theme_type].
|
|
See [method get_theme_color] for details.
|
|
See [method get_theme_color] for details.
|
|
@@ -514,7 +514,7 @@
|
|
<method name="get_theme_font" qualifiers="const">
|
|
<method name="get_theme_font" qualifiers="const">
|
|
<return type="Font" />
|
|
<return type="Font" />
|
|
<param index="0" name="name" type="StringName" />
|
|
<param index="0" name="name" type="StringName" />
|
|
- <param index="1" name="theme_type" type="StringName" default="""" />
|
|
|
|
|
|
+ <param index="1" name="theme_type" type="StringName" default="&""" />
|
|
<description>
|
|
<description>
|
|
Returns a [Font] from the first matching [Theme] in the tree if that [Theme] has a font item with the specified [param name] and [param theme_type].
|
|
Returns a [Font] from the first matching [Theme] in the tree if that [Theme] has a font item with the specified [param name] and [param theme_type].
|
|
See [method get_theme_color] for details.
|
|
See [method get_theme_color] for details.
|
|
@@ -523,7 +523,7 @@
|
|
<method name="get_theme_font_size" qualifiers="const">
|
|
<method name="get_theme_font_size" qualifiers="const">
|
|
<return type="int" />
|
|
<return type="int" />
|
|
<param index="0" name="name" type="StringName" />
|
|
<param index="0" name="name" type="StringName" />
|
|
- <param index="1" name="theme_type" type="StringName" default="""" />
|
|
|
|
|
|
+ <param index="1" name="theme_type" type="StringName" default="&""" />
|
|
<description>
|
|
<description>
|
|
Returns a font size from the first matching [Theme] in the tree if that [Theme] has a font size item with the specified [param name] and [param theme_type].
|
|
Returns a font size from the first matching [Theme] in the tree if that [Theme] has a font size item with the specified [param name] and [param theme_type].
|
|
See [method get_theme_color] for details.
|
|
See [method get_theme_color] for details.
|
|
@@ -532,7 +532,7 @@
|
|
<method name="get_theme_icon" qualifiers="const">
|
|
<method name="get_theme_icon" qualifiers="const">
|
|
<return type="Texture2D" />
|
|
<return type="Texture2D" />
|
|
<param index="0" name="name" type="StringName" />
|
|
<param index="0" name="name" type="StringName" />
|
|
- <param index="1" name="theme_type" type="StringName" default="""" />
|
|
|
|
|
|
+ <param index="1" name="theme_type" type="StringName" default="&""" />
|
|
<description>
|
|
<description>
|
|
Returns an icon from the first matching [Theme] in the tree if that [Theme] has an icon item with the specified [param name] and [param theme_type].
|
|
Returns an icon from the first matching [Theme] in the tree if that [Theme] has an icon item with the specified [param name] and [param theme_type].
|
|
See [method get_theme_color] for details.
|
|
See [method get_theme_color] for details.
|
|
@@ -541,7 +541,7 @@
|
|
<method name="get_theme_stylebox" qualifiers="const">
|
|
<method name="get_theme_stylebox" qualifiers="const">
|
|
<return type="StyleBox" />
|
|
<return type="StyleBox" />
|
|
<param index="0" name="name" type="StringName" />
|
|
<param index="0" name="name" type="StringName" />
|
|
- <param index="1" name="theme_type" type="StringName" default="""" />
|
|
|
|
|
|
+ <param index="1" name="theme_type" type="StringName" default="&""" />
|
|
<description>
|
|
<description>
|
|
Returns a [StyleBox] from the first matching [Theme] in the tree if that [Theme] has a stylebox item with the specified [param name] and [param theme_type].
|
|
Returns a [StyleBox] from the first matching [Theme] in the tree if that [Theme] has a stylebox item with the specified [param name] and [param theme_type].
|
|
See [method get_theme_color] for details.
|
|
See [method get_theme_color] for details.
|
|
@@ -590,7 +590,7 @@
|
|
<method name="has_theme_color" qualifiers="const">
|
|
<method name="has_theme_color" qualifiers="const">
|
|
<return type="bool" />
|
|
<return type="bool" />
|
|
<param index="0" name="name" type="StringName" />
|
|
<param index="0" name="name" type="StringName" />
|
|
- <param index="1" name="theme_type" type="StringName" default="""" />
|
|
|
|
|
|
+ <param index="1" name="theme_type" type="StringName" default="&""" />
|
|
<description>
|
|
<description>
|
|
Returns [code]true[/code] if there is a matching [Theme] in the tree that has a color item with the specified [param name] and [param theme_type].
|
|
Returns [code]true[/code] if there is a matching [Theme] in the tree that has a color item with the specified [param name] and [param theme_type].
|
|
See [method get_theme_color] for details.
|
|
See [method get_theme_color] for details.
|
|
@@ -607,7 +607,7 @@
|
|
<method name="has_theme_constant" qualifiers="const">
|
|
<method name="has_theme_constant" qualifiers="const">
|
|
<return type="bool" />
|
|
<return type="bool" />
|
|
<param index="0" name="name" type="StringName" />
|
|
<param index="0" name="name" type="StringName" />
|
|
- <param index="1" name="theme_type" type="StringName" default="""" />
|
|
|
|
|
|
+ <param index="1" name="theme_type" type="StringName" default="&""" />
|
|
<description>
|
|
<description>
|
|
Returns [code]true[/code] if there is a matching [Theme] in the tree that has a constant item with the specified [param name] and [param theme_type].
|
|
Returns [code]true[/code] if there is a matching [Theme] in the tree that has a constant item with the specified [param name] and [param theme_type].
|
|
See [method get_theme_color] for details.
|
|
See [method get_theme_color] for details.
|
|
@@ -624,7 +624,7 @@
|
|
<method name="has_theme_font" qualifiers="const">
|
|
<method name="has_theme_font" qualifiers="const">
|
|
<return type="bool" />
|
|
<return type="bool" />
|
|
<param index="0" name="name" type="StringName" />
|
|
<param index="0" name="name" type="StringName" />
|
|
- <param index="1" name="theme_type" type="StringName" default="""" />
|
|
|
|
|
|
+ <param index="1" name="theme_type" type="StringName" default="&""" />
|
|
<description>
|
|
<description>
|
|
Returns [code]true[/code] if there is a matching [Theme] in the tree that has a font item with the specified [param name] and [param theme_type].
|
|
Returns [code]true[/code] if there is a matching [Theme] in the tree that has a font item with the specified [param name] and [param theme_type].
|
|
See [method get_theme_color] for details.
|
|
See [method get_theme_color] for details.
|
|
@@ -641,7 +641,7 @@
|
|
<method name="has_theme_font_size" qualifiers="const">
|
|
<method name="has_theme_font_size" qualifiers="const">
|
|
<return type="bool" />
|
|
<return type="bool" />
|
|
<param index="0" name="name" type="StringName" />
|
|
<param index="0" name="name" type="StringName" />
|
|
- <param index="1" name="theme_type" type="StringName" default="""" />
|
|
|
|
|
|
+ <param index="1" name="theme_type" type="StringName" default="&""" />
|
|
<description>
|
|
<description>
|
|
Returns [code]true[/code] if there is a matching [Theme] in the tree that has a font size item with the specified [param name] and [param theme_type].
|
|
Returns [code]true[/code] if there is a matching [Theme] in the tree that has a font size item with the specified [param name] and [param theme_type].
|
|
See [method get_theme_color] for details.
|
|
See [method get_theme_color] for details.
|
|
@@ -658,7 +658,7 @@
|
|
<method name="has_theme_icon" qualifiers="const">
|
|
<method name="has_theme_icon" qualifiers="const">
|
|
<return type="bool" />
|
|
<return type="bool" />
|
|
<param index="0" name="name" type="StringName" />
|
|
<param index="0" name="name" type="StringName" />
|
|
- <param index="1" name="theme_type" type="StringName" default="""" />
|
|
|
|
|
|
+ <param index="1" name="theme_type" type="StringName" default="&""" />
|
|
<description>
|
|
<description>
|
|
Returns [code]true[/code] if there is a matching [Theme] in the tree that has an icon item with the specified [param name] and [param theme_type].
|
|
Returns [code]true[/code] if there is a matching [Theme] in the tree that has an icon item with the specified [param name] and [param theme_type].
|
|
See [method get_theme_color] for details.
|
|
See [method get_theme_color] for details.
|
|
@@ -675,7 +675,7 @@
|
|
<method name="has_theme_stylebox" qualifiers="const">
|
|
<method name="has_theme_stylebox" qualifiers="const">
|
|
<return type="bool" />
|
|
<return type="bool" />
|
|
<param index="0" name="name" type="StringName" />
|
|
<param index="0" name="name" type="StringName" />
|
|
- <param index="1" name="theme_type" type="StringName" default="""" />
|
|
|
|
|
|
+ <param index="1" name="theme_type" type="StringName" default="&""" />
|
|
<description>
|
|
<description>
|
|
Returns [code]true[/code] if there is a matching [Theme] in the tree that has a stylebox item with the specified [param name] and [param theme_type].
|
|
Returns [code]true[/code] if there is a matching [Theme] in the tree that has a stylebox item with the specified [param name] and [param theme_type].
|
|
See [method get_theme_color] for details.
|
|
See [method get_theme_color] for details.
|