Sie sind nicht angemeldet.

1

Samstag, 19. Juni 2010, 17:51

'remember' pano bw/color for fullscreen

I have the same pano, but one in color and one in b/w. You can change them with a button. They are in a low resolution. When you click on the fullscreen button, the high resolution image loads. But how can krpano 'remember' if the bw or the color one was opened when clicking on the fullscreen or the fullscreen-off-button? Maybe with a variable on each pano (onstart="set(bw,off)" or something), but how can I do that?

Thanks in advance!

2

Sonntag, 20. Juni 2010, 15:13

And another question: how to remember dragmode or qtvrmode or autorotate enabled/disabled when going fullscreen and back (so the buttons are ok)?

3

Montag, 21. Juni 2010, 16:50

Hi,

yes, could use a variable for that,
just set it before or after loading the other pano...
And another question: how to remember dragmode or qtvrmode or autorotate enabled/disabled when going fullscreen and back (so the buttons are ok)?
normally these settings will not change when going fullscreen and back,
but you are saying you are loading a other pano on switching to fullscreen - make sure that all buttons (plugin) that should stay and not be removed or loaded again, have - keep="true" - set,

best regards,
Klaus

4

Dienstag, 22. Juni 2010, 07:06

Zitat

yes, could use a variable for that,
just set it before or after loading the other pano...
set variables - set(varname, value);
and check - if( varname == value, true acion, false action );
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

Dienstag, 22. Juni 2010, 19:26

Thanks, I'll try!

6

Dienstag, 22. Juni 2010, 22:56

normally these settings will not change when going fullscreen and back,
but you are saying you are loading a other pano on switching to fullscreen - make sure that all buttons (plugin) that should stay and not be removed or loaded again, have - keep="true" - set,


Beginners mistake. I'm sorry!
What I want works with this code:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
       <action name="loadNewPano">
           set(filename, 'pano');
           if (bw==1, txtadd(filename, get(filename), '_bw'));
           if (small==1, txtadd(filename, get(filename), '_small'));
           txtadd(filename, get(filename), '.xml');
           loadpano(get(filename), null, KEEPALL, BLEND(1));
       </action> 

       <plugin name="bwoff"
           onclick="set(bw, 0); action(loadNewPano); keep="true">
       </plugin>

       <plugin name="bwon"
           onclick="set(bw, 1); action(loadNewPano); keep="true"
       />


       <plugin name="openfs"
           onclick="set(view.maxpixelzoom, 0); set(fullscreen, true); set(small, 0); action(loadNewPano);" keep="true"
       />

       <plugin name="closefs"
           onclick="set(fullscreen, false); set(small, 1); action(loadNewPano);" keep="true"
       />


And an onstart in every xml which sets small and bw.