|
@@ -82,18 +82,18 @@ static const Widget _build_industry_widg
|
|
|
{ WWT_TEXTBTN, RESIZE_RTB, COLOUR_DARK_GREEN, 0, 157, 200, 211, STR_FUND_NEW_INDUSTRY, STR_NULL}, // DPIW_FUND_WIDGET
|
|
|
{ WWT_RESIZEBOX, RESIZE_LRTB, COLOUR_DARK_GREEN, 158, 169, 200, 211, 0x0, STR_RESIZE_BUTTON}, // DPIW_RESIZE_WIDGET
|
|
|
{ WIDGETS_END},
|
|
|
};
|
|
|
|
|
|
/** Window definition of the dynamic place industries gui */
|
|
|
static const WindowDesc _build_industry_desc = {
|
|
|
static const WindowDesc _build_industry_desc(
|
|
|
WDP_AUTO, WDP_AUTO, 170, 212, 170, 212,
|
|
|
WC_BUILD_INDUSTRY, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_RESIZABLE | WDF_CONSTRUCTION,
|
|
|
_build_industry_widgets,
|
|
|
};
|
|
|
_build_industry_widgets
|
|
|
);
|
|
|
|
|
|
class BuildIndustryWindow : public Window {
|
|
|
int selected_index; ///< index of the element in the matrix
|
|
|
IndustryType selected_type; ///< industry corresponding to the above index
|
|
|
uint16 callback_timer; ///< timer counter for callback eventual verification
|
|
|
bool timer_enabled; ///< timer can be used
|
|
@@ -670,18 +670,18 @@ static const Widget _industry_view_widge
|
|
|
{ WWT_PANEL, RESIZE_RTB, COLOUR_CREAM, 130, 247, 108, 119, 0x0, STR_NULL}, // IVW_SPACER
|
|
|
{ WWT_RESIZEBOX, RESIZE_LRTB, COLOUR_CREAM, 248, 259, 108, 119, 0x0, STR_RESIZE_BUTTON}, // IVW_RESIZE
|
|
|
{ WIDGETS_END},
|
|
|
};
|
|
|
|
|
|
/** Window definition of the view industy gui */
|
|
|
static const WindowDesc _industry_view_desc = {
|
|
|
static const WindowDesc _industry_view_desc(
|
|
|
WDP_AUTO, WDP_AUTO, 260, 120, 260, 120,
|
|
|
WC_INDUSTRY_VIEW, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
|
|
|
_industry_view_widgets,
|
|
|
};
|
|
|
_industry_view_widgets
|
|
|
);
|
|
|
|
|
|
void ShowIndustryViewWindow(int industry)
|
|
|
{
|
|
|
AllocateWindowDescFront<IndustryViewWindow>(&_industry_view_desc, industry);
|
|
|
}
|
|
|
|
|
@@ -982,17 +982,17 @@ const StringID IndustryDirectoryWindow::
|
|
|
STR_SORT_BY_TRANSPORTED,
|
|
|
INVALID_STRING_ID
|
|
|
};
|
|
|
|
|
|
|
|
|
/** Window definition of the industy directory gui */
|
|
|
static const WindowDesc _industry_directory_desc = {
|
|
|
static const WindowDesc _industry_directory_desc(
|
|
|
WDP_AUTO, WDP_AUTO, 428, 190, 428, 190,
|
|
|
WC_INDUSTRY_DIRECTORY, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
|
|
|
_industry_directory_widgets,
|
|
|
};
|
|
|
_industry_directory_widgets
|
|
|
);
|
|
|
|
|
|
void ShowIndustryDirectory()
|
|
|
{
|
|
|
AllocateWindowDescFront<IndustryDirectoryWindow>(&_industry_directory_desc, 0);
|
|
|
}
|