1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

fix + extended popup

This commit is contained in:
Laserlicht
2025-07-18 23:41:06 +02:00
parent 0f44aa061e
commit 6e61cb0cf3
4 changed files with 4 additions and 3 deletions

View File

@@ -112,6 +112,7 @@ ShortcutElement::ShortcutElement(std::string id, JsonNode keys, int elem)
buttonEdit->addCallback([id](){
auto str = MetaString::createFromTextID("vcmi.shortcuts.editButton.popup");
str.replaceTextID("vcmi.shortcuts.shortcut." + id);
str.replaceRawString(id);
CInfoWindow::showInfoDialog(str.toString(), {});
});
if(elem < MAX_LINES - 1)