1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-05 15:05:40 +02:00

Merge pull request #595 from dydzio0614/BattleConsoleButtons

Fix wrong battle console button image
This commit is contained in:
Alexander Shishkin 2019-05-21 10:05:01 +03:00 committed by GitHub
commit 54bbf2abb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,8 @@ CBattleInterface::CBattleInterface(const CCreatureSet *army1, const CCreatureSet
bDefence->assignedKeys.insert(SDLK_SPACE);
bConsoleUp = std::make_shared<CButton>(Point(624, 561), "ComSlide.def", std::make_pair("", ""), std::bind(&CBattleInterface::bConsoleUpf,this), SDLK_UP);
bConsoleDown = std::make_shared<CButton>(Point(624, 580), "ComSlide.def", std::make_pair("", ""), std::bind(&CBattleInterface::bConsoleDownf,this), SDLK_DOWN);
bConsoleDown->setImageOrder(2, 3, 4, 5);
bConsoleUp->setImageOrder(0, 1, 0, 0);
bConsoleDown->setImageOrder(2, 3, 2, 2);
console = std::make_shared<CBattleConsole>();
console->pos.x += 211;