summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-10-12 15:13:40 +0000
committerDarkvater <Darkvater@openttd.org>2006-10-12 15:13:40 +0000
commitf2fd789cc635f6bdce0d52803676ed74db866616 (patch)
tree931a7de4c1ee526b74d6f55d691af56c66a2b6bd /window.h
parent36ca1d9c87cc90033cab37233f774e511960517a (diff)
downloadopenttd-f2fd789cc635f6bdce0d52803676ed74db866616.tar.xz
(svn r6758) -Feature: Add a measurement tool that will show dimensions and height
differences of various draggable tools (inspiration, concept and double checking by MeusH).
Diffstat (limited to 'window.h')
-rw-r--r--window.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/window.h b/window.h
index 086c32d68..876f6a2a4 100644
--- a/window.h
+++ b/window.h
@@ -387,6 +387,8 @@ assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(tree_d));
typedef struct {
StringID string_id;
+ byte paramcount;
+ uint32 params[5];
} tooltips_d;
assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(tooltips_d));
@@ -805,7 +807,11 @@ void CDECL SetWindowWidgetsHiddenState(Window *w, bool hidden_stat, int widgets,
void CDECL SetWindowWidgetsLoweredState(Window *w, bool lowered_stat, int widgets, ...);
/* misc_gui.c*/
-void GuiShowTooltips(StringID string_id);
+void GuiShowTooltipsWithArgs(StringID str, uint paramcount, uint params[]);
+static inline void GuiShowTooltips(StringID str)
+{
+ GuiShowTooltipsWithArgs(str, 0, NULL);
+}
/* widget.c */
int GetWidgetFromPos(const Window *w, int x, int y);