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:
@@ -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));
|
||||
|
@@ -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": [],
|
||||
|
Reference in New Issue
Block a user