my xml.xml file contains
<contextmenu fullscreen="false">
<item name="item1"
caption="About the Panorama..."
onclick="action(show_pano_info);"
/>
<item name="item2"
caption="The Photographer"
onclick="openurl(
http://www.san-deep.tv);"
/>
<item name="item3"
caption="About this Hotspot..."
enabled="false"
/>
<item name="item4"
separator="true"
caption="Normal Projection"
onclick="set(view.fisheye,0);
set(view.architectural,0);
set(update,view);"
/>
<item name="item5"
caption="Fisheye Projection"
onclick="set(view.fisheye,0.35);
set(view.architectural,0);
set(update,view);"
/>
<item name="item6"
caption="Architectural Projection"
onclick="set(view.fisheye,0.0);
set(view.architectural,1.0);
set(update,view);"
/>
<item name="item7"
separator="true"
caption="KRPANO"
/>
</contextmenu>
and my context.xml contains
<krpano>
-
<!--
global settings for all krpano.com example panoramas
-->
<display movequality="LOW" stillquality="HIGHSHARP"/>
<!-- mouse cursor -->
<control movetocursor="arrow"/>
<!-- set DEFAULT showtext style -->
<textstyle name="DEFAULT" font="Arial" fontsize="12" yoffset="-10" textalign="center" border="false" background="false" textcolor="0xFFFFFF" effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);"/>
<!--
right-click context menu to change the viewing settings
-->
-
<contextmenu>
<item caption="KRPANO"/>
<item caption="FULLSCREEN"/>
<item caption="normal view" onclick="action(rectview);" separator="true"/>
<item caption="fisheye view" onclick="action(fisheyeview);"/>
<item caption="architectural view" onclick="action(architectural);"/>
<item caption="stereographic view" onclick="action(stereofisheyeview);"/>
<item caption="little planet view" onclick="action(littleplanet);"/>
</contextmenu>
<!-- actions for view changing -->
-
<action name="rectview">
tween(view.fovmax, 155.0, distance(179, 0.25), easeoutquad);
tween(view.architectural, 0.0, distance(1.0, 0.25), easeoutquad);
tween(view.fisheye, 0.0, distance(1.0, 0.25), easeoutquad, set(view.stereographic,false); );
</action>
-
<action name="fisheyeview">
tween(view.architectural, 0.0, distance(1.0, 0.25), easeoutquad);
tween(view.fisheye, 0.0 ,distance(1.0, 0.20), easeoutquad,
set(view.stereographic,false);
set(view.fovmax,179);
tween(view.fisheye, 0.35, distance(1.0, 1.25));
);
</action>
-
<action name="stereofisheyeview">
tween(view.architectural, 0.0, distance(1.0, 0.25), easeoutquad);
tween(view.fisheye, 0.0 ,distance(1.0, 0.10), easeoutquad,
set(view.stereographic,true);
tween(view.fisheye, 1.0, distance(1.0, 1.25));
tween(view.fovmax, 150, distance(179, 1.25));
);
</action>
-
<action name="littleplanet">
tween(view.architectural, 0.0, distance(1.0, 0.25), easeoutquad);
tween(view.fisheye, 0.0 ,distance(1.0, 0.10), easeoutquad,
set(view.stereographic,true);
tween(view.fisheye, 1.0, distance(1.0, 0.75));
tween(view.fov, 130, distance(179, 0.75), easeoutquad, set(view.fovmax,150););
tween(view.vlookat, 90, distance(179, 0.75), easeoutquad);
);
</action>
-
<action name="architectural">
tween(view.fovmax, 155.0, distance(179, 0.25), easeoutquad);
tween(view.architectural, 1.0, distance(1.0, 0.25), easeoutquad);
tween(view.fisheye, 0.0, distance(1.0, 0.25), easeoutquad, set(view.stereographic,false); );
</action>
</krpano>
Is this right?
I still don't see my contextmenu