Sie sind nicht angemeldet.

1

Montag, 4. Februar 2013, 10:24

Onhover/Showtext problem

There be a problem (maybe a bug) with ONHOVER/SHOWTEXT functions.

If I make a button (layer/plugin) that open a new pano and:
- this button have Onhover function that use Showtext to display shorter and simple text
- this button stay in the new pano (keep = true)
If the cursor remain on the button until the loading of the new pano is started then the text (set with previous Onhover funtion) remain visible even i click and move the pano. Then, when I move che cursor upon a layer with a Showtext function, the previous text disappear and it show new text.

2

Dienstag, 5. Februar 2013, 17:42

Hi,

are you using the latest krpano version?

Best regards,
Klaus

3

Mittwoch, 6. Februar 2013, 10:02

I have the same problem. But I thought it´s because I set the hotspots parent to "parent=stage" (see belows example code). The onhover-text stays visible if the mouse cursor is moved away from the hotspot while the loading is still in progress. If the mouse is´nt moved until it´s finished, everything is fine. And the onhover-text only disappears if I move the mouse over another hotspot. Very annoying problem *unsure*

Best regards
Nupsi

addplugin(carrier);
set(plugin[carrier].url,skin/blank.png);
set(plugin[carrier].parent,STAGE);
set(plugin[carrier].width,440);
set(plugin[carrier].height,410);
set(plugin[carrier].x,5);
set(plugin[carrier].y,5);
set(plugin[carrier].handcursor,false);
set(plugin[carrier].align,topright);
set(plugin[carrier].edge,topright);
set(plugin[carrier].zorder,9);
set(plugin[carrier].keep,true);

addplugin(chs1);
set(plugin[chs1].url,skin/chs1.png);
set(plugin[chs1].parent,carrier);
set(plugin[chs1].align,topleft);
set(plugin[chs1].x,49);
set(plugin[chs1].y,342);
set(plugin[chs1].edge,center);
set(plugin[chs1].enabled,true);
set(plugin[chs1].onhover,showtext(Mailand,tooltip));
set(plugin[chs1].onclick,pano_autoload(10));
set(plugin[chs1].keep,true);

4

Mittwoch, 6. Februar 2013, 19:03

Klaus: yes, i use version 1.0.8.16

My layer is not parent or child object.

5

Dienstag, 19. Februar 2013, 15:11

Hi,
Klaus: yes, i use version 1.0.8.16
there is no 1.0.8.16... ;-)

Btw - sorry, I'm not able to reproduce the problem... I have now tried several ways to find an example that shows your described behavior but haven't found one...

Can you please provide an example where this problem can be seen?
Then I will fix it of course!

Best regards,
Klaus

riefa

Anfänger

Beiträge: 25

Wohnort: Jakarta, Indonesia

Beruf: VR Photographer

  • Nachricht senden

6

Montag, 1. Juli 2013, 06:43

I also have a problem with the onhover showtext. I am using krpano 1.16.4, just download it yesterday.

It doesn't show when I hover the text on the hotspot.

You can see the pano with the above problem I describe above, here.

I use these for all hotspots in the tour:

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
<textstyle name="hotspottext"
           font="Tahoma"
           fontsize="15"
           bold="true"
           italic="false"
           textcolor="16777215"
           background="false"
           backgroundcolor="16777215"
           border="false"
           bordercolor="0" 
	   alpha="1"
           blendmode="normal"
           effect="glow(0x000000);"
           origin="cursor"
           edge="bottom"
           textalign="center"
           xoffset="0"
           yoffset="-3"
           noclip="true"
           showtime="0.1"
           fadetime="0"
           fadeintime="0" 
        />	
<hotspot name="spot1" style="skin_hotspotstyle" ath="-179.305" atv="-1.446" linkedscene="scene_mpl001" onhover="showtext(Outdoor Area,hotspottext)" />


If anyone can show me where is the error, would be much appreciated :)

Note: I am a total newbie on coding stuffs :D

Thank you.
Cheers,
Riefa Istamar
www.idVR360.com

7

Montag, 1. Juli 2013, 16:52

Your problem is here:
- You are defining onhover action in your hotspot which is not needed. It is already defined in your style (skin_hotspotstyle) associated to this hotspot. You can find how it is defined in your vtourskin.xml
There you have:
onhover="if(skin_settings.tooltips_hotspots, if(linkedscene, showtext(get(scene[get(linkedscene)].title),SKIN_TOOLTIPS)) );"

That mean you will show it first if skin_settings.tooltips_hotspot is true. In your case it is not.
In same file you have definition
<skin_settings...
tooltips_hotspots="false"

Change it to true.
If still not woking than you have to adapt the code to:
onhover="if(skin_settings.tooltips_hotspots, ifnot(linkedscene=='null',showtext(get(scene[get(linkedscene)].title),SKIN_TOOLTIPS)) );"

riefa

Anfänger

Beiträge: 25

Wohnort: Jakarta, Indonesia

Beruf: VR Photographer

  • Nachricht senden

8

Montag, 1. Juli 2013, 20:17

Umalo, thank you!

Problem solved ;)
Cheers,
Riefa Istamar
www.idVR360.com