MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / callTooltip

Method callTooltip

src/OpenLoco/src/Ui/Window.cpp:1193–1202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1191 }
1192
1193 std::optional<FormatArguments> Window::callTooltip(WidgetIndex_t widgetIndex, const WidgetId id)
1194 {
1195 // We only return std::nullopt when required by the tooltip function
1196 if (eventHandlers->tooltip == nullptr)
1197 {
1198 return FormatArguments();
1199 }
1200
1201 return eventHandlers->tooltip(*this, widgetIndex, id);
1202 }
1203
1204 void Window::callOnMove(int16_t xPos, int16_t yPos)
1205 {

Callers 2

openFunction · 0.80
updateFunction · 0.80

Calls 1

FormatArgumentsClass · 0.50

Tested by

no test coverage detected