Beiträge von mattk

    hello all,

    I know how to change the image
    in a layer (the layer is named "toggelbutton") when clicking on a
    hotspot (the hotspot is named "spotpoint31"):

    <action name="onclickspotpoint31">
    set(layer[togglebutton].url, %FIRSTXML%/graphics/togglebutton/button_mini_ramp.png);
    </action>

    But how can I change also the link of this new button?

    I tried it like this, without success:
    <action name="onclickspotpoint31">
    set(layer[togglebutton].url, %FIRSTXML%/graphics/togglebutton/button_mini_ramp.png);
    set(layer[togglebutton].mainloadscene(pano22);
    </action>


    thank you!

    Ich habe die Lösung gefunden, um das image im Layer auszutauschen:

    <action name="onclickspotpoint31">
    set(layer[togglebutton].url, %FIRSTXML%/graphics/togglebutton/button_mini_ramp.png);
    </action>

    Allerdings fehlt jetzt noch, diesem neuen image den korrekten Link zuzuweisen. Es geht darum, zwischen 2 Panos hin und her zu wechseln.

    Sollte irgendwie so aussehen:

    <action name="onclickspotpoint30">
    set(layer[togglebutton].url, %FIRSTXML%/graphics/togglebutton/button_aerial_view_grey.png);
    set(layer[togglebutton]. if (xml.scene != pano22,mainloadscene(pano22);
    </action>

    Der Code funktioniert leider nicht, any ideas?

    danke!

    ""hallo,

    Ich habe eine Layer in meiner Tour mit dem Namen "togglebutton".
    Bei einem Klick auf einen Hotspot (spotpoint31) würde ich gerne das verwendete Bild in diesem Layer verändern.
    Ich habe es geschafft, den Layer anzusprechen:

    <action name="onclickspotpoint31">
    tween(plugin[togglebutton].x, 300, 1.0);
    </action>

    Dieser Code verändert allerdings nur die Position des Layers. Wie muss der Code aussehen, der das im Layer verwendete image verändert?
    Ich denke der müsste ungefähr so aussehen:

    <action name="onclickspotpoint30">
    imageurl(plugin[togglebutton]= button_mini_ramp.png);
    </action>

    ...nur mit "ungefähr" kommt man beim Coden leider nicht sehr weit ;)

    Vielen Dank für eure Hilfe!

    I solved this problem. ... although I guess there are more simple ways to do it...

    - thats how I did it:

    Code
    <include url="images_mobile2.xml" />
    <action name="load36">
    loadpano(36_mobile_home_02a.xml,null,KEEPPLUGINS,BLEND(2));
    hide();
    images_mobile2();
    </action>

    It was not possible to call the images_mobile.xml from the "36_mobile_home_02a.xml"
    So the code above is in the main xml file
    The action "images_mobile2();" calls an xml file with this content (adding your images to the thumbbar):

    the "hide();" action hides all the other thumbnail bars (or the thumbnail bar that was opened before):


    hope this helps :)

    hello everybody :)

    I have a Pano Tour with 3 Comboboxes (combobox1, combobox2, combobox3). Each of the Boxes contain different Links. I used the first link of each combobox not as a link but in capital letters as the header of the Box like this:

    HOUSE 1
    house1-link1
    house1-link2
    house1-link3

    HOUSE 2
    house2-link1
    house2-link2
    house2-link3

    HOUSE 3
    house3-link1
    house3-link2
    house3-link3


    When I click now on a link (i.e. "house1-link1") the Combo Box sets the item to "house1-link1" - so far so good.
    But when I click on another link (i.e. "house2-link2") I want the first combobox to be set back to "HOUSE1" while the second combobox shows me
    now the selected "house2-link2"

    I read before this would be possible with selectitems.
    So I wrote in the house2-link2.xml file this code:

    but nothing happens?

    can anybody help please?
    thank you!
    matt

    I tried now also to include it directly like Tuur did it:
    ------------------------------------------------------------------------------------------
    <krpano version="1.0.8" onstart="start();">

    <include url="thumbbar.xml"/>

    <action name="start">

    <!--

    syntax:
    create_thumbbar(numberofimages, align, orientation, x,y, width,height, border);

    numberofimages ... number of images
    align ... position of the imagebar (lefttop,left,leftright,top,center,bottom,righttop,right,bottom)
    orientation ... orientation of the imagebar (h or v)
    x,y ... position offsets
    width,height ... thumbnail imagesize
    border ... border around images

    -->

    create_thumbbar(4, bottom, h, 0, 0, 90,70, 8);
    thumbbar_addimage('images/1.jpg');
    thumbbar_addimage('images/2.jpg');
    thumbbar_addimage('images/3.jpg');
    thumbbar_addimage('images/4.jpg');

    </action>

    ------------------------------------------------------------------------------------------

    but it does not work neither.
    so.. I am still wrong and stupid - may somebody bring enlightment to my brain ? :)

    I just realized that if I use this code in the First Pano of the Tour, it works. But I do need the gallery not in the first Pano of the Tour.

    how do I have to change this code:

    <krpano version="1.0.8" onstart="start();">
    <include url="imagegallery.xml" />

    that it includes the thumbs when the Pano is loaded?

    best regards,
    matt

    dear Klaus,

    I tried to integrate the gallery like Jerzy did here http://sarota.net/panoramy/rover/back/
    http://sarota.net/panoramy/rover/back/index.xml

    but it just not works. I get no error, but it does not show me any thumbnails neither.
    so I tried it like that:

    <krpano version="1.0.8">
    <include url="imagegallery.xml" />

    <view
    hlookat="0"
    vlookat="0"
    fov="65"
    fovmax="60"
    fovmin="10"
    fisheye="0.0"
    fisheyefovlink="0.5"
    limitview="lookat"
    vlookatmin="0"
    vlookatmax="0"
    />

    <preview type="CUBESTRIP" url="03_kreuzung.tiles/preview.jpg" />
    <image type="SPHERE" multires="true" tilesize="1250" baseindex="1">
    <level tiledimagewidth="10000" tiledimageheight="5000" details="20">
    <sphere url="03_kreuzung.tiles/l2_%v_%h.jpg" />
    </level>
    <level tiledimagewidth="5000" tiledimageheight="2500" details="30">
    <sphere url="03_kreuzung.tiles/l1_%v_%h.jpg" />
    </level>
    </image>
    </krpano>


    --------------------------------------------------------------------------------------
    and the _imagegallery.xml looks like that:

    <!--
    krpano 1.0.8
    - a xml driven image gallery example
    - click a small image to view it large
    -->

    <krpano version="1.0.8" onstart="start();">

    <!-- text style for startup text -->
    <textstyle name="infostyle"
    origin="center" edge="center" yoffset="-100" textalign="center" background="false" border="false"
    fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
    showtime="4.0" fadeintime="1.0" fadetime="1.0"
    />


    <!-- include image thumbbar xml script code -->
    <include url="thumbbar.xml" />


    <action name="start">
    showtext('krpano[br]xml image gallery example', infostyle);

    <!--
    syntax:
    create_thumbbar(numberofimages, align, orientation, x,y, width,height, border);

    numberofimages ... number of images
    align ... position of the imagebar (lefttop,left,leftright,top,center,bottom,righttop,right,bottom)
    orientation ... orientation of the imagebar (h or v)
    x,y ... position offsets
    width,height ... thumbnail imagesize
    border ... border around images
    -->
    create_thumbbar(4, left, v, 10,10, 90,60, 6);

    thumbbar_addimage('images/1.jpg');
    thumbbar_addimage('images/2.jpg');
    thumbbar_addimage('images/3.jpg');
    thumbbar_addimage('images/4.jpg');

    </action>
    </krpano>


    As you notice, I just tried it as it is explained on the krpano page - I hope you can help?

    best regards,
    matt

    hallo krpano Gemeinde :)

    Ich habe einen virtuellen Rundgang erstellt mit map-plugin, navi-thumbnail plugin und hots-spots.
    In meiner Tour befinden sich auch 2 Panoramen die nur 180 Grad Aufnahmen sind. Also will ich für diese
    2 Panoramen auch nur einen eingeschränkten Sichtwinkel festlegen.

    in meinem Start xml file der Tour habe ich folgendes stehen:

    <krpano version="1.0.7" onstart="action(load1);">
    <include url="plugins.xml" />

    <view hlookat="0"
    vlookat="0"
    fov="65"
    fovmax="60"
    fovmin="10"
    fisheye="0.0"
    fisheyefovlink="0.5"
    vlookatmin="0"
    vlookatmax="0"
    hlookatmin="0" />

    <!-- hier kommt dann ne Menge Code für das Map Plugin-->

    <!-- Aktionen -->
    <!-- LINKS TO TOURS FOR THUMBS -->
    <action name="loadpano">
    loadpano(%SWFPATH%/%1, null, MERGE, BLEND(1));
    </action>

    <action name="load1">
    action(loadpano, 1.xml);
    </action>
    <!-- ....u.s.w....load2, load3... -->


    <!-- Aktionen für Map Plugin -->

    <action name="startloading">
    set(hotspot.visible,false);
    push(view.fovmin);
    set(view.fovmin,1);
    </action>

    <action name="loadingdone">
    pop(view.fovmin);
    set(hotspot.visible,true);
    </action>

    <action name="lookinterrupt">
    action(loadingdone);
    breakall();
    </action>


    <action name="load1">
    set(plugin[spotx].x,256);
    set(plugin[spotx].y,85);
    set(plugin[radar].x,256);
    set(plugin[radar].y,85);
    loadpano(1.xml,null,KEEPALL,BLEND(2));
    set(plugin[radar].heading,320);
    </action>

    <!-- ....u.s.w....load2, load3... -->


    Jetzt habe ich versucht in das nächste Panorama (also zB in die 2.xml) am Anfang folgendes einzugeben:

    <view hlookat="0"
    vlookat="0"
    fov="65"
    fovmax="80"
    fovmin="10"
    fisheye="0.0"
    fisheyefovlink="0.5"
    vlookatmin="0"
    vlookatmax="90"
    hlookatmin="0" />


    ..eben ein paar Werte verändert. Ich dachte mir, die neu reingeladene xml überschreibt die alten Werte einfach?
    dem ist aber leider nicht so, die alten Werte bleiben erhalten.

    Vielen Dank im Voraus für eure Hilfe!

    mattk