我是使用 下面的代码 显示热点的文字的
<action name=”add_all_the_time_tooltip”>
txtadd(tooltipname, ‘tooltip_’, get(name));
addplugin(get(tooltipname));
txtadd(plugin[get(tooltipname)].parent, ‘hotspot[‘, get(name), ‘]’);
set(plugin[get(tooltipname)].url,’%SWFPATH%/plugins/textfield.swf’);
set(plugin[get(tooltipname)].align,bottom);
set(plugin[get(tooltipname)].edge,top);
set(plugin[get(tooltipname)].x,0);
set(plugin[get(tooltipname)].y,0);
set(plugin[get(tooltipname)].autowidth,true);
set(plugin[get(tooltipname)].autoheight,true);
set(plugin[get(tooltipname)].vcenter,true);
set(plugin[get(tooltipname)].background,true);
set(plugin[get(tooltipname)].backgroundcolor,0x000000);
set(plugin[get(tooltipname)].roundedge,32);
set(plugin[get(tooltipname)].backgroundalpha,0.60);
set(plugin[get(tooltipname)].padding,10);
set(plugin[get(tooltipname)].border,false);
set(plugin[get(tooltipname)].glow,0);
set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
set(plugin[get(tooltipname)].css,’text-align:center; color:#FFFFFF; font-family:Arial; font-size:22px;’);
if(device.mobile,set(plugin[get(tooltipname)].css,’text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:22px;’);
set(plugin[get(tooltipname)].y,0););
set(plugin[get(tooltipname)].textshadow,1);
set(plugin[get(tooltipname)].textshadowrange,6.0);
set(plugin[get(tooltipname)].textshadowangle,90);
copy(plugin[get(tooltipname)].html,scene[get(linkedscene)].title);
set(plugin[get(tooltipname)].enabled,false);
</action>
热点style如下
<style name=”skin_hotspotstyle1″ url=”1.png” scale=”0.4″ edge=”top” distorted=”true”
tooltip=””
linkedscene=””
linkedscene_lookat=””
onclick=”if(linkedscene, skin_hidetooltips(); tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5); looktohotspot(); loadscene(get(linkedscene),null,get(skin_settings.loadscene_flags),get(skin_settings.loadscene_blend)); skin_updatescroll(); );”
onloaded=”do_crop_animation(120,87, 6);add_all_the_time_tooltip();”
/>
此种设置后 热点
本身可以响应鼠标点击,但文字不可以
请问该如何处理?
<action name="add_all_the_time_tooltip_for_VR">
txtadd(tooltipname, 'vrtooltip_', get(name));
addhotspot(get(tooltipname));
set(hotspot[get(tooltipname)],
type=text,
edge=get(hotspot[get(name)].edge),
distorted=get(hotspot[get(name)].distorted),
ath=get(hotspot[get(name)].ath),
atv=get(hotspot[get(name)].atv),
oy=-50,
ox=0,
vcenter=true,
padding=10,
mipmapping=true,
oversampling=2,
bg=true,
bgcolor=0x000000,
bgroundedge=5,
bgalpha=0.65,
bgborder=0,
bgshadow='0 0 0 0x000000 0',
css=calc(device.mobile ? 'text-align:center; color:#FFFFFF; font-family:MicrosoftYahei; font-weight:bold; font-size:24px;':'text-align:left; color:#FFFFFF; font-family:MicrosoftYahei; font-size:24px;'),
txtshadow='0 0 0 0x000000 0';
enabled=true,
);
txtadd(hotspot[get(tooltipname)].onclick,'callwith(hotspot[',get(name),'],onclick)');
if(text == '' OR text === null, copy(hotspot[get(tooltipname)].html,scene[get(linkedscene)].title),
copy(hotspot[get(tooltipname)].html,text); );
if(lp_running == false,
set(hotspot[get(tooltipname)].visible,true);
,
if(!webvr.isenabled,
if(lp_running == true,
set(hotspot[get(tooltipname)].visible,false);
set(hotspot[get(tooltipname)].mark2,true);
);
);
);
if(hotspot[get(name)].normal == false, set(hotspot[get(tooltipname)].normal,false);
set(hotspot[get(tooltipname)].onloaded,
if(webvr.isenabled,
set(visible,false);
,
if(lp_running == false OR lp_running == null OR lp_running === null,
set(visible,true);
);
);
); );
</action>
楼主你最后实现了吗?求教
我怎么添加不上文字