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

Method GetWidgetString

src/signs_gui.cpp:461–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459 }
460
461 std::string GetWidgetString(WidgetID widget, StringID stringid) const override
462 {
463 switch (widget) {
464 case WID_QES_CAPTION:
465 return GetString(this->name_editbox.caption);
466
467 default:
468 return this->Window::GetWidgetString(widget, stringid);
469 }
470 }
471
472 void OnClick([[maybe_unused]] Point pt, WidgetID widget, [[maybe_unused]] int click_count) override
473 {

Callers

nothing calls this directly

Calls 1

GetStringFunction · 0.70

Tested by

no test coverage detected