diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-02-23 09:03:38 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-02-23 09:03:38 +1100 |
commit | 5dda9f47306a6eea5eb4e676c68f81b8285d9dfe (patch) | |
tree | fb41dea87decaf51643430c1ef64dae69e187d71 /source/frontend/StarCharSelection.cpp | |
parent | afcbe910a5e285b25f6961e28943cdf101aa810e (diff) |
add dismiss on swap checkbox
Diffstat (limited to 'source/frontend/StarCharSelection.cpp')
-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 6a61dcf..2c00b42 100644 --- a/source/frontend/StarCharSelection.cpp +++ b/source/frontend/StarCharSelection.cpp @@ -39,6 +39,10 @@ CharSelectionPane::CharSelectionPane(PlayerStoragePtr playerStorage, guiReader.registerCallback("clearSearch", [=](Widget*) { fetchChild<TextBoxWidget>("searchCharacter")->setText(""); }); + guiReader.registerCallback("toggleDismissCheckbox", [=](Widget* widget) { + auto configuration = Root::singleton().configuration(); + configuration->set("characterSwapDismisses", as<ButtonWidget>(widget)->isChecked()); + }); guiReader.construct(root.assets()->json("/interface/windowconfig/charselection.config"), this); } |