Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Donnerstag, 16. Oktober 2014, 10:47

Toggle button state in tour

Hi - I've got a series of 10 scenes in my tour, and the only button I have on the interface is a gyro button.

When creating a single panorama, I can easily show/hide 2 image layers to mimic the on/off states of the button.

I'm having a lot of trouble trying to achieve the same thing with the output from the pano tour droplet.

The button action works, but I can't fathom how to toggle the button states/set layers within the pano scene XML. 90% of he generated code isn't applicable for my task in this instance, but I can't successfully extract the bits I need to simple toggle the image button states

All help greatly appreciated - i'm sure it's very simple once you know how!

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

2

Donnerstag, 16. Oktober 2014, 16:36

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
<action name="turn_off_gyro">
set(layer[button].onclick,turn_on_gyo());
set(layer[button].crop,newscropvalues|newscropvalues|newscropvalues|newscropvalues|);
set(layer[button].url,newurl);

</action>

<action name="turn_on_gyro">
set(layer[button].onclick,turn_off_gyo());
set(layer[button].crop,newscropvalues|newscropvalues|newscropvalues|newscropvalues|);
set(layer[button].url,newurl);
</action>


Using either crop for a url sprite or just a new image.
Adding other code in there to turn on and off the gyro.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour