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

Method OnEditboxChanged

src/script/script_gui.cpp:1068–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1066 }
1067
1068 void OnEditboxChanged(WidgetID wid) override
1069 {
1070 if (wid != WID_SCRD_BREAK_STR_EDIT_BOX) return;
1071
1072 /* Save the current string to static member so it can be restored next time the window is opened. */
1073 this->filter.break_string = this->break_editbox.text.GetText();
1074 this->break_string_filter.SetFilterTerm(this->filter.break_string);
1075 }
1076
1077 /**
1078 * Some data on this window has become invalid.

Callers

nothing calls this directly

Calls 2

SetFilterTermMethod · 0.80
GetTextMethod · 0.45

Tested by

no test coverage detected