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

Method OnEditboxChanged

src/fios_gui.cpp:949–960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947 }
948
949 void OnEditboxChanged(WidgetID wid) override
950 {
951 if (wid == WID_SL_FILTER) {
952 this->string_filter.SetFilterTerm(this->filter_editbox.text.GetText());
953 this->InvalidateData(SLIWD_FILTER_CHANGES);
954 }
955
956 if (wid == WID_SL_SAVE_OSK_TITLE) {
957 this->selected = nullptr;
958 this->InvalidateData(SLIWD_SELECTION_CHANGES);
959 }
960 }
961};
962
963/** Load game/scenario */

Callers

nothing calls this directly

Calls 3

SetFilterTermMethod · 0.80
GetTextMethod · 0.45
InvalidateDataMethod · 0.45

Tested by

no test coverage detected