You are not logged in.

1

Sunday, October 30th 2016, 10:28pm

Builtin function showing users to use both keyboard and mouse?

Dear krpano enthusiasts,

Asking around to random users of my website, I've realized that not all of them understand that they can use the keyboard arrows to move inside the pano.

Therefore, I'm wondering whether in krpano there is some builtin function that somehow shows users that they can use both the keyboard and the mouse to see the pano.

Thanks

2

Tuesday, November 1st 2016, 3:03pm

Hi,

the krpano viewer doesn't have ANY build-in UI - that's always all custom defined the xml.

E.g. just use a <layer> to show an instructions image and hide it on click:

Source code

1
<layer name="intro" keep="true" url="intro.png" align="center" onclick="removelayer(intro);" />

or a bit refined with fading out:

Source code

1
<layer name="intro" keep="true" url="intro.png" align="center" onclick="set(enabled,false);tween(alpha,0,0.5,default,removelayer(intro));" />


Best regards,
Klaus