diff options
Diffstat (limited to 'source/frontend')
-rw-r--r-- | source/frontend/StarCharSelection.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/frontend/StarCharSelection.cpp b/source/frontend/StarCharSelection.cpp index 2bf4f93..6cbfb9b 100644 --- a/source/frontend/StarCharSelection.cpp +++ b/source/frontend/StarCharSelection.cpp @@ -36,6 +36,10 @@ CharSelectionPane::CharSelectionPane(PlayerStoragePtr playerStorage, m_search = convert<TextBoxWidget>(obj)->getText().trim().toLower(); updateCharacterPlates(); }); + guiReader.registerCallback("clearSearch", [=](Widget*) { + auto searchCharacter = fetchChild<TextBoxWidget>("searchCharacter"); + searchCharacter->setText(""); + }); guiReader.construct(root.assets()->json("/interface/windowconfig/charselection.config"), this); } |