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
|
<info_box_settings infobox2screen_ratio="0.7" /> <!-- 0.7 = seventy percent of screenheight or screenwidth -->
<events name="infobox_events" keep="true"
onresize="infobox_image_adapt();"
onnewpano="close_info_box();"/>
<style name="pichotspot"
distorted="false" capture="false" zorder="1"
onclick="show_info_box();" url="skin/info2.png"
onloaded="if(ismobile,set(scale,1));" zoom="false" scale="0.4"
onhover="showtext(Click for more information,thumbtext3)"/>
<plugin name="infobox_image"
url="" align="center" keep="true"
alpha="1" scale="0" handcursor="false"
scalechildren="true" visible="true"
onloaded="set(infobox_image_loaded,true);
set(infobox_image_w,get(plugin[infobox_image].imagewidth));
set(infobox_image_h,get(plugin[infobox_image].imageheight));
infobox_image_adapt();" x="0" y="0" zorder="5" onhover="" onclick="" />
<plugin name="info_box_x"
url="images/close_btn.png" parent="infobox_image"
align="topright" keep="true" alpha="1" scale="1.5"
handcursor="true" visible="true" x="15" y="10" zorder="6" onhover=""
onclick="action(close_info_box);"/>
<action name="close_info_box">
tween(plugin[infobox_image].scale,0);
</action>
<action name="show_info_box">
set(plugin[infobox_image].scale,0);
txtadd(infobox_image_file_name,'images/',get(name),'.png');
set(plugin[infobox_image].url,get(infobox_image_file_name));
delayedcall(0.5,tween(plugin[infobox_image].scale,0.7););
</action>
<action name="infobox_image_adapt">
div(infobox_image_expected_aspect,get(infobox_image_w),get(infobox_image_h));
div(screen_expected_aspect,stagewidth,stageheight);
fix_infobox_aspectresize(infobox_image_expected_aspect,screen_expected_aspect);
</action>
<action name="fix_infobox_aspectresize">
if(%2 LE %1,mul(new_infobox_image_width,stagewidth,info_box_settings.infobox2screen_ratio);
set(plugin[infobox_image].width,get(new_infobox_image_width));
set(plugin[infobox_image].height,prop);
,
mul(new_infobox_image_height,stageheight,info_box_settings.infobox2screen_ratio);
set(plugin[infobox_image].height,get(new_infobox_image_height));
set(plugin[infobox_image].width,prop););
</action>
|