打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Krpano的动画图标完整代码,拷贝就能用



Krpano,动画图标的完整代码,拷贝就能用


<action name="animate">

if (tour_stopsequence == false,

  if (stopspotsequence == false,

    txtadd(delayedname, %1, 'delay');

    if(hotspot[%1].loaded,

      inc(hotspot[%1].frame,1,get(hotspot[%1].lastframe),0);

      mul(hotspot[%1].ypos,get(hotspot[%1].frame),get(hotspot[%1].frameheight));

      txtadd(hotspot[%1].crop,'0|',get(hotspot[%1].ypos),'|',get(hotspot[%1].framewidth),'|',get(hotspot[%1].frameheight));

    );

    delayedcall(get(delayedname),%2,animate(%1,%2));

  );

);

</action>

<action name="startspotanimation">

set(tour_stopsequence, false);

set(stopspotsequence , false);

animate(get(name), %1);

</action>

<action name="stopspotanimation">

set(hotspot[%1].stopspotsequence, true);

txtadd(delayedname, %1, 'delay');

stopdelayedcall(get(delayedname));

</action>

<action name="interruptAnimation">

if(tour_stopsequence == false,

  set(tour_stopsequence, true);

);

</action>

<action name="skin_hotspotstyle_animate_onloaded">

startspotanimation(0.1);

</action>


使用方法:

<style name="IconspotHelicopter" url="%SWFPATH%skin/spots/helicopter.png" visible="true" frame="0" lastframe="24" framewidth="128" frameheight="128" stopspotsequence="false" crop="0|0|128|128" height="48" width="48" custom="true" onloaded="skin_hotspotstyle_animate_onloaded();" />

其中:

frame:从第几帧开始播放

lastframe:结束的帧数

framewidth:每一帧的宽度

frameheight:每一帧的高度

stopspotsequence:是否停止播放

crop:每一帧裁剪的左上角和右下角坐标

width:图标的显示宽度

height:图标的显示高度

onloaded:调用动画图标函数,onloaded="skin_hotspotstyle_animate_onloaded();"

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
krpano 热点显示文字 hotspot | 足迹
【IOS功能实现】之:下拉列表
制作网页上的360度旋转全景图PixMaker使用详细教程
XBM & XPM - X系统下的图标文件
一些可爱的小图标
拍《大周末hotspot》杂志的幕后花絮! - 霍思燕
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服