Implmement stackable text effects on label type through label settings

Co-authored-by: Micky <66727710+Mickeon@users.noreply.github.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
This commit is contained in:
DE YU
2025-04-02 21:16:53 +08:00
parent 7598b08ec2
commit ac931c33c2
5 changed files with 500 additions and 94 deletions

View File

@ -8,6 +8,127 @@
</description>
<tutorials>
</tutorials>
<methods>
<method name="add_stacked_outline">
<return type="void" />
<param index="0" name="index" type="int" default="-1" />
<description>
Adds a new stacked outline to the label at the given [param index]. If [param index] is [code]-1[/code], the new stacked outline will be added at the end of the list.
</description>
</method>
<method name="add_stacked_shadow">
<return type="void" />
<param index="0" name="index" type="int" default="-1" />
<description>
Adds a new stacked shadow to the label at the given [param index]. If [param index] is [code]-1[/code], the new stacked shadow will be added at the end of the list.
</description>
</method>
<method name="get_stacked_outline_color" qualifiers="const">
<return type="Color" />
<param index="0" name="index" type="int" />
<description>
Returns the color of the stacked outline at [param index].
</description>
</method>
<method name="get_stacked_outline_size" qualifiers="const">
<return type="int" />
<param index="0" name="index" type="int" />
<description>
Returns the size of the stacked outline at [param index].
</description>
</method>
<method name="get_stacked_shadow_color" qualifiers="const">
<return type="Color" />
<param index="0" name="index" type="int" />
<description>
Returns the color of the stacked shadow at [param index].
</description>
</method>
<method name="get_stacked_shadow_offset" qualifiers="const">
<return type="Vector2" />
<param index="0" name="index" type="int" />
<description>
Returns the offset of the stacked shadow at [param index].
</description>
</method>
<method name="get_stacked_shadow_outline_size" qualifiers="const">
<return type="int" />
<param index="0" name="index" type="int" />
<description>
Returns the outline size of the stacked shadow at [param index].
</description>
</method>
<method name="move_stacked_outline">
<return type="void" />
<param index="0" name="from_index" type="int" />
<param index="1" name="to_position" type="int" />
<description>
Moves the stacked outline at index [param from_index] to the given position [param to_position] in the array.
</description>
</method>
<method name="move_stacked_shadow">
<return type="void" />
<param index="0" name="from_index" type="int" />
<param index="1" name="to_position" type="int" />
<description>
Moves the stacked shadow at index [param from_index] to the given position [param to_position] in the array.
</description>
</method>
<method name="remove_stacked_outline">
<return type="void" />
<param index="0" name="index" type="int" />
<description>
Removes the stacked outline at index [param index].
</description>
</method>
<method name="remove_stacked_shadow">
<return type="void" />
<param index="0" name="index" type="int" />
<description>
Removes the stacked shadow at index [param index].
</description>
</method>
<method name="set_stacked_outline_color">
<return type="void" />
<param index="0" name="index" type="int" />
<param index="1" name="color" type="Color" />
<description>
Sets the color of the stacked outline identified by the given [param index] to [param color].
</description>
</method>
<method name="set_stacked_outline_size">
<return type="void" />
<param index="0" name="index" type="int" />
<param index="1" name="size" type="int" />
<description>
Sets the size of the stacked outline identified by the given [param index] to [param size].
</description>
</method>
<method name="set_stacked_shadow_color">
<return type="void" />
<param index="0" name="index" type="int" />
<param index="1" name="color" type="Color" />
<description>
Sets the color of the stacked shadow identified by the given [param index] to [param color].
</description>
</method>
<method name="set_stacked_shadow_offset">
<return type="void" />
<param index="0" name="index" type="int" />
<param index="1" name="offset" type="Vector2" />
<description>
Sets the offset of the stacked shadow identified by the given [param index] to [param offset].
</description>
</method>
<method name="set_stacked_shadow_outline_size">
<return type="void" />
<param index="0" name="index" type="int" />
<param index="1" name="size" type="int" />
<description>
Sets the outline size of the stacked shadow identified by the given [param index] to [param size].
</description>
</method>
</methods>
<members>
<member name="font" type="Font" setter="set_font" getter="get_font">
[Font] used for the text.
@ -39,5 +160,11 @@
<member name="shadow_size" type="int" setter="set_shadow_size" getter="get_shadow_size" default="1">
Size of the shadow effect.
</member>
<member name="stacked_outline_count" type="int" setter="set_stacked_outline_count" getter="get_stacked_outline_count" default="0">
The number of stacked outlines.
</member>
<member name="stacked_shadow_count" type="int" setter="set_stacked_shadow_count" getter="get_stacked_shadow_count" default="0">
Returns the stacked shadow count.
</member>
</members>
</class>