Skip to content

Commit

Permalink
Fix a few more hovertext hide delay timings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexxie9952 committed Apr 23, 2024
1 parent a1a97b3 commit dca121f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions freeciv-web/src/main/webapp/javascript/action_dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ function popup_action_selection(actor_unit, action_probabilities,
$(id).parent().css("overflow", "visible");
if (focus_button) $("#"+focus_button).focus(); // default focus to attack button
$(".tt").tooltip({ tooltipClass: "tt_sm_side", position: { my:"left top", at: "right+5 top"},
show: { delay:700, effect:"none", duration: 0 }, hide: {delay:70, effect:"none", duration: 0} });
show: { delay:700, effect:"none", duration: 0 }, hide: {delay:0, effect:"none", duration: 0} });
}

/**************************************************************************
Expand Down Expand Up @@ -1583,7 +1583,7 @@ function select_tgt_unit(actor_unit, target_tile, potential_tgt_units)
dialog_register(id, actor_unit['id']);
$(id).parent().css("overflow","visible");
// Tooltip for target buttons
$(".tt").tooltip({ tooltipClass: "tt_slim", show: { delay:350, effect:"none", duration: 0 }, hide: {delay:120, effect:"none", duration: 0} });
$(".tt").tooltip({ tooltipClass: "tt_slim", show: { delay:350, effect:"none", duration: 0 }, hide: {delay:0, effect:"none", duration: 0} });
}

/**************************************************************************
Expand Down Expand Up @@ -1985,7 +1985,7 @@ function select_last_action()
$(id).dialog('widget').position({my:"center top", at:"center top", of:window})

dialog_register(id);
$(".tt").tooltip({ tooltipClass: "tt_slim", show: { delay:1100, effect:"none", duration: 0 }, hide: {delay:2, effect:"none", duration: 0} });
$(".tt").tooltip({ tooltipClass: "tt_slim", show: { delay:1100, effect:"none", duration: 0 }, hide: {delay:0, effect:"none", duration: 0} });
$(id).parent().css("overflow","visible");
}

Expand Down
2 changes: 1 addition & 1 deletion freeciv-web/src/main/webapp/javascript/government.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function update_govt_dialog()
else {
$("#govt_id_" + govt['id']).button({label: label_html});
$("#govt_id_" + govt['id']).tooltip({
show: { delay:460, effect:"none", duration: 0 }, hide: {delay:50, effect:"none", duration: 0}
show: { delay:460, effect:"none", duration: 0 }, hide: {delay:0, effect:"none", duration: 0}
});
}
}
Expand Down

0 comments on commit dca121f

Please sign in to comment.