Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Dienstag, 7. Dezember 2010, 13:34

thumbnails positioning

Hello,

I'm playing around with the demo version and I wonder what code that I have to change to see all thumbnails aligned (A) from the beginning and not 'all together' as they do automatically (B).

Cheers,
=servaas=

2

Dienstag, 7. Dezember 2010, 14:06

OK !
I found it myself :-)

<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, leftbottom);
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,50);
mul(plugin[get(thumbname)].y, i,0);

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() );
inc(i);
buildthumbs(NEXT);
);
</action>

3

Dienstag, 7. Dezember 2010, 14:14

mmm... but not 100% as I wanted...

I just want them to appear and not to resize or anything. Just be clickable..

=servaas=

4

Dienstag, 7. Dezember 2010, 15:08

Hi again,

I'm so far that thumbnails always stay in the same position.
You can have a look on this link; but only on iPhone/Pod/Pad

BUT I first have to click once on a thumbnails before they're active.
So how can I get rid of this first click ?

This is what's left of my code at this moment:

<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, leftbottom);
set(plugin[get(thumbname)].width, 80);
set(plugin[get(thumbname)].height, 80);
set(plugin[get(thumbname)].x, 40);
set(plugin[get(thumbname)].y, 40);
mul(plugin[get(thumbname)].x, i,0);
mul(plugin[get(thumbname)].y, i,100);
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() );
inc(i);
buildthumbs(NEXT);
);
</action>

<action name="openthumbs">
if(%1 != NEXT,
set(i,0);
set(events.onclick, set(events.onclick,null); delayedcall(0.1, closethumbs() ); );
);

if(i LT scene.count,
txtadd(thumbname,'thumb_',get(i));
openthumb(get(thumbname));
set(plugin[get(thumbname)].onclick, set(events.onclick,null); closethumbs(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); );
inc(i);
openthumbs(NEXT);
);
</action>

5

Dienstag, 7. Dezember 2010, 15:19

put the open thumbs action here.

<action name="startup">
<!-- load the first scene -->
loadscene(get(scene[0].name), null, MERGE);

<!-- build the thumbnails (remove the next line to remove the thumbnails) -->
buildthumbs();
openthumbs(); </action>

6

Dienstag, 7. Dezember 2010, 16:27

Hi,

thanks for your reaction.
I tried to add what you told me.. but now I got a XML parser error #2070

I attached the xml file.

Thanks,
=servaas=
»servaas« hat folgende Datei angehängt:
  • shore.xml (7,97 kB - 20 mal heruntergeladen - zuletzt: 29. August 2014, 08:07)

7

Mittwoch, 8. Dezember 2010, 14:52

OK !
Looks like it does work !

Thanks a lot, VN2009.

=servaas=

8

Montag, 17. Oktober 2011, 18:39

,thumbs

Hi

9

Montag, 17. Oktober 2011, 18:41

thumbs

Hi,
Can I move thumnails to another position in the viewer? e.g. to other corner

10

Dienstag, 18. Oktober 2011, 12:16

Hi,
Can I move thumnails to another position in the viewer? e.g. to other corner
change here the alignment:

Zitat

set(plugin[get(thumbname)].align, leftbottom);
see:
http://krpano.com/docu/xml/#plugin.align


best regards,
Klaus

11

Samstag, 22. Oktober 2011, 04:50

Hi klaus thanx! *thumbsup*
How can I do for the thumnails to display a tip(description of the scene) when I pass the cursor over it?
for example like in the default buttons:
onhover="showtext(Abajo, buttonstyle);"
Regards

12

Donnerstag, 27. Oktober 2011, 12:03

Hi,

look in the xml for the "buildthumbs" action and add there these red-marked lines:

Zitat

...
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)].scenetitle, get(scene[get(i)].title) );
set(plugin[get(thumbname)].onhover, showtext(get(
scenetitle),buttonstyle) );
inc(i);
buildthumbs(NEXT);
...
best regards,
Klaus