summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
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);