mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
Fix: Some NWidget lists were not properly closed. (#11425)
This commit is contained in:
parent
cda896bca5
commit
d4a77411a5
@ -34,6 +34,7 @@
|
|||||||
/** Widgets for the background window to prevent smearing. */
|
/** Widgets for the background window to prevent smearing. */
|
||||||
static const struct NWidgetPart _background_widgets[] = {
|
static const struct NWidgetPart _background_widgets[] = {
|
||||||
NWidget(WWT_PANEL, COLOUR_DARK_BLUE, WID_BB_BACKGROUND), SetResize(1, 1),
|
NWidget(WWT_PANEL, COLOUR_DARK_BLUE, WID_BB_BACKGROUND), SetResize(1, 1),
|
||||||
|
EndContainer(),
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -194,6 +194,7 @@ static const NWidgetPart _nested_performance_league_widgets[] = {
|
|||||||
NWidget(WWT_STICKYBOX, COLOUR_BROWN),
|
NWidget(WWT_STICKYBOX, COLOUR_BROWN),
|
||||||
EndContainer(),
|
EndContainer(),
|
||||||
NWidget(WWT_PANEL, COLOUR_BROWN, WID_PLT_BACKGROUND), SetMinimalSize(400, 0), SetMinimalTextLines(15, WidgetDimensions::unscaled.framerect.Vertical()),
|
NWidget(WWT_PANEL, COLOUR_BROWN, WID_PLT_BACKGROUND), SetMinimalSize(400, 0), SetMinimalTextLines(15, WidgetDimensions::unscaled.framerect.Vertical()),
|
||||||
|
EndContainer(),
|
||||||
};
|
};
|
||||||
|
|
||||||
static WindowDesc _performance_league_desc(__FILE__, __LINE__,
|
static WindowDesc _performance_league_desc(__FILE__, __LINE__,
|
||||||
@ -426,6 +427,7 @@ static const NWidgetPart _nested_script_league_widgets[] = {
|
|||||||
NWidget(WWT_STICKYBOX, COLOUR_BROWN),
|
NWidget(WWT_STICKYBOX, COLOUR_BROWN),
|
||||||
EndContainer(),
|
EndContainer(),
|
||||||
NWidget(WWT_PANEL, COLOUR_BROWN, WID_SLT_BACKGROUND), SetMinimalSize(400, 0), SetMinimalTextLines(15, WidgetDimensions::scaled.framerect.Vertical()),
|
NWidget(WWT_PANEL, COLOUR_BROWN, WID_SLT_BACKGROUND), SetMinimalSize(400, 0), SetMinimalTextLines(15, WidgetDimensions::scaled.framerect.Vertical()),
|
||||||
|
EndContainer(),
|
||||||
};
|
};
|
||||||
|
|
||||||
static WindowDesc _script_league_desc(__FILE__, __LINE__,
|
static WindowDesc _script_league_desc(__FILE__, __LINE__,
|
||||||
|
@ -648,7 +648,7 @@ void HideFillingPercent(TextEffectID *te_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const NWidgetPart _nested_tooltips_widgets[] = {
|
static const NWidgetPart _nested_tooltips_widgets[] = {
|
||||||
NWidget(WWT_EMPTY, INVALID_COLOUR, WID_TT_BACKGROUND), EndContainer(),
|
NWidget(WWT_EMPTY, INVALID_COLOUR, WID_TT_BACKGROUND),
|
||||||
};
|
};
|
||||||
|
|
||||||
static WindowDesc _tool_tips_desc(__FILE__, __LINE__,
|
static WindowDesc _tool_tips_desc(__FILE__, __LINE__,
|
||||||
|
Loading…
Reference in New Issue
Block a user