From d070953c28cc70732030a5f05e0a2702cde0079b Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 11 Sep 2023 19:49:06 +0300 Subject: [PATCH] Fix open backpack strings --- Mods/vcmi/config/vcmi/ukrainian.json | 2 ++ client/CServerHandler.h | 1 + client/windows/CHeroWindow.cpp | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Mods/vcmi/config/vcmi/ukrainian.json b/Mods/vcmi/config/vcmi/ukrainian.json index ed557940a..b41fe68cc 100644 --- a/Mods/vcmi/config/vcmi/ukrainian.json +++ b/Mods/vcmi/config/vcmi/ukrainian.json @@ -173,6 +173,8 @@ "vcmi.heroWindow.openCommander.hover" : "Відкрити вікно командира", "vcmi.heroWindow.openCommander.help" : "Показує інформацію про командира героя", + "vcmi.heroWindow.openBackpack.hover" : "Відкрити вікно рюкзака з артефактами", + "vcmi.heroWindow.openBackpack.help" : "Відкриває вікно, що дозволяє легше керувати рюкзаком артефактів", "vcmi.commanderWindow.artifactMessage" : "Бажаєте передати цей артефакт герою?", diff --git a/client/CServerHandler.h b/client/CServerHandler.h index 1c105e7cc..1b4f712de 100644 --- a/client/CServerHandler.h +++ b/client/CServerHandler.h @@ -149,6 +149,7 @@ public: void sendStartGame(bool allowOnlyAI = false) const override; bool validateGameStart(bool allowOnlyAI = false) const; + void debugStartTest(std::string filename, bool save = false); void startGameplay(VCMI_LIB_WRAP_NAMESPACE(CGameState) * gameState = nullptr); void endGameplay(bool closeConnection = true, bool restart = false); diff --git a/client/windows/CHeroWindow.cpp b/client/windows/CHeroWindow.cpp index 06f4e6d4e..55f26c829 100644 --- a/client/windows/CHeroWindow.cpp +++ b/client/windows/CHeroWindow.cpp @@ -87,7 +87,7 @@ CHeroWindow::CHeroWindow(const CGHeroInstance * hero) if(settings["general"]["enableUiEnhancements"].Bool()) { questlogButton = std::make_shared(Point(314, 429), "hsbtns4.def", CButton::tooltip(heroscrn[0]), [=](){ LOCPLINT->showQuestLog(); }, EShortcut::ADVENTURE_QUEST_LOG); - backpackButton = std::make_shared(Point(424, 429), "buttons/backpack", CButton::tooltipLocalized("vcmi.heroWindow.Backpack"), [=](){ createBackpackWindow(); }, EShortcut::HERO_BACKPACK); + backpackButton = std::make_shared(Point(424, 429), "buttons/backpack", CButton::tooltipLocalized("vcmi.heroWindow.openBackpack"), [=](){ createBackpackWindow(); }, EShortcut::HERO_BACKPACK); backpackButton->addOverlay(std::make_shared("buttons/backpackButtonIcon")); dismissButton = std::make_shared(Point(534, 429), "hsbtns2.def", CButton::tooltip(heroscrn[28]), [=](){ dismissCurrent(); }, EShortcut::HERO_DISMISS); }