* Shows a tooltip * @param parent The window this tooltip is related to. * @param text String to be displayed. May include encoded parameters. * @param close_tooltip the condition under which the tooltip closes */
| 691 | * @param close_tooltip the condition under which the tooltip closes |
| 692 | */ |
| 693 | void GuiShowTooltips(Window *parent, EncodedString &&text, TooltipCloseCondition close_tooltip) |
| 694 | { |
| 695 | CloseWindowById(WC_TOOLTIPS, 0); |
| 696 | |
| 697 | if (text.empty() || !_cursor.in_window) return; |
| 698 | |
| 699 | new TooltipsWindow(parent, std::move(text), close_tooltip); |
| 700 | } |
| 701 | |
| 702 | void QueryString::HandleEditBox(Window *w, WidgetID wid) |
| 703 | { |
no test coverage detected