From 51e6cb0a70d0e4076a91305d308f3f467aa950df Mon Sep 17 00:00:00 2001 From: terkhen Date: Sun, 11 Jul 2010 10:55:57 +0000 Subject: (svn r20119) -Add: Tooltips can be removed if the user stops hovering the mouse. --- src/window_gui.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/window_gui.h') diff --git a/src/window_gui.h b/src/window_gui.h index 7fc0ebe72..6a882647b 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -894,7 +894,13 @@ Wcls *AllocateWindowDescFront(const WindowDesc *desc, int window_number) void RelocateAllWindows(int neww, int newh); /* misc_gui.cpp */ -void GuiShowTooltips(StringID str, uint paramcount = 0, const uint64 params[] = NULL, bool use_left_mouse_button = false); +enum TooltipCloseCondition { + TCC_RIGHT_CLICK, + TCC_LEFT_CLICK, + TCC_HOVER, +}; + +void GuiShowTooltips(StringID str, uint paramcount = 0, const uint64 params[] = NULL, TooltipCloseCondition close_tooltip = TCC_RIGHT_CLICK); /* widget.cpp */ int GetWidgetFromPos(const Window *w, int x, int y); -- cgit v1.2.3-54-g00ecf