Spine:修订间差异
来自卡厄思梦境WIKI
创建页面,内容为“<includeonly><!-- 开始 Widget 代码 --> <div class="spine-widget-wrapper"> <link rel="stylesheet" href="/spine/spine-player.css"> <div id="spine-player-<!--{$id|default:random}-->" class="spine-player-container" style="width:<!--{$width|escape:'html'|default:'640'}-->px; height:<!--{$height|escape:'html'|default:'480'}-->px;"> </div> <script src="/spine/spine-player.js"></script> <script> (function() { var playerId = 'spine…” |
小无编辑摘要 |
||
| 第1行: | 第1行: | ||
<includeonly | <includeonly> | ||
<div | <div id="spine-widget-<!--{$id|default:'player'}-->" style="width:<!--{$width|default:'640'}-->px; height:<!--{$height|default:'480'}-->px; background:<!--{$bg|default:'#ffffff'}-->;"></div> | ||
<script src="https://esotericsoftware.com/files/spine-player/3.8/spine-player.js"></script> | |||
<link rel="stylesheet" href="https://esotericsoftware.com/files/spine-player/3.8/spine-player.css"> | |||
<script> | |||
(function() { | |||
new spine.SpinePlayer("spine-widget-<!--{$id|default:'player'}-->", { | |||
jsonUrl: "<!--{$json}-->", | |||
atlasUrl: "<!--{$atlas}-->", | |||
animation: "<!--{$animation|default:''}-->", | |||
skin: "<!--{$skin|default:'default'}-->", | |||
backgroundColor: "<!--{$bg|default:'#ffffff'}-->", | |||
alpha: true, | |||
viewport: { | |||
padLeft: "0%", | |||
padRight: "0%", | |||
padTop: "0%", | |||
padBottom: "0%" | |||
}, | |||
showControls: true, | |||
scale: parseFloat("<!--{$scale|default:'1'}-->") | |||
}); | |||
})(); | |||
</script> | |||
} | |||
} | |||
</includeonly> | </includeonly> | ||