Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarCharSelection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/frontend/StarCharSelection.cpp')
-rw-r--r--source/frontend/StarCharSelection.cpp4
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);
}