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

Method GetWidgetString

src/signs_gui.cpp:224–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 }
223
224 std::string GetWidgetString(WidgetID widget, StringID stringid) const override
225 {
226 if (widget == WID_SIL_CAPTION) return GetString(STR_SIGN_LIST_CAPTION, this->vscroll->GetCount());
227
228 return this->Window::GetWidgetString(widget, stringid);
229 }
230
231 void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override
232 {

Callers

nothing calls this directly

Calls 2

GetStringFunction · 0.70
GetCountMethod · 0.45

Tested by

no test coverage detected