(svn r20119) -Add: Tooltips can be removed if the user stops hovering the mouse.

This commit is contained in:
terkhen
2010-07-11 10:55:57 +00:00
parent 9aef7b8c3d
commit 51e6cb0a70
3 changed files with 21 additions and 11 deletions

View File

@@ -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);