mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
112 lines
3.7 KiB
XML
112 lines
3.7 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="SpineSlot" inherits="SpineObjectWrapper" version="3.4">
|
|
<brief_description>
|
|
Stores a slot's current pose.
|
|
</brief_description>
|
|
<description>
|
|
Stores a slot's current pose. Slots organize attachments for {@link Skeleton#drawOrder} purposes and provide a place to store state for an attachment. State cannot be stored in an attachment itself because attachments are stateless and may be shared across multiple skeletons.
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<methods>
|
|
<method name="get_attachment">
|
|
<return type="SpineAttachment" />
|
|
<description>
|
|
The current attachment for the slot, or null if the slot has no attachment.
|
|
</description>
|
|
</method>
|
|
<method name="get_attachment_state">
|
|
<return type="int" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="get_bone">
|
|
<return type="SpineBone" />
|
|
<description>
|
|
The bone this slot belongs to.
|
|
</description>
|
|
</method>
|
|
<method name="get_color">
|
|
<return type="Color" />
|
|
<description>
|
|
The color used to tint the slot's attachment. If {@link #getDarkColor()} is set, this is used as the light color for two color tinting. Modifying the color has no effect.
|
|
</description>
|
|
</method>
|
|
<method name="get_dark_color">
|
|
<return type="Color" />
|
|
<description>
|
|
The dark color used to tint the slot's attachment for two color tinting, or null if two color tinting is not used. The dark color's alpha is not used. Modifying the color has no effect.
|
|
</description>
|
|
</method>
|
|
<method name="get_data">
|
|
<return type="SpineSlotData" />
|
|
<description>
|
|
The slot's setup pose data.
|
|
</description>
|
|
</method>
|
|
<method name="get_deform">
|
|
<return type="Array" />
|
|
<description>
|
|
Values to deform the slot's attachment. For an unweighted mesh, the entries are local positions for each vertex. For a weighted mesh, the entries are an offset for each vertex which will be added to the mesh's local vertex positions. Modifying the deform has no effect.
|
|
</description>
|
|
</method>
|
|
<method name="get_sequence_index">
|
|
<return type="int" />
|
|
<description>
|
|
The index of the texture region to display when the slot's attachment has a sequence. -1 represents the sequence's setup index.
|
|
</description>
|
|
</method>
|
|
<method name="has_dark_color">
|
|
<return type="bool" />
|
|
<description>
|
|
Whether the slot has a dark color.
|
|
</description>
|
|
</method>
|
|
<method name="set_attachment">
|
|
<return type="void" />
|
|
<argument index="0" name="v" type="SpineAttachment" />
|
|
<description>
|
|
Sets the slot's attachment and, if the attachment changed, resets the sequence index and clears the deform. The deform is not cleared if the old attachment has the same timeline as the specified attachment
|
|
</description>
|
|
</method>
|
|
<method name="set_attachment_state">
|
|
<return type="void" />
|
|
<argument index="0" name="v" type="int" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="set_color">
|
|
<return type="void" />
|
|
<argument index="0" name="arg0" type="Color" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="set_dark_color">
|
|
<return type="void" />
|
|
<argument index="0" name="v" type="Color" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="set_deform">
|
|
<return type="void" />
|
|
<argument index="0" name="v" type="Array" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="set_sequence_index">
|
|
<return type="void" />
|
|
<argument index="0" name="v" type="int" />
|
|
<description>
|
|
</description>
|
|
</method>
|
|
<method name="set_to_setup_pose">
|
|
<return type="void" />
|
|
<description>
|
|
Sets this slot to the setup pose.
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<constants>
|
|
</constants>
|
|
</class>
|