Hello?
I'm using tooltips in the file I'm working on and I have a question.
Currently, tooltip appears with the mouse, but how do I make sure that tooltip always appears regardless of the mouse?
Code
<action name="adjust_tooltip_text_color">
set(layer[skin_tooltip].css, "font-size:16px; color:#FFFFFF; padding:5px 10px;");
</action>
<action name="showtooltip">
if(layer[skin_tooltip].html != "",
set(layer[skin_tooltip].visible, true);
tween(layer[skin_tooltip].alpha, 1.0, 0.1);
tween(layer[skin_tooltip].bgcolor, 0x000000, 0);
tween(layer[skin_tooltip].bgalpha, 0.5, 0);
tween(layer[skin_tooltip].roundedge, 5, 0);
callwith(layer[skin_tooltip], adjust_tooltip_padding);
callwith(layer[skin_tooltip], adjust_tooltip_text_color);
,
set(layer[skin_tooltip].visible, false);
);
</action>
<action name="hidetooltip">
tween(layer[skin_tooltip].alpha, 0.0, 0.1, default, set(layer[skin_tooltip].visible, false));
</action>
<action name="adjust_tooltip_width">
set(layer[skin_tooltip].width, calc(strwidth(layer[skin_tooltip].html) + 20));
</action>
<!-- chevrons style. can be customized if required -->
<style name="chevron"
fillcolor="get:garrows_settings.chevrons_color"
fillalpha="get:garrows_settings.chevrons_alpha"
bordercolor="get:garrows_settings.chevrons_bordercolor"
borderalpha="get:garrows_settings.chevrons_borderalpha"
borderwidth="get:garrows_settings.chevrons_borderwidth"
borderhittest="true"
onover="
removefloatingarrow();
tween(fillcolor,get(garrows_settings.chevrons_coloronhover),0.5);
tween(bordercolor,get(garrows_settings.chevrons_bordercoloronhover),0.5);
"
onout="
if(garrows_settings.show_floatingarrow, showfloatingarrow(););
tween(fillcolor,get(garrows_settings.chevrons_color),0.5);
tween(bordercolor,get(garrows_settings.chevrons_bordercolor),0.5);
tween(layer[skin_tooltip].alpha, 0.0, 0.1, default, set(layer[skin_tooltip].visible,false), copy(layer[skin_tooltip].x,mouse.stagex); copy(layer[skin_tooltip].y,mouse.stagey); );
"
onover.mouse="copy(layer[skin_tooltip].html, tooltip);
set(layer[skin_tooltip].visible, calc(webvr.isenabled ? false : true));
tween(layer[skin_tooltip].alpha, 1.0, 0.1);
tween(layer[skin_tooltip].bgcolor, 0x000000, 0);
tween(layer[skin_tooltip].bgalpha, 0.5, 0);
tween(layer[skin_tooltip].roundedge, 5, 0);
callwith(layer[skin_tooltip], adjust_tooltip_width);
callwith(layer[skin_tooltip], adjust_tooltip_height);
asyncloop(hovering, copy(layer[skin_tooltip].x,mouse.stagex); calc(layer[skin_tooltip].y, mouse.stagey - 30); );
showtooltip();
"
onout.mouse="tween(layer[skin_tooltip].alpha, 0.0, 0.1, default, set(layer[skin_tooltip].visible,false), copy(layer[skin_tooltip].x,mouse.stagex); copy(layer[skin_tooltip].y,mouse.stagey); );"
capture="get:garrows_settings.chevrons_capture"
zorder="get:garrows_settings.chevrons_zorder"
keep="false">
capture="get:garrows_settings.chevrons_capture"
zorder="get:garrows_settings.chevrons_zorder"
keep="false"
>
</style>
Display More