You are not logged in.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

1

Saturday, April 24th 2010, 1:42pm

imagegallery beta 9

Hi all,

i try to get the image gallery as Klaus added in the beta 9 in a tour...

I fixed it quite oke but i also need an stop action.
I tried and tried but can't find it..

so when click on a button the stop action should set/tween the gallery invisible etc..


any body?

Thanx

tuur *thumbsup*

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Saturday, April 24th 2010, 2:23pm

found it *love*

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>



cheers
Tuur *thumbsup*

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

3

Saturday, April 24th 2010, 2:32pm

So now i like the images to resize when the brouwser screen is resized..

anybody??


i think i should edit here some.. but what..


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>



Thanx

Tuur *thumbsup*

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

4

Saturday, April 24th 2010, 2:37pm

oeehh i'm smart..

line 20:

set(maxheight, get(stageheight));


is now

set(maxheight, 300);


now to find the resize evnt..
*thumbsup*

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

5

Saturday, April 24th 2010, 4:03pm

http://www.virtualtuur.com/BMM/

click the thumbnail button to see the gallery.

anybody on the resize?

Cheers

Tuur *thumbsup*

6

Thursday, April 29th 2010, 12:48pm

Hi,
anybody on the resize?
that's not so easy
the max. possible size was calculated when showing the image,
this must be redone on resizing and only for the large image,
I will try to add that in one of the next releases,

best regards,
Klaus

Similar threads