diff options
author | yexo <yexo@openttd.org> | 2010-08-19 12:56:31 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-08-19 12:56:31 +0000 |
commit | 16be24e13acf17a3292b490196d301b5b1aa1056 (patch) | |
tree | 4b7208295077f6aa6a70b8ea71cdfda9678d0d96 /src/widget_type.h | |
parent | 18739c28db4e59d62b3754b3ddb1b64752d3ebf6 (diff) | |
download | openttd-16be24e13acf17a3292b490196d301b5b1aa1056.tar.xz |
(svn r20558) -Codechange: use one generic function to create a list of company buttons
Diffstat (limited to 'src/widget_type.h')
-rw-r--r-- | src/widget_type.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widget_type.h b/src/widget_type.h index 300f8f35a..d8e28a6da 100644 --- a/src/widget_type.h +++ b/src/widget_type.h @@ -1022,4 +1022,6 @@ static inline NWidgetPart NWidgetFunction(NWidgetFunctionType *func_ptr) NWidgetContainer *MakeNWidgets(const NWidgetPart *parts, int count, int *biggest_index, NWidgetContainer *container); NWidgetContainer *MakeWindowNWidgetTree(const NWidgetPart *parts, int count, int *biggest_index, NWidgetStacked **shade_select); +NWidgetBase *MakeCompanyButtonRows(int *biggest_index, int widget_first, int widget_last, int max_length, StringID button_tooltip); + #endif /* WIDGET_TYPE_H */ |