1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Hero exchange: Q button swaps army + artifacts instead of opening quests

This commit is contained in:
Dydzio
2025-02-15 18:50:14 +01:00
parent a6ab76d3ec
commit 567c88a924
2 changed files with 4 additions and 4 deletions

View File

@@ -163,8 +163,8 @@ CExchangeWindow::CExchangeWindow(ObjectInstanceID hero1, ObjectInstanceID hero2,
if(queryID.getNum() > 0)
quit->addCallback([=](){ LOCPLINT->cb->selectionMade(0, queryID); });
questlogButton[0] = std::make_shared<CButton>(Point( 10, qeLayout ? 39 : 44), AnimationPath::builtin("hsbtns4.def"), CButton::tooltip(CGI->generaltexth->heroscrn[0]), std::bind(&CExchangeWindow::questLogShortcut, this), EShortcut::ADVENTURE_QUEST_LOG);
questlogButton[1] = std::make_shared<CButton>(Point(740, qeLayout ? 39 : 44), AnimationPath::builtin("hsbtns4.def"), CButton::tooltip(CGI->generaltexth->heroscrn[0]), std::bind(&CExchangeWindow::questLogShortcut, this), EShortcut::ADVENTURE_QUEST_LOG);
questlogButton[0] = std::make_shared<CButton>(Point( 10, qeLayout ? 39 : 44), AnimationPath::builtin("hsbtns4.def"), CButton::tooltip(CGI->generaltexth->heroscrn[0]), std::bind(&CExchangeWindow::questLogShortcut, this));
questlogButton[1] = std::make_shared<CButton>(Point(740, qeLayout ? 39 : 44), AnimationPath::builtin("hsbtns4.def"), CButton::tooltip(CGI->generaltexth->heroscrn[0]), std::bind(&CExchangeWindow::questLogShortcut, this));
Rect barRect(5, 578, 725, 18);
statusbar = CGStatusBar::create(std::make_shared<CPicture>(background->getSurface(), barRect, 5, 578));

View File

@@ -88,10 +88,10 @@
"battleToggleQueue": "Z",
"battleUseCreatureSpell": ["F", "G"],
"battleWait": "W",
"exchangeArmySwap": "F10",
"exchangeArmySwap": ["F10", "Q"],
"exchangeArmyToLeft": [],
"exchangeArmyToRight": [],
"exchangeArtifactsSwap": "F11",
"exchangeArtifactsSwap": ["F11", "Q"],
"exchangeArtifactsToLeft": [],
"exchangeArtifactsToRight": [],
"exchangeBackpackLeft": [],