|
@@ -1423,7 +1423,7 @@ function toggleSpinner(element) {
|
|
|
<div class="split-left" style="width: 80%; box-sizing: border-box; min-height: 0;">
|
|
|
It's very easy to display your different skins and animations. Simply create a table and use the <code>skin</code> and <code>animation</code> attributes.
|
|
|
<br>
|
|
|
- <code>skin</code> accepts an comma separated list of skin names. The skins will be combined in a new one, from the first to the last. If multiple skins set the same slot, the latest in the list will be used.
|
|
|
+ <code>skin</code> accepts a comma separated list of skin names. The skins will be combined in a new one, from the first to the last. If multiple skins set the same slot, the latest in the list will be used.
|
|
|
</div>
|
|
|
|
|
|
<div class="skin-grid">
|
|
@@ -3276,7 +3276,7 @@ const darkPicker = document.getElementById("dark-picker");
|
|
|
<li><code>followOpacity</code>: the element opacity is connected to the slot alpha</li>
|
|
|
<li><code>followScale</code>: the element scale is connected to the slot scale</li>
|
|
|
<li><code>followRotation</code>: the element rotation is connected to the slot rotation</li>
|
|
|
- <li><code>followAttachmentAttach</code>: the element is shown/hidden depending if the slot contains an attachment or not</li>
|
|
|
+ <li><code>followVisibility</code>: the element is shown/hidden depending if the slot contains an attachment or not</li>
|
|
|
<li><code>hideAttachment</code>: the slot attachment is hidden as if the element replaced the attachment</li>
|
|
|
</ul>
|
|
|
</li>
|
|
@@ -3301,10 +3301,10 @@ const darkPicker = document.getElementById("dark-picker");
|
|
|
<script>
|
|
|
(async () => {
|
|
|
const widget = await spine.getSpineWidget("potty").whenReady;
|
|
|
- widget.followSlot("rain/rain-color", document.getElementById("rain/rain-color"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
- widget.followSlot("rain/rain-white", document.getElementById("rain/rain-white"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
- widget.followSlot("rain/rain-blue", document.getElementById("rain/rain-blue"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
- widget.followSlot("rain/rain-green", document.getElementById("rain/rain-green"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-color", document.getElementById("rain/rain-color"), { followVisibility: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-white", document.getElementById("rain/rain-white"), { followVisibility: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-blue", document.getElementById("rain/rain-blue"), { followVisibility: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-green", document.getElementById("rain/rain-green"), { followVisibility: false, hideAttachment: true });
|
|
|
})();
|
|
|
</script>
|
|
|
|
|
@@ -3328,10 +3328,10 @@ const darkPicker = document.getElementById("dark-picker");
|
|
|
|
|
|
(async () => {
|
|
|
const widget = await spine.getSpineWidget("potty").whenReady;
|
|
|
- widget.followSlot("rain/rain-color", document.getElementById("rain/rain-color"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
- widget.followSlot("rain/rain-white", document.getElementById("rain/rain-white"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
- widget.followSlot("rain/rain-blue", document.getElementById("rain/rain-blue"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
- widget.followSlot("rain/rain-green", document.getElementById("rain/rain-green"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-color", document.getElementById("rain/rain-color"), { followVisibility: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-white", document.getElementById("rain/rain-white"), { followVisibility: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-blue", document.getElementById("rain/rain-blue"), { followVisibility: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-green", document.getElementById("rain/rain-green"), { followVisibility: false, hideAttachment: true });
|
|
|
})();`);</script>
|
|
|
</code></pre>
|
|
|
</div>
|
|
@@ -3375,10 +3375,10 @@ const darkPicker = document.getElementById("dark-picker");
|
|
|
<script>
|
|
|
(async () => {
|
|
|
const widget = await spine.getSpineWidget("potty2").whenReady;
|
|
|
- widget.followSlot("rain/rain-color", spine.getSpineWidget("potty2-1"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
- widget.followSlot("rain/rain-white", spine.getSpineWidget("potty2-2"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
- widget.followSlot("rain/rain-blue", spine.getSpineWidget("potty2-3"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
- widget.followSlot("rain/rain-green", spine.getSpineWidget("potty2-4"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-color", spine.getSpineWidget("potty2-1"), { followVisibility: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-white", spine.getSpineWidget("potty2-2"), { followVisibility: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-blue", spine.getSpineWidget("potty2-3"), { followVisibility: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-green", spine.getSpineWidget("potty2-4"), { followVisibility: false, hideAttachment: true });
|
|
|
})();
|
|
|
</script>
|
|
|
|
|
@@ -3402,10 +3402,10 @@ const darkPicker = document.getElementById("dark-picker");
|
|
|
|
|
|
(async () => {
|
|
|
const widget = await spine.getSpineWidget("potty2").whenReady;
|
|
|
- widget.followSlot("rain/rain-color", spine.getSpineWidget("potty2-1"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
- widget.followSlot("rain/rain-white", spine.getSpineWidget("potty2-2"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
- widget.followSlot("rain/rain-blue", spine.getSpineWidget("potty2-3"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
- widget.followSlot("rain/rain-green", spine.getSpineWidget("potty2-4"), { followAttachmentAttach: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-color", spine.getSpineWidget("potty2-1"), { followVisibility: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-white", spine.getSpineWidget("potty2-2"), { followVisibility: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-blue", spine.getSpineWidget("potty2-3"), { followVisibility: false, hideAttachment: true });
|
|
|
+ widget.followSlot("rain/rain-green", spine.getSpineWidget("potty2-4"), { followVisibility: false, hideAttachment: true });
|
|
|
})();`);</script>
|
|
|
</code></pre>
|
|
|
</div>
|