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
|
|
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 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 |
<action name="hide">
tween(plugin[thumbbar].alpha, 0,1);
tween(plugin[thumbbar_image_0].alpha, 0,1);
tween(plugin[thumbbar_image_1].alpha, 0,1);
tween(plugin[thumbbar_image_2].alpha, 0,1);
tween(plugin[thumbbar_image_3].alpha, 0,1);
tween(plugin[thumbbar_image_4].alpha, 0,1);
tween(plugin[thumbbar_image_5].alpha, 0,1);
tween(plugin[thumbbar_image_6].alpha, 0,1);
tween(plugin[thumbbar_image_7].alpha, 0,1);
tween(plugin[thumbbar_image_8].alpha, 0,1);
tween(plugin[thumbbar_image_9].alpha, 0,1);
set(plugin[thumbbar_image_0].enabled, false);
set(plugin[thumbbar_image_1].enabled, false);
set(plugin[thumbbar_image_2].enabled, false);
set(plugin[thumbbar_image_3].enabled, false);
set(plugin[thumbbar_image_4].enabled, false);
set(plugin[thumbbar_image_5].enabled, false);
set(plugin[thumbbar_image_6].enabled, false);
set(plugin[thumbbar_image_7].enabled, false);
set(plugin[thumbbar_image_8].enabled, false);
set(plugin[thumbbar_image_9].enabled, false);
</action>
<action name="start">
<!--
syntax:
create_thumbbar(numberofimages, align, orientation, x,y, width,height, border);
numberofimages ... number of images
align ... position of the imagebar (lefttop,left,leftright,top,center,bottom,righttop,right,bottom)
orientation ... orientation of the imagebar (h or v)
x,y ... position offsets
width,height ... thumbnail imagesize
border ... border around images
-->
create_thumbbar(9, right, v, 10,0, 70,40, 6);
thumbbar_addimage('images/bmm_1.jpg');
thumbbar_addimage('images/bmm_2.jpg');
thumbbar_addimage('images/bmm_3.jpg');
thumbbar_addimage('images/bmm_4.jpg');
thumbbar_addimage('images/bmm_5.jpg');
thumbbar_addimage('images/bmm_6.jpg');
thumbbar_addimage('images/bmm_7.jpg');
thumbbar_addimage('images/bmm_8.jpg');
thumbbar_addimage('images/bmm_9.jpg');
tween(plugin[thumbbar].alpha, 0.5,1);
tween(plugin[thumbbar_image_0].alpha, 1,1);
tween(plugin[thumbbar_image_1].alpha, 1,1);
tween(plugin[thumbbar_image_2].alpha, 1,1);
tween(plugin[thumbbar_image_3].alpha, 1,1);
tween(plugin[thumbbar_image_4].alpha, 1,1);
tween(plugin[thumbbar_image_5].alpha, 1,1);
tween(plugin[thumbbar_image_6].alpha, 1,1);
tween(plugin[thumbbar_image_7].alpha, 1,1);
tween(plugin[thumbbar_image_8].alpha, 1,1);
tween(plugin[thumbbar_image_9].alpha, 1,1);
set(plugin[thumbbar_image_0].enabled, true);
set(plugin[thumbbar_image_1].enabled, true);
set(plugin[thumbbar_image_2].enabled, true);
set(plugin[thumbbar_image_3].enabled, true);
set(plugin[thumbbar_image_4].enabled, true);
set(plugin[thumbbar_image_5].enabled, true);
set(plugin[thumbbar_image_6].enabled, true);
set(plugin[thumbbar_image_7].enabled, true);
set(plugin[thumbbar_image_8].enabled, true);
set(plugin[thumbbar_image_9].enabled, true);
</action>
|
: https://pame.virtualtuur.comLocation: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
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 35 36 37 38 39 40 41 42 43 44 45 46 47 |
<action name="thumbbar_showimage"> thumbbar_hide_allimages(); set(plugin[%1].zorder, 3); push(plugin[%1].width); push(plugin[%1].height); plugin[%1].resetsize(); copy(plugin[%1].originalwidth, plugin[%1].width); copy(plugin[%1].originalheight, plugin[%1].height); pop(plugin[%1].height); pop(plugin[%1].width); set(imgwidth, get(plugin[%1].originalwidth)); set(imgheight, get(plugin[%1].originalheight)); set(maxwidth, get(stagewidth)); sub(maxwidth, maxwidth, thumbbar_xborder); set(maxheight, get(stageheight)); sub(maxheight, maxheight, thumbbar_yborder); if(imgwidth GT maxwidth, mul(imgheight, imgheight, maxwidth); div(imgheight, imgheight, imgwidth); copy(imgwidth, maxwidth); ); if(imgheight GT maxheight, mul(imgwidth, imgwidth, maxheight); div(imgwidth, imgwidth, imgheight); copy(imgheight, maxheight); ); tween(plugin[%1].width, get(imgwidth)); tween(plugin[%1].height, get(imgheight)); mul(tmp, thumbbar_border, 3); add(tmp, tmp, thumbbar_thumbwidth); plugin[%1].changeorigin(center,center); tween(plugin[%1].x, 0); tween(plugin[%1].y, 0); set(plugin[%1].onclick, thumbbar_hideimage(%1) ); </action> |
: https://pame.virtualtuur.comLocation: 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