diff options
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 36 |
1 files changed, 2 insertions, 34 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 3d9af3b37..64929fbac 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -37,6 +37,8 @@ #include "genworld.h" #include "smallmap_gui.h" +#include "widgets/industry_widget.h" + #include "table/strings.h" #include "table/sprites.h" @@ -164,15 +166,6 @@ void CcBuildIndustry(const CommandCost &result, TileIndex tile, uint32 p1, uint3 } } -/** Names of the widgets of the dynamic place industries gui */ -enum DynamicPlaceIndustriesWidgets { - DPIW_MATRIX_WIDGET, - DPIW_SCROLLBAR, - DPIW_INFOPANEL, - DPIW_DISPLAY_WIDGET, - DPIW_FUND_WIDGET, -}; - static const NWidgetPart _nested_build_industry_widgets[] = { NWidget(NWID_HORIZONTAL), NWidget(WWT_CLOSEBOX, COLOUR_DARK_GREEN), @@ -637,15 +630,6 @@ static inline bool IsProductionAlterable(const Industry *i) (is->production_rate[0] != 0 || is->production_rate[1] != 0 || is->IsRawIndustry())); } -/** Names of the widgets of the view industry gui */ -enum IndustryViewWidgets { - IVW_CAPTION, - IVW_VIEWPORT, - IVW_INFO, - IVW_GOTO, - IVW_DISPLAY, -}; - class IndustryViewWindow : public Window { /** Modes for changing production */ @@ -1041,14 +1025,6 @@ void ShowIndustryViewWindow(int industry) AllocateWindowDescFront<IndustryViewWindow>(&_industry_view_desc, industry); } -/** Names of the widgets of the industry directory gui */ -enum IndustryDirectoryWidgets { - IDW_DROPDOWN_ORDER, - IDW_DROPDOWN_CRITERIA, - IDW_INDUSTRY_LIST, - IDW_SCROLLBAR, -}; - /** Widget definition of the industry directory gui */ static const NWidgetPart _nested_industry_directory_widgets[] = { NWidget(NWID_HORIZONTAL), @@ -1420,14 +1396,6 @@ void ShowIndustryDirectory() AllocateWindowDescFront<IndustryDirectoryWindow>(&_industry_directory_desc, 0); } -/** Widget numbers of the industry cargoes window, */ -enum IndustryCargoesWidgets { - ICW_CAPTION, - ICW_NOTIFY, - ICW_PANEL, - ICW_SCROLLBAR, -}; - /** Widgets of the industry cargoes window. */ static const NWidgetPart _nested_industry_cargoes_widgets[] = { NWidget(NWID_HORIZONTAL), |