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
This commit is contained in:
parent
3b40e89b32
commit
46f4b5b07e
@ -0,0 +1,9 @@
|
|||||||
|
[{"op":"merge", "path":"", "value": {
|
||||||
|
"createCharButton" : {
|
||||||
|
"type" : "button",
|
||||||
|
"base" : "/interface/title/createcharacter.png",
|
||||||
|
"hover" : "/interface/title/createcharacterover.png",
|
||||||
|
"position" : [23, 241],
|
||||||
|
"pressedOffset" : [0, 0]
|
||||||
|
}
|
||||||
|
}}]
|
@ -27,6 +27,7 @@ CharSelectionPane::CharSelectionPane(PlayerStoragePtr playerStorage,
|
|||||||
guiReader.registerCallback("charSelector2", [=](Widget*) { selectCharacter(1); });
|
guiReader.registerCallback("charSelector2", [=](Widget*) { selectCharacter(1); });
|
||||||
guiReader.registerCallback("charSelector3", [=](Widget*) { selectCharacter(2); });
|
guiReader.registerCallback("charSelector3", [=](Widget*) { selectCharacter(2); });
|
||||||
guiReader.registerCallback("charSelector4", [=](Widget*) { selectCharacter(3); });
|
guiReader.registerCallback("charSelector4", [=](Widget*) { selectCharacter(3); });
|
||||||
|
guiReader.registerCallback("createCharButton", [=](Widget*) { m_createCallback(); });
|
||||||
|
|
||||||
guiReader.construct(root.assets()->json("/interface/windowconfig/charselection.config"), this);
|
guiReader.construct(root.assets()->json("/interface/windowconfig/charselection.config"), this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user