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

Function IsAttributeWidgetPartType

src/widget.cpp:3155–3158  ·  view source on GitHub ↗

* Test if (an NWidgetPart) WidgetType is an attribute widget part type. * @param tp WidgetType to test. * @return True iff WidgetType is an attribute widget. */

Source from the content-addressed store, hash-verified

3153 * @return True iff WidgetType is an attribute widget.
3154 */
3155static bool IsAttributeWidgetPartType(WidgetType tp)
3156{
3157 return tp > WPT_ATTRIBUTE_BEGIN && tp < WPT_ATTRIBUTE_END;
3158}
3159
3160/**
3161 * Apply an attribute NWidgetPart to an NWidget.

Callers 1

MakeNWidgetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected