Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 |
<plugin name="btn_help" url="../skin/buttons/btn_help.png" style="tour_btn" id="tourbtn" ondown="" y="150" /> <plugin name="btn_gyro" url="../skin/buttons/btn_gyro.png" style="tour_btn" id="tourbtn" ondown="" y="170" /> <plugin name="btn_rotate" url="../skin/buttons/btn_rotate.png" style="tour_btn" id="tourbtn" ondown="" y="190" /> <action name="show_tourmenu"> if(id == tourbtn, set(visible,true); ); </action> |
: https://pame.virtualtuur.com|
|
Source code |
1 2 3 4 5 |
for(set(i, 0), i LT plugin.count, inc(i),
if(plugin[get(i)].id == tourbtn,
set(plugin[get(i)].visible, false);
);
);
|
|
|
Source code |
1 2 3 4 5 |
for(sub(i,plugin.count,1), i GE 0, dec(i), if(plugin[get(i)].id =='tour_btn', set(plugin[get(i)].visible,true); ); ); |
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comLocation: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com|
|
Source code |
1 |
set(style[tour_btn].visible, false); |
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comYess..
works perfect!!!
Thanx!!
![]()
![]()
![]()
![]()
![]()
@Sacha, that group thing was what i was looking for in the beginning
http://www.krpano.com/forum/wbb/index.ph…18945#post18945
..but for now this is better..
Tuur![]()
Yess..
@Sacha, that group thing was what i was looking for in the beginning
http://www.krpano.com/forum/wbb/index.ph…18945#post18945
..but for now this is better..
Tuur![]()
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
Source code |
1 2 3 4 5 |
for(set(i, 0), i LT plugin.count, inc(i),
if(plugin[get(i)].tag == menu,
tween(plugin[get(i)].x, -200,3);
);
);
|
|
|
Source code |
1 2 3 4 5 |
for(set(i, 0), i LT plugin.count, inc(i),
if(plugin[get(i)].tag == menu,
switch(plugin[get(i)].x, -200,10);
);
);
|
: https://pame.virtualtuur.comLocation: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
Source code |
1 2 3 4 5 |
for(set(i, 0), i LT plugin.count, inc(i),
if(plugin[get(i)].tag == menu,
switch(tween(plugin[get(i)].x,-200,3);, tween(plugin[get(i)].x,10,3));
);
);
|
: https://pame.virtualtuur.com|
|
Source code |
1 2 3 4 |
<action name="set_hotspots/plugin3"> trace('tween(plugin[',%1,'].',%2,',',%3,')'); tween(plugin[%1].%2,%3); </action> |
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
Source code |
1 2 3 4 5 |
for(set(i, 0), i LT plugin.count, inc(i),
if(plugin[get(i)].tag == menu,
tween(plugin[get(i)].x, -200,3);
);
);
|
: https://pame.virtualtuur.comit's not really a bug. You can't tween 2 objects at the same time or even 2 properties. you have to add a wait(blend) between it or use asyncfor.
This post has been edited 1 times, last edit by "sachagriffin" (Apr 18th 2012, 9:21pm)
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comhere the variable - "plugin[get(i)].x" - will be tweened - but the problem here is the 'get(i)' it will be resolver every tween step, but at that time the 'i' variable has already a different value,
Quoted
why does this not work?
for(set(i, 0), i LT plugin.count, inc(i),
if(plugin[get(i)].tag == menu,
tween(plugin[get(i)].x, -200,3);
);
);
|
|
Source code |
1 2 3 |
<action name="helperaction"> tween(plugin[%1].x, -200,3); </action> |
|
|
Source code |
1 2 3 4 5 |
for(set(i, 0), i LT plugin.count, inc(i),
if(plugin[get(i)].tag == menu,
helperaction(get(i));
);
);
|