You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, November 21st 2010, 4:37pm

vtour - thumbs oben rechts

Hallo,

könnte man die Thumbs bei der vtour auch oben rechts einbauen, dann wäre unten Platz für die Navigationsleiste ( Buttons ).
Und wenn ich Navigationsbuttons in die vtour.xml kopiere werden diese leider nicht angezeigt?

Ich bin leider ein Freund von Navigationsbuttons *rolleyes*

Gruß Tobias

2

Monday, November 22nd 2010, 6:32am

Just alter the text as below

Quoted


<!-- thumbnail actions begin (remove the 'buildthumbs()' call in the onstart event to remove the thumbs) -->
<action name="buildthumbs">
if(%1 != NEXT, set(i,0));
if(i LT scene.count,
copy(thumb, scene[get(i)].thumburl);
txtadd(thumbname,'thumb_',get(i));
addplugin(get(thumbname));
set(plugin[get(thumbname)].url, get(thumb));
set(plugin[get(thumbname)].keep, true);
set(plugin[get(thumbname)].align, lefttop);
set(plugin[get(thumbname)].width, 40);
set(plugin[get(thumbname)].height, 40);
set(plugin[get(thumbname)].x, 10);
set(plugin[get(thumbname)].y, 10);
mul(plugin[get(thumbname)].x, i,3);
mul(plugin[get(thumbname)].y, i,3);
add(plugin[get(thumbname)].x, 5);
add(plugin[get(thumbname)].y, 5);
copy(plugin[get(thumbname)].xsmall, plugin[get(thumbname)].x);
copy(plugin[get(thumbname)].ysmall, plugin[get(thumbname)].y);
add(plugin[get(thumbname)].zorder, 100, i);
set(plugin[get(thumbname)].effect,glow(0xFFFFFF,1.0,2,10000));
set(plugin[get(thumbname)].jsborder,'1px solid #FFFFFF');
copy(plugin[get(thumbname)].thumbpos, i);
set(plugin[get(thumbname)].linkedscene, get(scene[get(i)].name) );
set(plugin[get(thumbname)].onclick, openthumbs() );
set(plugin[get(thumbname)].onhover, showtitle(get(i)) );
inc(i);
buildthumbs(NEXT);
);
</action>



And if you want the thumb to ron along the top instead og the left side you shift the x and y in this part:



Quoted


<action name="openthumb">
if(%2 != NEXT,
set(pos,0);
copy(curpos, plugin[%1].thumbpos);
set(xdst, 0);
set(ydst, 0);
);

if(pos LT curpos,
inc(pos);
inc(xdst,90);
sub(xmax, stagewidth, 100);
if(xdst GT xmax, inc(ydst,90);set(xdst,0); );
openthumb(%1,NEXT);
,
add(xdst,10);
add(ydst,10);
tween(plugin[%1].x, get(xdst) );
tween(plugin[%1].y, get(ydst) );
tween(plugin[%1].width, 80);
tween(plugin[%1].height, 80);
);
</action>



best regards Flemming

3

Tuesday, November 23rd 2010, 12:31am

Thank you Flemming, it works and the navigation buttons too *smile*

Similar threads