hi all !
I wrote an action for "fine-tuning" tooltips. But unfortunately, can't display an apostrophe.
- my file is formatted to "UTF-16 with bom" ( ref : https://krpano.com/docu/xml/syntaxrules/?version=122 )
- it works with : < / > / &
- it doesn't with : ' / "
any clue ? :)
Code
<!-- //////////// create TOOLTIPS //////////// -->
<action name="create_tooltips_action">
spheretoscreen(hotspot[%3].ath, hotspot[%3].atv, x, y);
addlayer(tooltips);
assignstyle(layer[tooltips], 'tooltips_style');
set(layer[tooltips].text, <div style='text-align: center;'>
<div style='font-size: 14px; font-weight: bold; color: #FFFFFF;'>
%1
</div>
<div style='font-size: 12px; color: #E8E8E8; margin-top: 2px;'>
%2
</div>
</div>);
set(layer[tooltips].y,get(y));
set(layer[tooltips].x,get(x));
tween(layer[tooltips].oy,-15,0.2,easeoutback);
tween(layer[tooltips].alpha,1);
set(hotspot[%3].onout,
tween(layer[tooltips].oy,0,0.3);
tween(layer[tooltips].alpha,0.0,0.2,default,removelayer(tooltips)););
</action>
<!-- //////////// create TOOLTIPS //////////// -->
<hotspot name="spot_1" style="skin_hotspotstyle_scene" ath="0" atv="0"
onover="create_tooltips_action(title,subtitle,spot_1);"
/>
Display More