• I want to take some items out of the the right click menu but everytime I create a pano its allways visible,I have edited the default file

    see below

    <krpano version="1.0.8"[PARTIALPANO]>

    <include url="skin/defaultskin.xml" />

    <view hlookat="0" vlookat="0" maxpixelzoom="1.0" [VIEWLIMITS]/>
    <display details="22" />

    [PREVIEW]

    [IMAGE]
    <view hlookat ="364.799297"
    vlookat ="0.000006"
    camroll ="0.000000"
    fovtype ="VFOV"
    fov ="90.000000"
    fovmin ="0.698100"
    fovmax ="90.000000"
    maxpixelzoom ="2.000000"
    limitfov ="true"
    fisheye ="0.00"
    fisheyefovlink="0.50"
    stereographic ="false"
    pannini ="false"
    architectural ="0.0"
    architecturalonlymiddle="false"
    limitview ="lookat"
    hlookatmin ="NaN"
    hlookatmax ="NaN"
    vlookatmin ="0"
    vlookatmax ="0"
    />

    <control usercontrol ="all"
    mousetype ="moveto"
    zoomtocursor ="false"
    zoomoutcursor ="true"
    mouseaccelerate="1.00"
    mousespeed ="10.00"
    mousefriction ="0.80"
    headswing ="0.00"
    keybaccelerate ="0.50"
    keybspeed ="10.00"
    keybfriction ="0.90"
    keybinvert ="false"
    mousefovchange ="1.00"
    keybfovchange ="0.75"
    fovspeed ="3.00"
    fovfriction ="0.90"
    movetocursor ="none"
    cursorsize ="10.0"
    keycodesleft ="37"
    keycodesright ="39"
    keycodesup ="38"
    keycodesdown ="40"
    keycodesin ="16,65,107"
    keycodesout ="17,89,90,109"
    />


    <autorotate enabled ="true"
    waittime="1.5"
    accel ="1"
    speed ="10"
    horizon ="0"
    tofov ="NaN"
    />

    <textstyle name="default" font="Times" fontsize="12" bold="true" italic="false"
    textcolor="0" background="true" backgroundcolor="16777215" border="true" bordercolor="0"
    alpha="1" blendmode="normal" effect=""
    origin="cursor" edge="bottom" textalign="none" xoffset="0" yoffset="-3" noclip="true" showtime="0.1" fadetime="0" fadeintime="0"
    />
    <textstyle name="buttonstyle" font="Arial" fontsize="10" bold="true" italic="false"
    textcolor="16777215" background="false" backgroundcolor="16777215" border="false" bordercolor="0"
    alpha="1" blendmode="normal" effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);"
    origin="cursor" edge="bottom" textalign="none" xoffset="0" yoffset="-3" noclip="true" showtime="0.1" fadetime="0" fadeintime="0"
    />

    <action name="dragcursor">
    set(plugin[dragmode].visible, false);
    set(plugin[movemode].visible, true);
    set(control.mousetype, drag2D);
    set(cursors.url, %SWFPATH%/skin/drag-cursors.png);
    set(cursors.type, drag);
    set(cursors.move, 2|0|30|32);
    set(cursors.drag, 37|0|30|32);
    </action>

    <action name="qtvrcursor">
    set(plugin[dragmode].visible, true);
    set(plugin[movemode].visible, false);
    set(control.mousetype, moveto);
    set(cursors.url, %SWFPATH%/skin/qtvr-cursors.png);
    set(cursors.type, 8way);
    set(cursors.move, 0|0|16|16);
    set(cursors.drag, 16|0|16|16);
    set(cursors.arrow_u, 32|0|16|16);
    set(cursors.arrow_d, 48|0|16|16);
    set(cursors.arrow_l, 64|0|16|16);
    set(cursors.arrow_r, 80|0|16|16);
    set(cursors.arrow_lu, 96|0|16|16);
    set(cursors.arrow_ru, 112|0|16|16);
    set(cursors.arrow_rd, 128|0|16|16);
    set(cursors.arrow_ld, 144|0|16|16);
    </action>


    <action name="setuppano">
    action(qtvrcursor);
    if(ispartialpano === true, set(showviewitems,false), set(showviewitems,true));
    set(contextmenu.item[2].visible, get(showviewitems));
    set(contextmenu.item[3].visible, get(showviewitems));
    set(contextmenu.item[4].visible, get(showviewitems));
    set(contextmenu.item[5].visible, get(showviewitems));
    set(contextmenu.item[6].visible, get(showviewitems));
    set(contextmenu.item[7].visible, get(showviewitems));
    </action>



    <plugin name="in"
    url="skin/%SWFPATH%/skin/buttons.png"
    keep="false" preload="false"
    visible="true" enabled="true" handcursor="true" capture="true" children="true"
    zorder="0"
    alpha="1.00" blendmode="normal"
    smoothing="true"
    align="bottom" edge=""
    x="-160" y="10" ox="" oy=""
    width="40" height="40"
    crop="160|0|40|40" ondowncrop="160|80|40|40" onovercrop="160|40|40|40"
    scale="1" scale9grid="" scalechildren="false"
    rotate="0"
    parent=""
    mask=""
    onloaded=""
    onover=""
    onhover=""
    onout=""
    ondown="set(movevectorz,-1);"
    onup="set(movevectorz,0);"
    onclick=""
    effect=""
    usecontentsize="false"
    />

    <plugin name="out"
    url="skin/%SWFPATH%/skin/buttons.png"
    keep="false" preload="false"
    visible="true" enabled="true" handcursor="true" capture="true" children="true"
    zorder="0"
    alpha="1.00" blendmode="normal"
    smoothing="true"
    align="bottom" edge=""
    x="-120" y="10" ox="" oy=""
    width="40" height="40"
    crop="200|0|40|40" ondowncrop="200|80|40|40" onovercrop="200|40|40|40"
    scale="1" scale9grid="" scalechildren="false"
    rotate="0"
    parent=""
    mask=""
    onloaded=""
    onover=""
    onhover=""
    onout=""
    ondown="set(movevectorz,+1);"
    onup="set(movevectorz,0);"
    onclick=""
    effect=""
    usecontentsize="false"
    />

    <plugin name="left"
    url="skin/%SWFPATH%/skin/buttons.png"
    keep="false" preload="false"
    visible="true" enabled="true" handcursor="true" capture="true" children="true"
    zorder="0"
    alpha="1.00" blendmode="normal"
    smoothing="true"
    align="bottom" edge=""
    x="-80" y="10" ox="" oy=""
    width="40" height="40"
    crop="0|0|40|40" ondowncrop="0|80|40|40" onovercrop="0|40|40|40"
    scale="1" scale9grid="" scalechildren="false"
    rotate="0"
    parent=""
    mask=""
    onloaded=""
    onover=""
    onhover=""
    onout=""
    ondown="set(movevectorx,-1);"
    onup="set(movevectorx,0);"
    onclick=""
    effect=""
    usecontentsize="false"
    />

    <plugin name="right"
    url="skin/%SWFPATH%/skin/buttons.png"
    keep="false" preload="false"
    visible="true" enabled="true" handcursor="true" capture="true" children="true"
    zorder="0"
    alpha="1.00" blendmode="normal"
    smoothing="true"
    align="bottom" edge=""
    x="-40" y="10" ox="" oy=""
    width="40" height="40"
    crop="40|0|40|40" ondowncrop="40|80|40|40" onovercrop="40|40|40|40"
    scale="1" scale9grid="" scalechildren="false"
    rotate="0"
    parent=""
    mask=""
    onloaded=""
    onover=""
    onhover=""
    onout=""
    ondown="set(movevectorx,+1);"
    onup="set(movevectorx,0);"
    onclick=""
    effect=""
    usecontentsize="false"
    />



    <plugin name="openfs"
    url="skin/%SWFPATH%/skin/buttons.png"
    keep="false" preload="false"
    visible="true" enabled="true" handcursor="true" capture="true" children="true"
    zorder="0"
    alpha="1.00" blendmode="normal"
    smoothing="true"
    align="bottom" edge=""
    x="+160" y="10" ox="" oy=""
    width="40" height="40"
    crop="280|0|40|40" ondowncrop="280|80|40|40" onovercrop="280|40|40|40"
    scale="1" scale9grid="" scalechildren="false"
    rotate="0"
    parent=""
    mask=""
    onloaded=""
    onover=""
    onhover="showtext(Fullscreen, buttonstyle);"
    onout=""
    ondown=""
    onup=""
    onclick="set(fullscreen,true);"
    effect=""
    usecontentsize="false"
    />

    <plugin name="closefs"
    url="skin/%SWFPATH%/skin/buttons.png"
    keep="false" preload="false"
    visible="false" enabled="true" handcursor="true" capture="true" children="true"
    zorder="0"
    alpha="1.00" blendmode="normal"
    smoothing="true"
    align="bottom" edge=""
    x="+160" y="10" ox="" oy=""
    width="40" height="40"
    crop="320|0|40|40" ondowncrop="320|80|40|40" onovercrop="320|40|40|40"
    scale="1" scale9grid="" scalechildren="false"
    rotate="0"
    parent=""
    mask=""
    onloaded=""
    onover=""
    onhover="showtext(Exit Fullscreen,buttonstyle);"
    onout=""
    ondown=""
    onup=""
    onclick="set(fullscreen,false);"
    effect=""
    usecontentsize="false"
    />


    </krpano>

  • He Tim,

    try to put this in somewhere..


    cheers

    Tuur *thumbsup*

  • *g* sorry that should be:

    Code
    <item name="n8" enabled="true" visible="true" separator="true"
    					  caption="More about NL360.nl"
    					  onclick="openurl(http://www.holland360.com,_top);"
    					  />


    *g*

  • Lol I know he wouldent have done that for extra biz


    I am trying to make a single flash file thats where the problem is,so does it mean that I have to use krprotect or is the default xml file used for the single flash file,if not can we also have a single flash default xml file that we can edit.

  • I took the view options out of the skin xml file


    <contextmenu>
    <item caption="" />
    <item caption="FULLSCREEN" />
    <item caption="normal view" onclick="action(view_normal);" separator="true" />

    </contextmenu>


    then added to the default.xml file in templates

    <contextmenu fullscreen="true">
    <item name="n1" enabled="true" visible="true" separator="false"
    caption="FULLSCREEN"
    onclick=""
    />
    <item name="n7" enabled="true" visible="true" separator="true"
    caption="Suncamp.nl"
    onclick="openurl(http://www.tim2420.com,_top);"
    />



    <item name="n8" enabled="true" visible="true" separator="true"
    caption="More about VIRTUAL TUUR"
    onclick="openurl(http://www.virtualtuur.com,_top);"
    />


    </contextmenu>

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!