MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetMinimalTextLines

Method SetMinimalTextLines

src/widget.cpp:1078–1083  ·  view source on GitHub ↗

* Set minimal text lines for the widget. * @param min_lines Number of text lines of the widget. * @param spacing Extra unscaled spacing (eg WidgetDimensions::unscaled.framerect.Vertical()) of the widget. * @param size Font size of text. */

Source from the content-addressed store, hash-verified

1076 * @param size Font size of text.
1077 */
1078void NWidgetResizeBase::SetMinimalTextLines(uint8_t min_lines, uint8_t spacing, FontSize size)
1079{
1080 this->uz_text_lines = min_lines;
1081 this->uz_text_spacing = spacing;
1082 this->uz_text_size = size;
1083}
1084
1085/**
1086 * Set the filling of the widget from initial size.

Callers 6

AddKeyFunction · 0.80
MakeNWidgetCompanyLinesFunction · 0.80
NWidgetLeafMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected