|
@@ -322,46 +322,46 @@ struct NewsWindow : Window {
|
|
|
static const Widget _news_type13_widgets[] = {
|
|
|
{ WWT_PANEL, RESIZE_NONE, COLOUR_WHITE, 0, 429, 0, 169, 0x0, STR_NULL},
|
|
|
{ WWT_PANEL, RESIZE_NONE, COLOUR_WHITE, 0, 10, 0, 11, 0x0, STR_NULL},
|
|
|
{ WIDGETS_END},
|
|
|
};
|
|
|
|
|
|
static WindowDesc _news_type13_desc = {
|
|
|
static WindowDesc _news_type13_desc(
|
|
|
WDP_CENTER, 476, 430, 170, 430, 170,
|
|
|
WC_NEWS_WINDOW, WC_NONE,
|
|
|
WDF_DEF_WIDGET,
|
|
|
_news_type13_widgets,
|
|
|
};
|
|
|
_news_type13_widgets
|
|
|
);
|
|
|
|
|
|
static const Widget _news_type2_widgets[] = {
|
|
|
{ WWT_PANEL, RESIZE_NONE, COLOUR_WHITE, 0, 429, 0, 129, 0x0, STR_NULL},
|
|
|
{ WWT_PANEL, RESIZE_NONE, COLOUR_WHITE, 0, 10, 0, 11, 0x0, STR_NULL},
|
|
|
{ WIDGETS_END},
|
|
|
};
|
|
|
|
|
|
static WindowDesc _news_type2_desc = {
|
|
|
static WindowDesc _news_type2_desc(
|
|
|
WDP_CENTER, 476, 430, 130, 430, 130,
|
|
|
WC_NEWS_WINDOW, WC_NONE,
|
|
|
WDF_DEF_WIDGET,
|
|
|
_news_type2_widgets,
|
|
|
};
|
|
|
_news_type2_widgets
|
|
|
);
|
|
|
|
|
|
static const Widget _news_type0_widgets[] = {
|
|
|
{ WWT_PANEL, RESIZE_NONE, COLOUR_LIGHT_BLUE, 0, 279, 14, 86, 0x0, STR_NULL},
|
|
|
{ WWT_CLOSEBOX, RESIZE_NONE, COLOUR_LIGHT_BLUE, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},
|
|
|
{ WWT_CAPTION, RESIZE_NONE, COLOUR_LIGHT_BLUE, 11, 279, 0, 13, STR_012C_MESSAGE, STR_NULL},
|
|
|
{ WWT_INSET, RESIZE_NONE, COLOUR_LIGHT_BLUE, 2, 277, 16, 64, 0x0, STR_NULL},
|
|
|
{ WIDGETS_END},
|
|
|
};
|
|
|
|
|
|
static WindowDesc _news_type0_desc = {
|
|
|
static WindowDesc _news_type0_desc(
|
|
|
WDP_CENTER, 476, 280, 87, 280, 87,
|
|
|
WC_NEWS_WINDOW, WC_NONE,
|
|
|
WDF_DEF_WIDGET,
|
|
|
_news_type0_widgets,
|
|
|
};
|
|
|
_news_type0_widgets
|
|
|
);
|
|
|
|
|
|
|
|
|
/** Open up an own newspaper window for the news item */
|
|
|
static void ShowNewspaper(NewsItem *ni)
|
|
|
{
|
|
|
SoundFx sound = _news_type_data[_news_subtype_data[ni->subtype].type].sound;
|
|
@@ -770,18 +770,18 @@ static const Widget _message_history_wid
|
|
|
{ WWT_PANEL, RESIZE_RB, COLOUR_BROWN, 0, 387, 14, 139, 0x0, STR_MESSAGE_HISTORY_TIP},
|
|
|
{ WWT_SCROLLBAR, RESIZE_LRB, COLOUR_BROWN, 388, 399, 14, 127, 0x0, STR_0190_SCROLL_BAR_SCROLLS_LIST},
|
|
|
{ WWT_RESIZEBOX, RESIZE_LRTB, COLOUR_BROWN, 388, 399, 128, 139, 0x0, STR_RESIZE_BUTTON},
|
|
|
{ WIDGETS_END},
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _message_history_desc = {
|
|
|
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,
|
|
|
_message_history_widgets,
|
|
|
};
|
|
|
_message_history_widgets
|
|
|
);
|
|
|
|
|
|
/** Display window with news messages history */
|
|
|
void ShowMessageHistory()
|
|
|
{
|
|
|
DeleteWindowById(WC_MESSAGE_HISTORY, 0);
|
|
|
new MessageHistoryWindow(&_message_history_desc);
|
|
@@ -979,19 +979,19 @@ NEWS_SETTINGS_LINE(26, NT_ACCEPTANCE,
|
|
|
NEWS_SETTINGS_LINE(26, NT_SUBSIDIES, STR_020E_SUBSIDIES),
|
|
|
NEWS_SETTINGS_LINE(26, NT_GENERAL, STR_020F_GENERAL_INFORMATION),
|
|
|
|
|
|
{ WIDGETS_END},
|
|
|
};
|
|
|
|
|
|
static const WindowDesc _message_options_desc = {
|
|
|
static const WindowDesc _message_options_desc(
|
|
|
270, 22, 410, 65 + NT_END * NEWS_SETTING_BASELINE_SKIP,
|
|
|
410, 65 + NT_END * NEWS_SETTING_BASELINE_SKIP,
|
|
|
WC_GAME_OPTIONS, WC_NONE,
|
|
|
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
|
|
|
_message_options_widgets,
|
|
|
};
|
|
|
_message_options_widgets
|
|
|
);
|
|
|
|
|
|
void ShowMessageOptions()
|
|
|
{
|
|
|
DeleteWindowById(WC_GAME_OPTIONS, 0);
|
|
|
new MessageOptionsWindow(&_message_options_desc);
|
|
|
}
|