|
@@ -20,6 +20,7 @@
|
|
|
set(hotspot[get(hsp_name)].name,%1);
|
|
|
set(hotspot[get(hsp_name)].hotspottype,%2);
|
|
|
set(hotspot[get(hsp_name)].hotspottitle,%3);
|
|
|
+ set(hotspot[get(hsp_name)].hoverstatus,%9);
|
|
|
set(hotspot[get(hsp_name)].hotspotStyle,%10);
|
|
|
set(hotspot[get(hsp_name)].opentype,%11);
|
|
|
set(hotspot[get(hsp_name)].hotlink,%7);
|
|
@@ -78,33 +79,47 @@
|
|
|
txtadd(line,'<div style="background-color: ',get(borderColor),';width:1px;height:80px;"></div>');
|
|
|
copy(hotspot[get(hsp_name)].html,line);
|
|
|
<!-- txtadd(hotspot[get(hsp_name)].onloaded,"add_tooltip_label();add_tooltip_dot();"); -->
|
|
|
- set_label_dir(get(hsp_name),get(lineDirection),0);
|
|
|
+ if(isShowLine == 1, set_label_dir(get(hsp_name),get(lineDirection),0););
|
|
|
+
|
|
|
+ if(isShowLine == 0,
|
|
|
+ txtadd(tooltipname, 'tooltip_', get(hsp_name));
|
|
|
+ txtadd(tooltipdot, 'tooldot_', get(hsp_name));
|
|
|
+ <!-- set_label_dir(get(hsp_name),get(lineDirection),0); -->
|
|
|
+ set(hotspot[get(hsp_name)].width,0);
|
|
|
+ trace('隐藏标线::',get(tooltipdot));
|
|
|
+ set(layer[get(tooltipname)].x,0);
|
|
|
+ set(layer[get(tooltipname)].y,0);
|
|
|
+ set(layer[get(tooltipname)].rotate,0);
|
|
|
+ set(hotspot[get(hsp_name)].visible,true);
|
|
|
+ set(layer[get(tooltipname)].visible,true);
|
|
|
+ set(layer[get(tooltipdot)].visible,false);
|
|
|
+ );
|
|
|
);
|
|
|
|
|
|
txtadd(hotspot[get(hsp_name)].onloaded,"make_hotsport_animation(get(framewidth),get(framewidth),get(frameRate));");
|
|
|
- trace('last_add::',hotspot[get(hsp_name)].onloaded);
|
|
|
+ <!-- trace('last_add::',hotspot[get(hsp_name)].onloaded); -->
|
|
|
addhotspot(get(hsp_name));
|
|
|
</action>
|
|
|
|
|
|
<action name="make_hotsport_animation">
|
|
|
<!-- 1 square:(w/h) 2:imageW 3 imageH 4 frameRate -->
|
|
|
- trace('imagewidth::',imagewidth,'::imageheight::',imageheight);
|
|
|
+ <!-- trace('imagewidth::',imagewidth,'::imageheight::',imageheight); -->
|
|
|
registerattribute(xframes, calc((imagewidth / %1) BOR 0));
|
|
|
registerattribute(yframes, calc((imageheight / %2) BOR 0));
|
|
|
registerattribute(frames, calc(xframes * yframes));
|
|
|
registerattribute(frame, 0);
|
|
|
registerattribute(animatiedOn, 1);
|
|
|
registerattribute(frameRate, %3);
|
|
|
- trace('frameRate::',get(frameRate));
|
|
|
+ <!-- trace('frameRate::',get(frameRate)); -->
|
|
|
set(crop, '0|0|%1|%2');
|
|
|
clearinterval(calc('crop_anim_' + name));
|
|
|
if(%3 == '' OR frameRate == 0 OR isNaN(frameRate),
|
|
|
set(frameRate,calc(1.0 / 60));
|
|
|
- trace('没有frameRate',get(calc(1.0 / 60)));
|
|
|
- trace('没有frameRate-1',get(frameRate));
|
|
|
+ <!-- trace('没有frameRate',get(calc(1.0 / 60)));
|
|
|
+ trace('没有frameRate-1',get(frameRate)); -->
|
|
|
);
|
|
|
- trace('params::1::',%1,'::2::',%2,'::3::',%3,':frameRate:',get(frameRate));
|
|
|
- trace('xframes1::',get(xframes),'::yframes1::',get(yframes));
|
|
|
+ <!-- trace('params::1::',%1,'::2::',%2,'::3::',%3,':frameRate:',get(frameRate));
|
|
|
+ trace('xframes1::',get(xframes),'::yframes1::',get(yframes)); -->
|
|
|
|
|
|
|
|
|
if(frameRate GE 0,
|
|
@@ -134,6 +149,7 @@
|
|
|
</action>
|
|
|
|
|
|
<action name="add_tooltip_label">
|
|
|
+ showlog();
|
|
|
txtadd(tooltipname, 'tooltip_', get(name));
|
|
|
|
|
|
txtsplit(hotspotStyle,'|',fontSize,pos,isHover,borderColor,fillColor,textColor,isShowLine,isTextWrap,lineDirection,textDirection,textNumPerLine,duration,frameNumber);
|
|
@@ -162,21 +178,45 @@
|
|
|
|
|
|
<!-- label方位 -->
|
|
|
if(get(hotspottype) LE 2,
|
|
|
- <!-- trace('hotspottype::',get(hotspottype),'::tooltipname::',get(tooltipname),'pos::',get(pos)); -->
|
|
|
- <!-- set_label_pos(get(tooltipname),get(pos)); -->
|
|
|
- delayedcall(0.1,
|
|
|
+ copy(hoverstatus,hotspot[get(name)].hoverstatus);
|
|
|
+ trace('hovering-label::',get(hoverstatus));
|
|
|
+ <!-- delayedcall(0.1,
|
|
|
+ txtadd(tooltipname, 'tooltip_', get(name));
|
|
|
+ set_label_pos(get(tooltipname),get(pos));
|
|
|
+ ); -->
|
|
|
+ if(hoverstatus == 0,
|
|
|
+ delayedcall(0.1,
|
|
|
txtadd(tooltipname, 'tooltip_', get(name));
|
|
|
set_label_pos(get(tooltipname),get(pos));
|
|
|
+ );
|
|
|
+ );
|
|
|
+ if(hoverstatus == 1,
|
|
|
+ set(layer[get(tooltipname)].visible,false);
|
|
|
+ );
|
|
|
+ <!-- 2 hover -->
|
|
|
+ if(hoverstatus == 2,
|
|
|
+ trace('测试');
|
|
|
+ set(layer[get(tooltipname)].visible,false);
|
|
|
+ delayedcall(0.1,
|
|
|
+ txtadd(tooltipname, 'tooltip_', get(name));
|
|
|
+ set_label_pos(get(tooltipname),get(pos));
|
|
|
+ set(layer[get(tooltipname)].visible,false);
|
|
|
+ );
|
|
|
+ set(hotspot[get(name)].onhover,txtadd(tooltipname, 'tooltip_', get(name)); set(layer[get(tooltipname)].visible,true););
|
|
|
+ set(hotspot[get(name)].onout,
|
|
|
+ txtadd(tooltipname, 'tooltip_', get(name));
|
|
|
+ set(layer[get(tooltipname)].visible,false);
|
|
|
+ );
|
|
|
);
|
|
|
);
|
|
|
|
|
|
<!-- 个性化标签(3) -->
|
|
|
if(get(hotspottype) == 3,
|
|
|
- trace('add_tooltip_label::',get(lineDirection));
|
|
|
+ if(
|
|
|
+ isShowLine==1,
|
|
|
set(layer[get(tooltipname)].direction,get(lineDirection));
|
|
|
delayedcall(0.2,txtadd(tooltipname, 'tooltip_', get(name)); set_label_dir(get(tooltipname),get(layer[get(tooltipname)].direction),1); );
|
|
|
-
|
|
|
-
|
|
|
+ );
|
|
|
);
|
|
|
copy(layer[get(tooltipname)].html, labelCode);
|
|
|
|
|
@@ -210,10 +250,10 @@
|
|
|
|
|
|
<!-- 个性化标签(3) -->
|
|
|
if(get(hotspottype) == 3,
|
|
|
- <!-- trace('lineDirection3::',lineDirection); -->
|
|
|
- <!-- call(set_label_dir); -->
|
|
|
- set(layer[get(tooldot)].visible,true);
|
|
|
- set_label_dir(get(tooldot),get(lineDirection),2);
|
|
|
+
|
|
|
+ if(isShowLine ==1,set(layer[get(tooldot)].visible,true);set_label_dir(get(tooldot),get(lineDirection),2););
|
|
|
+ if(isShowLine ==0,set(layer[get(tooldot)].visible,false););
|
|
|
+
|
|
|
);
|
|
|
|
|
|
</action>
|