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

Method SetSprite

src/widget.cpp:1202–1205  ·  view source on GitHub ↗

* Set sprite of the nested widget. * @param sprite The new sprite. */

Source from the content-addressed store, hash-verified

1200 * @param sprite The new sprite.
1201 */
1202void NWidgetCore::SetSprite(SpriteID sprite)
1203{
1204 this->widget_data.sprite = sprite;
1205}
1206
1207/**
1208 * Set sprite and tool tip of the nested widget.

Callers 8

SetSpriteTipMethod · 0.95
SetupWidgetDataMethod · 0.80
VehicleGroupWindowMethod · 0.80
OnPaintMethod · 0.80
OnInitMethod · 0.80
VehicleViewWindowMethod · 0.80
UpdateWidgetSizeMethod · 0.80
OnInitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected