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

Method SetSpriteTip

src/widget.cpp:1212–1216  ·  view source on GitHub ↗

* Set sprite and tool tip of the nested widget. * @param sprite The new sprite. * @param tool_tip The new tool_tip. */

Source from the content-addressed store, hash-verified

1210 * @param tool_tip The new tool_tip.
1211 */
1212void NWidgetCore::SetSpriteTip(SpriteID sprite, StringID tool_tip)
1213{
1214 this->SetSprite(sprite);
1215 this->SetToolTip(tool_tip);
1216}
1217
1218/**
1219 * Set the matrix dimension.

Callers

nothing calls this directly

Calls 2

SetSpriteMethod · 0.95
SetToolTipMethod · 0.95

Tested by

no test coverage detected