Hello friends!
there is a problem with the display of bordercolor polygonal hotspot
if I change the bordercolor to blue 0x0000ff or green 0x00ff00 - everything is fine
If you change the border color to red 0xff0000 - the border turns green
Code
<krpano version="1.18" onstart="">
<events name="repaint" keep="true" onxmlcomplete="lookto(0,40);delayedcall(0.5,for(set(i,1),i LE 4,inc(i),repaint_hotspots(get(i))));showlog(true); " />
<action name="repaint_hotspots"> if(hotspot[plan%1].color LT 2, set(hotspot[plan%1].bordercolor,"0x00ff00");set(hotspot[plan%1].bordercolorhover,0x00ff00); trace(%0,' ',%1,' ',hotspot[plan%1].color,' ',hotspot[plan%1].bordercolor,' ',green); , if(hotspot[plan%1].color == 2, set(hotspot[plan%1].bordercolor,"0x0000ff");set(hotspot[plan%1].bordercolorhover,0x0000ff); trace(%0,' ',%1,' ',hotspot[plan%1].color,' ',hotspot[plan%1].bordercolor,' ',blue); , if(hotspot[plan%1].color GT 2, set(hotspot[plan%1].bordercolor,"0xff000");set(hotspot[plan%1].bordercolorhover,0xff000); trace(%0,' ',%1,' ',hotspot[plan%1].color,' ',hotspot[plan%1].bordercolor,' ',red); ))); </action>
<hotspot name="plan1" style="plan" bordercolor="0xaaaaaa" bordercolorhover="0xaaaaaa" borderalpha="0.80" borderalphahover="1" color="1" > <point ath="-49.5918" atv=" 51.6482" /> ... <point ath="-48.4209" atv=" 52.3177" /></hotspot>
<hotspot name="plan2" style="plan" bordercolor="0xaaaaaa" bordercolorhover="0xaaaaaa" borderalpha="0.80" borderalphahover="1" color="2" > <point ath="-24.4786" atv=" 39.5113" /> ... <point ath="-26.3703" atv=" 39.3640" /> </hotspot>
<hotspot name="plan3" style="plan" bordercolor="0xaaaaaa" bordercolorhover="0xaaaaaa" borderalpha="0.80" borderalphahover="1" color="3" > <point ath=" 4.8678" atv=" 43.1928" /> ... <point ath=" 4.9435" atv=" 44.4373" /> </hotspot>
<hotspot name="plan4" style="plan" bordercolor="0xaaaaaa" bordercolorhover="0xaaaaaa" borderalpha="0.80" borderalphahover="1" color="1" > <point ath=" 31.9371" atv=" 60.0542" /> ... <point ath=" 33.6971" atv=" 59.5543" /> </hotspot>
<style name="plan" devices="all" keep="true" visible="true" enabled="true" usecontentsize="false" handcursor="true" capture="false" children="true" maskchildren="false" zorder="99" fillcolor ="0xffffff" fillalpha ="0.00" borderwidth ="4.0" fillcolorhover="0xffffff" fillalphahover="0.10" borderwidthhover="4.0" fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700" onover="txtadd(text,get(),bordercolor=,get(bordercolor))" onhover="showtext(get(text),infostyle_fast);" onout="" ondown="" onup="" onclick="" bgalpha="0" bgcapture="false" bgcolor="0" type="image" />
...
<preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" details="16" />
</krpano>
Display More
example laid out here - #mce_temp_url#
Thanks for your advice - what am I doing wrong?