summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-07-11 10:55:57 +0000
committerterkhen <terkhen@openttd.org>2010-07-11 10:55:57 +0000
commit51e6cb0a70d0e4076a91305d308f3f467aa950df (patch)
tree080c8b8ebea54b904b3f242e33f783c504f71c2b /src/window_gui.h
parent9aef7b8c3dab0fe2d6e8855b7effcb89908c699e (diff)
downloadopenttd-51e6cb0a70d0e4076a91305d308f3f467aa950df.tar.xz
(svn r20119) -Add: Tooltips can be removed if the user stops hovering the mouse.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h8
1 files changed, 7 insertions, 1 deletions
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);