|
@@ -106,13 +106,13 @@ static const NWidgetPart _nested_normal_
|
|
|
};
|
|
|
|
|
|
static WindowDesc _normal_news_desc(
|
|
|
WDP_CENTER, 476, 430, 170, 430, 170,
|
|
|
WC_NEWS_WINDOW, WC_NONE,
|
|
|
WDF_DEF_WIDGET,
|
|
|
NULL, _nested_normal_news_widgets, lengthof(_nested_normal_news_widgets)
|
|
|
_nested_normal_news_widgets, lengthof(_nested_normal_news_widgets)
|
|
|
);
|
|
|
|
|
|
/* New vehicles news items. */
|
|
|
static const NWidgetPart _nested_vehicle_news_widgets[] = {
|
|
|
NWidget(WWT_PANEL, COLOUR_WHITE, NTW_PANEL),
|
|
|
NWidget(NWID_HORIZONTAL), SetPadding(1, 1, 0, 1),
|
|
@@ -133,13 +133,13 @@ static const NWidgetPart _nested_vehicle
|
|
|
};
|
|
|
|
|
|
static WindowDesc _vehicle_news_desc(
|
|
|
WDP_CENTER, 476, 430, 170, 430, 170,
|
|
|
WC_NEWS_WINDOW, WC_NONE,
|
|
|
WDF_DEF_WIDGET,
|
|
|
NULL, _nested_vehicle_news_widgets, lengthof(_nested_vehicle_news_widgets)
|
|
|
_nested_vehicle_news_widgets, lengthof(_nested_vehicle_news_widgets)
|
|
|
);
|
|
|
|
|
|
/* Company news items. */
|
|
|
static const NWidgetPart _nested_company_news_widgets[] = {
|
|
|
NWidget(WWT_PANEL, COLOUR_WHITE, NTW_PANEL),
|
|
|
NWidget(NWID_HORIZONTAL), SetPadding(1, 1, 0, 1),
|
|
@@ -164,13 +164,13 @@ static const NWidgetPart _nested_company
|
|
|
};
|
|
|
|
|
|
static WindowDesc _company_news_desc(
|
|
|
WDP_CENTER, 476, 430, 170, 430, 170,
|
|
|
WC_NEWS_WINDOW, WC_NONE,
|
|
|
WDF_DEF_WIDGET,
|
|
|
NULL, _nested_company_news_widgets, lengthof(_nested_company_news_widgets)
|
|
|
_nested_company_news_widgets, lengthof(_nested_company_news_widgets)
|
|
|
);
|
|
|
|
|
|
/* Thin news items. */
|
|
|
static const NWidgetPart _nested_thin_news_widgets[] = {
|
|
|
NWidget(WWT_PANEL, COLOUR_WHITE, NTW_PANEL),
|
|
|
NWidget(NWID_HORIZONTAL), SetPadding(1, 1, 0, 1),
|
|
@@ -187,13 +187,13 @@ static const NWidgetPart _nested_thin_ne
|
|
|
};
|
|
|
|
|
|
static WindowDesc _thin_news_desc(
|
|
|
WDP_CENTER, 476, 430, 130, 430, 130,
|
|
|
WC_NEWS_WINDOW, WC_NONE,
|
|
|
WDF_DEF_WIDGET,
|
|
|
NULL, _nested_thin_news_widgets, lengthof(_nested_thin_news_widgets)
|
|
|
_nested_thin_news_widgets, lengthof(_nested_thin_news_widgets)
|
|
|
);
|
|
|
|
|
|
/* Small news items. */
|
|
|
static NWidgetPart _nested_small_news_widgets[] = {
|
|
|
/* Caption + close box */
|
|
|
NWidget(NWID_HORIZONTAL),
|
|
@@ -211,13 +211,13 @@ static NWidgetPart _nested_small_news_wi
|
|
|
};
|
|
|
|
|
|
static WindowDesc _small_news_desc(
|
|
|
WDP_CENTER, 476, 280, 87, 280, 87,
|
|
|
WC_NEWS_WINDOW, WC_NONE,
|
|
|
WDF_DEF_WIDGET,
|
|
|
NULL, _nested_small_news_widgets, lengthof(_nested_small_news_widgets)
|
|
|
_nested_small_news_widgets, lengthof(_nested_small_news_widgets)
|
|
|
);
|
|
|
|
|
|
/**
|
|
|
* Data common to all news items of a given subtype (structure)
|
|
|
*/
|
|
|
struct NewsSubtypeData {
|
|
@@ -1020,13 +1020,13 @@ static const NWidgetPart _nested_message
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _message_history_desc(
|
|
|
240, 22, 400, 140, 400, 140,
|
|
|
WC_MESSAGE_HISTORY, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE,
|
|
|
NULL, _nested_message_history, lengthof(_nested_message_history)
|
|
|
_nested_message_history, lengthof(_nested_message_history)
|
|
|
);
|
|
|
|
|
|
/** Display window with news messages history */
|
|
|
void ShowMessageHistory()
|
|
|
{
|
|
|
DeleteWindowById(WC_MESSAGE_HISTORY, 0);
|
|
@@ -1308,13 +1308,13 @@ static const NWidgetPart _nested_message
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _message_options_desc(
|
|
|
270, 22, 0, 0, 0, 0,
|
|
|
WC_GAME_OPTIONS, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
|
|
|
NULL, _nested_message_options_widgets, lengthof(_nested_message_options_widgets)
|
|
|
_nested_message_options_widgets, lengthof(_nested_message_options_widgets)
|
|
|
);
|
|
|
|
|
|
void ShowMessageOptions()
|
|
|
{
|
|
|
DeleteWindowById(WC_GAME_OPTIONS, 0);
|
|
|
new MessageOptionsWindow(&_message_options_desc);
|