Krpano_全景添加自動添加熱點文字

<!-- 將此部分代碼複製到xml中 -->      
 <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,top);
    set(plugin[get(tooltipname)].edge,bottom);
    set(plugin[get(tooltipname)].x,0);
    set(plugin[get(tooltipname)].y,0);
    set(plugin[get(tooltipname)].width,180);
    set(plugin[get(tooltipname)].autoheight,true);
    set(plugin[get(tooltipname)].background,true);
 set(plugin[get(tooltipname)].backgroundcolor,0x000000);
 set(plugin[get(tooltipname)].roundedge,10);
 set(plugin[get(tooltipname)].backgroundalpha,0.5);
    set(plugin[get(tooltipname)].border,true);
set(plugin[get(tooltipname)].glow,4);
set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
    set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:20px;');
    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>

 <action name="add_tooltip2">
    txtadd(tooltipname, 'tooltip_', get(name));
    addhotspot(get(tooltipname));
  
    set(hotspot[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
    set(hotspot[get(tooltipname)].align,bottom);
    set(hotspot[get(tooltipname)].edge,top);
set(hotspot[get(tooltipname)].distorted,true);
    set(hotspot[get(tooltipname)].ath,get(ath));
    set(hotspot[get(tooltipname)].atv,get(atv));
 set(hotspot[get(tooltipname)].oy,50);
    set(hotspot[get(tooltipname)].width,180);
    set(hotspot[get(tooltipname)].autoheight,true);
    set(hotspot[get(tooltipname)].background,false);
 set(hotspot[get(tooltipname)].backgroundcolor,0x000000);
 set(hotspot[get(tooltipname)].roundedge,10);
 set(hotspot[get(tooltipname)].backgroundalpha,0.5);
    set(hotspot[get(tooltipname)].border,false);
set(hotspot[get(tooltipname)].glow,4);
set(hotspot[get(tooltipname)].glowcolor,0xFFFFFF);
    set(hotspot[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:20px;');
    set(hotspot[get(tooltipname)].textshadow,1);
    set(hotspot[get(tooltipname)].textshadowrange,6.0);
    set(hotspot[get(tooltipname)].textshadowangle,90);
    copy(hotspot[get(tooltipname)].html,scene[get(linkedscene)].title);
    set(hotspot[get(tooltipname)].enabled,false);

</action>

<!-- 在需要顯示文字的熱點onloaded裏添加 if(distorted,add_tooltip2(get(linkedscene),1),add_all_the_time_tooltip(get(linkedscene),1)) -->

<hotspot onloaded="if(distorted,add_tooltip2(get(linkedscene),1),add_all_the_time_tooltip(get(linkedscene),1))"

 

參考學習網站:

https://victu360.com/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章