mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-22 11:44:17 +01:00
Codechange: make STR_NULL the default for all widget construction functions
This commit is contained in:
@@ -108,7 +108,7 @@ static constexpr NWidgetPart _nested_normal_news_widgets[] = {
|
||||
NWidget(NWID_HORIZONTAL), SetPIPRatio(0, 1, 0),
|
||||
NWidget(WWT_CLOSEBOX, COLOUR_WHITE, WID_N_CLOSEBOX),
|
||||
NWidget(WWT_LABEL, INVALID_COLOUR, WID_N_DATE),
|
||||
SetStringTip(STR_JUST_DATE_LONG, STR_NULL),
|
||||
SetStringTip(STR_JUST_DATE_LONG),
|
||||
SetTextStyle(TC_BLACK, FS_SMALL),
|
||||
SetAlignment(SA_RIGHT | SA_TOP),
|
||||
EndContainer(),
|
||||
@@ -147,7 +147,7 @@ static constexpr NWidgetPart _nested_vehicle_news_widgets[] = {
|
||||
SetMinimalTextLines(2, 0, FS_LARGE),
|
||||
SetMinimalSize(400, 0),
|
||||
SetPadding(WidgetDimensions::unscaled.hsep_indent, WidgetDimensions::unscaled.vsep_wide),
|
||||
SetStringTip(STR_EMPTY, STR_NULL),
|
||||
SetStringTip(STR_EMPTY),
|
||||
EndContainer(),
|
||||
NWidget(WWT_PANEL, COLOUR_WHITE, WID_N_VEH_BKGND), SetPadding(WidgetDimensions::unscaled.fullbevel),
|
||||
NWidget(NWID_VERTICAL),
|
||||
@@ -194,7 +194,7 @@ static constexpr NWidgetPart _nested_company_news_widgets[] = {
|
||||
SetMinimalTextLines(1, 0, FS_LARGE),
|
||||
SetMinimalSize(400, 0),
|
||||
SetPadding(WidgetDimensions::unscaled.hsep_indent, WidgetDimensions::unscaled.vsep_normal),
|
||||
SetStringTip(STR_EMPTY, STR_NULL),
|
||||
SetStringTip(STR_EMPTY),
|
||||
EndContainer(),
|
||||
NWidget(NWID_HORIZONTAL),
|
||||
NWidget(NWID_VERTICAL), SetPIP(0, WidgetDimensions::unscaled.vsep_normal, 0), SetPadding(2),
|
||||
@@ -231,7 +231,7 @@ static constexpr NWidgetPart _nested_thin_news_widgets[] = {
|
||||
NWidget(NWID_HORIZONTAL), SetPIPRatio(0, 1, 0),
|
||||
NWidget(WWT_CLOSEBOX, COLOUR_WHITE, WID_N_CLOSEBOX),
|
||||
NWidget(WWT_LABEL, INVALID_COLOUR, WID_N_DATE),
|
||||
SetStringTip(STR_JUST_DATE_LONG, STR_NULL),
|
||||
SetStringTip(STR_JUST_DATE_LONG),
|
||||
SetTextStyle(TC_BLACK, FS_SMALL),
|
||||
SetAlignment(SA_RIGHT | SA_TOP),
|
||||
EndContainer(),
|
||||
|
||||
Reference in New Issue
Block a user