Hallo zusammen,
habe mir in meinem Pano Polygon-Hotspots eingepflegt. Zur Veranschaulichung würde ich gerne mittels eines Buttons alle verfügbaren Buttons anzeigen lassen. Ein erneutes Drücken blendet sie wieder aus - das Überfahren mit der Maus lässt jeden einzelnen dann wieder erscheinen.
Momentan sieht meine Buttonleiste so aus. Hier soll die Hotspot-Funktion mit rein:
Code
<!-- Navigations-Buttons Start -->
<events onenterfullscreen="set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);"
onexitfullscreen ="set(plugin[openfs].visible,true); set(plugin[closefs].visible,false);"
/>
<textstyle name="buttonstyle" font="Vendana" fontsize="10" border="false" background="false" textcolor="0xFFFFFF" effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);" />
<plugin name="left" align="bottom" x="-65" y="10" url="%SWFPATH%/skin/buttons.jpg"
visible="true" keep="true" alpha="0" scale="0.7" crop= "0|0|40|40" onovercrop= "0|40|40|40" ondowncrop= "0|80|40|40" blendmode="screen" ondown="set(movevectorx,-1);"
onup="set(movevectorx,0);" />
<plugin name="right" align="bottom" x="-35" y="10" url="%SWFPATH%/skin/buttons.jpg"
visible="true" keep="true" alpha="0" scale="0.7" crop= "40|0|40|40" onovercrop= "40|40|40|40" ondowncrop= "40|80|40|40" blendmode="screen" ondown="set(movevectorx,+1);"
onup="set(movevectorx,0);" />
<plugin name="openfs" align="bottom" x="-5" y="10" url="%SWFPATH%/skin/buttons.jpg"
visible="true" keep="true" alpha="0" scale="0.7" crop="280|0|40|40" onovercrop="280|40|40|40" ondowncrop="280|80|40|40" blendmode="screen" onhover="showtext(Vollbild, buttonstyle);" onclick="set(fullscreen,true);" visible="true" />
<plugin name="closefs" align="bottom" x="-5" y="10" url="%SWFPATH%/skin/buttons.jpg"
visible="true" keep="true" alpha="0" scale="0.7" crop="320|0|40|40" onovercrop="320|40|40|40" ondowncrop="320|80|40|40" blendmode="screen" onhover="showtext(Vollbild beenden,buttonstyle);"
onclick="set(fullscreen,false);" visible="false" />
<action name="startrotation">
if(plugin[rotation].rotationenabled, set(autorotate.enabled,true) );
</action>
<action name="stoprotation">
set(autorotate.enabled,false);
</action>
<action name="changerotation">
<!-- bei jedem Klick umschalten: -->
switch(plugin[rotation].rotationenabled);
<!-- die aktuelle Einstellung auch nach autorotate.enabled kopieren: -->
copy(autorotate.enabled, plugin[rotation].rotationenabled);
</action>
<!-- Navigations-Buttons Ende -->
Display More
und hier ein exemplarischer Hotspot: - es gibt noch 10 weitere....
Code
<hotspot name="hs0"
keep="false"
visible="true" enabled="true" handcursor="true" capture="true" children="true"
zorder="0"
fillcolor ="0xffffff" fillalpha ="0.00" borderwidth ="0.0" bordercolor ="0xffffff" borderalpha ="0.00"
fillcolorhover="0xffffff" fillalphahover="0.10" borderwidthhover="4.0" bordercolorhover="0xffffff" borderalphahover="0.80"
fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
onover=""
onhover="showtext(1);"
onout=""
ondown=""
onup=""
onclick="action(showtextfield, textfield_hs0);"
details="8"
flying="0"
inverserotation="false"
>
<point ath="-70.0579" atv=" 2.8071" />
<point ath="-69.9662" atv=" 20.6583" />
<point ath="-65.0333" atv=" 21.2230" />
<point ath="-65.0790" atv=" 2.6720" />
</hotspot>
Display More
ich habe schon verucht, die "borderalpha" des hotspots auf 1.0 zu setzen, jedoch scheint die Syntax nicht richtig zu sein. Hier mal mein Ansatz:
Code
<plugin name="hotspots_visible" align="bottom" x="..." y="..." url="..."
visible="true" keep="true" alpha="0" scale="0.7" crop="..." onovercrop="..." ondowncrop="..." blendmode="screen" onhover="showtext(alle hotspots einblenden,buttonstyle);"
onclick="set([hotspot].borderalpha, 1.0);" visible="true" />
Hat jemand einen Tip?
Gruß
Matthias