From 46f4b5b07e762bff563ec20d2a1c7ac6e2699b84 Mon Sep 17 00:00:00 2001 From: WasabiRaptor Date: Wed, 13 Nov 2024 17:16:19 -0500 Subject: add dedicated create character button to the CharSelectionPane so people don't have to scroll to the bottom of their character list to create new characters --- source/frontend/StarCharSelection.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/frontend/StarCharSelection.cpp') diff --git a/source/frontend/StarCharSelection.cpp b/source/frontend/StarCharSelection.cpp index 50b527d..4c56d59 100644 --- a/source/frontend/StarCharSelection.cpp +++ b/source/frontend/StarCharSelection.cpp @@ -27,6 +27,7 @@ CharSelectionPane::CharSelectionPane(PlayerStoragePtr playerStorage, guiReader.registerCallback("charSelector2", [=](Widget*) { selectCharacter(1); }); guiReader.registerCallback("charSelector3", [=](Widget*) { selectCharacter(2); }); guiReader.registerCallback("charSelector4", [=](Widget*) { selectCharacter(3); }); + guiReader.registerCallback("createCharButton", [=](Widget*) { m_createCallback(); }); guiReader.construct(root.assets()->json("/interface/windowconfig/charselection.config"), this); } -- cgit v1.2.3