krpano 教程 - 鼠标效果的选择和实现

在tour.xml中插入  


        quicktime VR  默认图标  
    <action name="qtvrcursor">  
        set(control.mousetype, moveto);  
        set(cursors.url,  %SWFPATH%/mouse/qtvr-cursors.png);  
        set(cursors.type, 8way);  
        set(cursors.move,       0|0|16|16);  
        set(cursors.drag,      16|0|16|16);  
        set(cursors.arrow_u,   32|0|16|16);  
        set(cursors.arrow_d,   48|0|16|16);  
        set(cursors.arrow_l,   64|0|16|16);  
        set(cursors.arrow_r,   80|0|16|16);  
        set(cursors.arrow_lu,  96|0|16|16);  
        set(cursors.arrow_ru, 112|0|16|16);  
        set(cursors.arrow_rd, 128|0|16|16);  
        set(cursors.arrow_ld, 144|0|16|16);  
    </action>  


        拖动效果图标  
    <action name="dragcursor">  
        set(control.mousetype, drag2D);  
        set(cursors.url,  %SWFPATH%/mouse/drag-cursors.png);  
        set(cursors.type, drag);  
        set(cursors.move,  2|0|30|32);  
        set(cursors.drag, 37|0|30|32);  
    </action>  


        箭头效果图标  
    <action name="arrowcursor">  
        set(control.mousetype, moveto);  
        set(cursors.url,  %SWFPATH%/mouse/arrow-cursors.png);  
        set(cursors.type, 4way);  
        set(cursors.move,      112|0|28|28);  
        set(cursors.drag,      112|0|28|28);  
        set(cursors.arrow_r,    0|0|28|28);  
        set(cursors.arrow_d,   28|0|28|28);  
        set(cursors.arrow_l,   56|0|28|28);  
        set(cursors.arrow_u,   84|0|28|28);  
    </action>  


        flash动画图标  
    <action name="animatedcursor">  
        set(control.mousetype, moveto);  
        set(cursors.url, %SWFPATH%/mouse/animated-cursor.swf);  
        set(cursors.type, drag);  
        set(cursors.move, null);  
        set(cursors.drag, null);  
    </action>  


        场景移动图标  
    <action name="movecursor">  
        set(control.mousetype, moveto);  
        set(cursors.url,  %SWFPATH%/mouse/move-cursors.png);  
        set(cursors.type, drag);  
        set(cursors.move,  0|0|32|32);  
        set(cursors.drag, 32|0|32|32);  
    </action>  





在启动的动作startup中选择执行上面的action  

    <action name="startup">  

        action(qtvrcursor);  


    </action>  
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值