1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<events name="click" keep="true" webvr_onvrcontrollerbutton="vrclick();" />
<action name="vrclick" scope="local">
if(!caller.target,
if(caller.vrbuttonstate == 'down',
addhotspot(auto, hs);
spacetosphere(caller.dx,caller.dy,caller.dz, hs.ath,hs.atv,depth);
set(hs, keep=true, scale=0.01, distorted=true, enabled=false, capture=false, alpha=1, autoalpha=true, depth=off,
onloaded='tween(alpha,0);tween(scale,.4)', url='%CURRENTXML%/graphics/click.png'
);
);
);
</action>
|