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

Mittwoch, 19. Juni 2013, 23:33

"BACK" button

It might sound stoopid! this is a request from an older client Is there a way to add a "back button" When pressed it goes back to the last scene viewed. I create virtual tours with a lot of scenes, the last was 180 scenes! Sometimes people get lost or press the wrong button...

Any help would be great!

2

Donnerstag, 20. Juni 2013, 14:28

Hi!
Yes it's possible
store current scene name in some variable when load new/next scene
for example
you have hotspot with onclick="loadscene(somescene);"
then do so
onclick="copy(prevscene,xml.scene);loadscene(somescene);"
and in backbutton onclick="loadscene(get(prevscene));"
That's all

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

3

Freitag, 21. Juni 2013, 00:32

HI Andrey!

thats a great tip, thank you!

Although I would prefer something that is more global. Each scene may have between 2-13 hotspots, so to add the code for all of them for 100+scene projects would be too laborious...

but thanks for your answer!

Rich

4

Freitag, 21. Juni 2013, 10:04

Hi!
You can use some additional action
for example:

action name="hsOnclick"
copy(prevscene,xml.scene);
loadscene(%1);
/action

and in hotspot

onclick="hsOnclick(somescene1);"

or
style name="hsStyle" ..... onclick="hsOnclick(get(linkedscene));"
and
hotspot name="hs2" style="hsStyle" .... linkedscene="somescene1" .... /
hotspot name="hs3" style="hsStyle" .... linkedscene="somescene2" .... /

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

5

Samstag, 22. Juni 2013, 01:21

Andrey...

Thats clever!

Thank you!

6

Sonntag, 6. Juni 2021, 19:39

just another hint

Just want to add (to this pretty old thread) that with the event onremovepano this variable can be written as well.

Quellcode

1
<events onremovepano="set(global, prevscene:string=calc(xml.scene), placeholder:boolean=true);" />



This will save the scene name to "prevscene" before the scene changes.