2022-06-17 08:05:18 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 08:08:05 +00:00
<class name= "LabelSettings" inherits= "Resource" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2022-06-17 08:05:18 +00:00
<brief_description >
2023-04-30 14:26:09 +00:00
Provides common settings to customize the text in a [Label].
2022-06-17 08:05:18 +00:00
</brief_description>
<description >
2023-04-30 14:26:09 +00:00
[LabelSettings] is a resource that provides common settings to customize the text in a [Label]. It will take priority over the properties defined in [member Control.theme]. The resource can be shared between multiple labels and changed on the fly, so it's convenient and flexible way to setup text style.
2022-06-17 08:05:18 +00:00
</description>
<tutorials >
</tutorials>
<members >
<member name= "font" type= "Font" setter= "set_font" getter= "get_font" >
2022-11-21 02:48:36 +00:00
[Font] used for the text.
2022-06-17 08:05:18 +00:00
</member>
2022-08-01 09:41:56 +00:00
<member name= "font_color" type= "Color" setter= "set_font_color" getter= "get_font_color" default= "Color(1, 1, 1, 1)" >
2022-11-21 02:48:36 +00:00
Color of the text.
2022-06-17 08:05:18 +00:00
</member>
<member name= "font_size" type= "int" setter= "set_font_size" getter= "get_font_size" default= "16" >
2022-11-21 02:48:36 +00:00
Size of the text.
2022-06-17 08:05:18 +00:00
</member>
2022-08-01 09:41:56 +00:00
<member name= "line_spacing" type= "float" setter= "set_line_spacing" getter= "get_line_spacing" default= "3.0" >
2024-10-09 16:41:03 +00:00
Additional vertical spacing between lines (in pixels), spacing is added to line descent. This value can be negative.
2022-06-17 08:05:18 +00:00
</member>
<member name= "outline_color" type= "Color" setter= "set_outline_color" getter= "get_outline_color" default= "Color(1, 1, 1, 1)" >
2022-11-21 02:48:36 +00:00
The color of the outline.
2022-06-17 08:05:18 +00:00
</member>
<member name= "outline_size" type= "int" setter= "set_outline_size" getter= "get_outline_size" default= "0" >
2022-11-21 02:48:36 +00:00
Text outline size.
2022-06-17 08:05:18 +00:00
</member>
2022-08-01 09:41:56 +00:00
<member name= "shadow_color" type= "Color" setter= "set_shadow_color" getter= "get_shadow_color" default= "Color(0, 0, 0, 0)" >
2022-11-21 02:48:36 +00:00
Color of the shadow effect. If alpha is [code]0[/code], no shadow will be drawn.
2022-06-17 08:05:18 +00:00
</member>
<member name= "shadow_offset" type= "Vector2" setter= "set_shadow_offset" getter= "get_shadow_offset" default= "Vector2(1, 1)" >
2022-11-21 02:48:36 +00:00
Offset of the shadow effect, in pixels.
2022-06-17 08:05:18 +00:00
</member>
2022-08-01 09:41:56 +00:00
<member name= "shadow_size" type= "int" setter= "set_shadow_size" getter= "get_shadow_size" default= "1" >
2022-11-21 02:48:36 +00:00
Size of the shadow effect.
2022-06-17 08:05:18 +00:00
</member>
</members>
</class>