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

Method GetWidgetString

src/picker_gui.cpp:299–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299std::string PickerWindow::GetWidgetString(WidgetID widget, StringID stringid) const
300{
301 if (IsInsideMM(widget, this->badge_filters.first, this->badge_filters.second)) {
302 return this->GetWidget<NWidgetBadgeFilter>(widget)->GetStringParameter(this->badge_filter_choices);
303 }
304
305 return this->Window::GetWidgetString(widget, stringid);
306}
307
308void PickerWindow::DrawWidget(const Rect &r, WidgetID widget) const
309{

Callers

nothing calls this directly

Calls 2

IsInsideMMFunction · 0.85
GetStringParameterMethod · 0.80

Tested by

no test coverage detected