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

Method SetStringTip

src/widget.cpp:1192–1196  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1190 * @param tool_tip The new tool_tip.
1191 */
1192void NWidgetCore::SetStringTip(StringID string, StringID tool_tip)
1193{
1194 this->SetString(string);
1195 this->SetToolTip(tool_tip);
1196}
1197
1198/**
1199 * Set sprite of the nested widget.

Callers 13

ReplaceVehicleWindowMethod · 0.80
OnInvalidateDataMethod · 0.80
UpdateButtonStateMethod · 0.80
SetupWidgetDataMethod · 0.80
ConstructWindowMethod · 0.80
OnClickMethod · 0.80
SelectDisplayPlanesMethod · 0.80
WaypointWindowMethod · 0.80
SetBuyVehicleTextMethod · 0.80
BuildVehicleWindowMethod · 0.80
RefitWindowMethod · 0.80

Calls 2

SetStringMethod · 0.95
SetToolTipMethod · 0.95

Tested by

no test coverage detected