1
0
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:
Rubidium
2025-01-03 13:52:25 +01:00
committed by rubidium42
parent 60b9eb5cc6
commit ef87acc1ff
44 changed files with 283 additions and 283 deletions

View File

@@ -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(),