summaryrefslogtreecommitdiff
path: root/doc/classes/Label.xml
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-06-29 12:38:01 +0200
committerRémi Verschelde <rverschelde@gmail.com>2019-06-30 13:58:07 +0200
commitc6cea6e9b372f403a5906813bf5db8583d747d06 (patch)
treee34ffb412701b436f44feedd3f317d0e1e84afa9 /doc/classes/Label.xml
parent82604195b4c2c80777f7ecaa547194c6a208e8cf (diff)
doc: Add default values to all properties
Thanks to @bojidar-bg's impressive work in #29380.
Diffstat (limited to 'doc/classes/Label.xml')
-rw-r--r--doc/classes/Label.xml34
1 files changed, 17 insertions, 17 deletions
diff --git a/doc/classes/Label.xml b/doc/classes/Label.xml
index f9978bb1f3..ece6d3db82 100644
--- a/doc/classes/Label.xml
+++ b/doc/classes/Label.xml
@@ -40,34 +40,34 @@
</method>
</methods>
<members>
- <member name="align" type="int" setter="set_align" getter="get_align" enum="Label.Align">
+ <member name="align" type="int" setter="set_align" getter="get_align" enum="Label.Align" default="0">
Controls the text's horizontal align. Supports left, center, right, and fill, or justify. Set it to one of the [code]ALIGN_*[/code] constants.
</member>
- <member name="autowrap" type="bool" setter="set_autowrap" getter="has_autowrap">
+ <member name="autowrap" type="bool" setter="set_autowrap" getter="has_autowrap" default="false">
If [code]true[/code], wraps the text inside the node's bounding rectangle. If you resize the node, it will change its height automatically to show all the text. Default: [code]false[/code].
</member>
- <member name="clip_text" type="bool" setter="set_clip_text" getter="is_clipping_text">
+ <member name="clip_text" type="bool" setter="set_clip_text" getter="is_clipping_text" default="false">
If [code]true[/code], the Label only shows the text that fits inside its bounding rectangle. It also lets you scale the node down freely.
</member>
- <member name="lines_skipped" type="int" setter="set_lines_skipped" getter="get_lines_skipped">
+ <member name="lines_skipped" type="int" setter="set_lines_skipped" getter="get_lines_skipped" default="0">
The node ignores the first [code]lines_skipped[/code] lines before it starts to display text.
</member>
- <member name="max_lines_visible" type="int" setter="set_max_lines_visible" getter="get_max_lines_visible">
+ <member name="max_lines_visible" type="int" setter="set_max_lines_visible" getter="get_max_lines_visible" default="-1">
Limits the lines of text the node shows on screen.
</member>
- <member name="percent_visible" type="float" setter="set_percent_visible" getter="get_percent_visible">
+ <member name="percent_visible" type="float" setter="set_percent_visible" getter="get_percent_visible" default="1.0">
Limits the count of visible characters. If you set [code]percent_visible[/code] to 50, only up to half of the text's characters will display on screen. Useful to animate the text in a dialog box.
</member>
- <member name="text" type="String" setter="set_text" getter="get_text">
+ <member name="text" type="String" setter="set_text" getter="get_text" default="&quot;&quot;">
The text to display on screen.
</member>
- <member name="uppercase" type="bool" setter="set_uppercase" getter="is_uppercase">
+ <member name="uppercase" type="bool" setter="set_uppercase" getter="is_uppercase" default="false">
If [code]true[/code], all the text displays as UPPERCASE.
</member>
- <member name="valign" type="int" setter="set_valign" getter="get_valign" enum="Label.VAlign">
+ <member name="valign" type="int" setter="set_valign" getter="get_valign" enum="Label.VAlign" default="0">
Controls the text's vertical align. Supports top, center, bottom, and fill. Set it to one of the [code]VALIGN_*[/code] constants.
</member>
- <member name="visible_characters" type="int" setter="set_visible_characters" getter="get_visible_characters">
+ <member name="visible_characters" type="int" setter="set_visible_characters" getter="get_visible_characters" default="-1">
Restricts the number of characters to display. Set to -1 to disable.
</member>
</members>
@@ -100,21 +100,21 @@
<theme_items>
<theme_item name="font" type="Font">
</theme_item>
- <theme_item name="font_color" type="Color">
+ <theme_item name="font_color" type="Color" default="Color( 1, 1, 1, 1 )">
</theme_item>
- <theme_item name="font_color_shadow" type="Color">
+ <theme_item name="font_color_shadow" type="Color" default="Color( 0, 0, 0, 0 )">
</theme_item>
- <theme_item name="font_outline_modulate" type="Color">
+ <theme_item name="font_outline_modulate" type="Color" default="Color( 1, 1, 1, 1 )">
</theme_item>
- <theme_item name="line_spacing" type="int">
+ <theme_item name="line_spacing" type="int" default="3">
</theme_item>
<theme_item name="normal" type="StyleBox">
</theme_item>
- <theme_item name="shadow_as_outline" type="int">
+ <theme_item name="shadow_as_outline" type="int" default="0">
</theme_item>
- <theme_item name="shadow_offset_x" type="int">
+ <theme_item name="shadow_offset_x" type="int" default="1">
</theme_item>
- <theme_item name="shadow_offset_y" type="int">
+ <theme_item name="shadow_offset_y" type="int" default="1">
</theme_item>
</theme_items>
</class>