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.
Also I would like to have the option of opening them horizontally instead of the current vertical alignment.
I can not find anything that works for that. If I set the stageheight to a large number it does but it will not work with many thumbs if the resolutiuon does not give place.
It just disappears to the right side instead of shifting the row to a new one.
Hans
I also wanted some buttons to open and close them and then discovered that the thumbnails have no layer order. They go on top of everything what ever you set of zorder on a button.
Thats why I had to place the open thumb not on top of the stack.
Any ideas if zorder is supported in someway.
I also wanted some buttons to open and close them and then discovered that the thumbnails have no layer order. They go on top of everything what ever you set of zorder on a button.
Thats why I had to place the open thumb not on top of the stack.
Any ideas if zorder is supported in someway.
Also I would like to have the option of opening them horizontally instead of the current vertical alignment.
I can not find anything that works for that. If I set the stageheight to a large number it does but it will not work with many thumbs if the resolutiuon does not give place.
It just disappears to the right side instead of shifting the row to a new one.
Hans
Hans I wanted the same thing and found a way to do it. I just swapped every x for a y and every y for an x in this section of code and it worked. It is already wapped here so dont change it back. this code opens the thumbs horizontal.
<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(xdst,90);set(xdst,0); );
openthumb(%1,NEXT);
,
add(ydst,25);
add(xdst,15);
tween(plugin[%1].y, get(ydst) );
tween(plugin[%1].x, get(xdst) );
tween(plugin[%1].width, 80);
tween(plugin[%1].height, 80);
);
</action>
I have a little played today with thumbnails parameters.![]()
Here that from this left:
http://panoramarx.de/domotex/tour.html
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »VN2009« (17. Dezember 2010, 15:52)
|
|
Quellcode |
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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
<!-- 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, leftbottom); set(plugin[get(thumbname)].width, 310); set(plugin[get(thumbname)].height, 234); 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() ); inc(i); buildthumbs(NEXT); ); </action> <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(ydst,250); sub(ymax, stageheight, 100); if(ydst GT ymax, inc(xdst,326);set(ydst,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, 310); tween(plugin[%1].height, 234); ); </action> <action name="closethumb"> tween(plugin[%1].x, get(plugin[%1].xsmall)); tween(plugin[%1].y, get(plugin[%1].ysmall)); tween(plugin[%1].width, 64); tween(plugin[%1].height, 64); </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> <action name="closethumbs"> if(%1 != NEXT, set(i,0)); if(i LT scene.count, txtadd(thumbname,'thumb_',get(i)); closethumb(get(thumbname)); set(plugin[get(thumbname)].onclick, openthumbs() ); inc(i); closethumbs(NEXT); ); </action> <!-- thumbnail actions end --> |