|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
<style name="w_style"
url="skin/asst1b.png"
crop="0|0|77|153"
frames="7" framewidth="77" frameheight="153" frame="1" loopNo="19" loopCount="0"
column="1" columns="7" columnframenr="1"
onloaded=""
altonloaded="if(isphone, mul(scale,2)); onloaded();"
scale="1.5"
edge=""
oy="0"
onclick="w_animate();"
distorted="true"
/>
<action name="w_animate">
inc(frame,1,get(frames),1);
mul(t, column, columnframenr);
add(t,1);
if(frame == t, inc(column,1));
sub(xp, column,1);
mul(xp, framewidth);
mul(yp,frame,frameheight);
mul(ch, columnframenr, frameheight);
sub(cm, column,1);
sub(q,columns,1);
mul(ce, ch,cm);
if(cm==q, set(column, 1));
if(yp GT ch, sub(yp, ce));
sub(yp, frameheight);
txtadd(crop, get(xp),'|',get(yp),'|',get(framewidth),'|',get(frameheight));
if(loopCount LE loopNo, inc(loopCount, 1); delayedcall(0.08, w_animate() ); , set(loopCount, 0); );
</action>
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 |
<scene name="" title="" onstart="" thumburl="" lat="" lng="" heading=""> . . . . <hotspot name="asst_cursor" style="w_style" ath="61.016" atv="-5.7" enabled="true" onclick="w_animate();" /> |
|
|
Source code |
1 2 |
<hotspot name="spotOpt1" url="skin/buttons_yellow.png" distorted="true" scale="0.25" enabled="true" ath="45.382" atv="-0.911" onclick="set(hotspot[asst_cursor].w_animate(); );" /> |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<style name="w_style"
url="skin/asst1b.png"
crop="0|0|77|153"
frames="7" framewidth="77" frameheight="153" frame="1" loopNo="19" loopCount="0"
column="1" columns="7" columnframenr="1"
onloaded=""
altonloaded="if(isphone, mul(scale,2)); onloaded();"
scale="1.5"
edge=""
oy="0"
onclick="w_animate();"
distorted="true"
/>
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<hotspot name="spotOpt3" url="skin/buttons_yellow.png" distorted="true" scale="0.25" enabled="true" ath="45.382" atv="-16.911"
onclick="w_animate1(asst_cursor);" />
<action name="w_animate1">
inc(get(hotspot[%1].frame),1,get(hotspot[%1].frames),1);
mul(t, get(hotspot[%1].column), get(hotspot[%1].columnframenr));
add(t,1);
if(get(hotspot[%1].frame) == t, inc(get(hotspot[%1].column,1)));
sub(xp, get(hotspot[%1].column),1);
mul(xp, get(hotspot[%1].framewidth));
mul(yp, get(hotspot[%1].frame), get(hotspot[%1].frameheight));
mul(ch, get(hotspot[%1].columnframenr), get(hotspot[%1].frameheight));
sub(cm, get(hotspot[%1].column),1);
sub(q, get(hotspot[%1].columns),1);
mul(ce, ch,cm);
if(cm==q, set(get(hotspot[%1].column), 1));
if(yp GT ch, sub(yp, ce));
sub(yp, get(hotspot[%1].frameheight));
txtadd(crop, get(xp),'|',get(yp),'|',get(hotspot[%1].framewidth),'|',get(hotspot[%1].frameheight));
if(get(hotspot[%1].loopCount) LE get(hotspot[%1].loopNo), inc(get(hotspot[%1].loopCount), 1); delayedcall(0.08, w_animate(asst_cursor) ); , set(get(hotspot[%1].loopCount), 0); );
</action>
|
This post has been edited 1 times, last edit by "DarManiac" (Nov 6th 2017, 12:32pm)