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

Method GetWidgetString

src/window.cpp:506–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506std::string Window::GetWidgetString([[maybe_unused]] WidgetID widget, StringID stringid) const
507{
508 if (stringid == STR_NULL) return {};
509 return GetString(stringid);
510}
511
512/**
513 * Called when window gains focus

Callers 1

GetStringForWidgetFunction · 0.45

Calls 1

GetStringFunction · 0.70

Tested by

no test coverage detected