Well, to do that you'll have to decide which way you go.
1) Replace the Flash Showtext() for thumbs by the universal thumb Tooltip for both Flash and Html5 (it's better way, as I see it).
2) Or, alternatively, have Showtext thumbs tooltips for Flash and Tooltips using Textfield for html5.
I'd take the first way.
The basic Vtourskin.xml has the 'skin_addthumbs' action. Inside it, there's a line
|
Quellcode
|
1
|
set(layer[get(thumbname)].onhover, showtext(get(scene[get(linkedscene)].title),SKIN_TOOLTIPS); );
|
Replace it by:
|
Quellcode
|
1
|
set(layer[get(thumbname)].onover, show_thumb_tooltips(); );set(layer[get(thumbname)].onout, hide_thumb_tooltips(); );
|
And add the "show_thumb_tooltips" action:
|
Quellcode
|
1
2
3
4
|
<action name="show_thumb_tooltips" > copy(layer[tooltip].html, scene[get(linkedscene)].title);
set(layer[tooltip].visible, true);
tween(layer[tooltip].alpha, 1.0, 0.5);
asyncloop(hovering, copy(layer[tooltip].x,mouse.stagex); copy(layer[tooltip].y,mouse.stagey); );</action>
|
and "hide_thumb_tooltip" action:
|
Quellcode
|
1
|
<action name="hide_thumb_tooltip" >tween(layer[tooltip].alpha, 0.0, 0.25, default, set(layer[tooltip].visible,false), copy(layer[tooltip].x,mouse.stagex); copy(layer[tooltip].y,mouse.stagey); );</action>
|
Give it a try. It should work, I suppose.