mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-15 11:46:56 +02:00
Apply suggestions from code review
Co-authored-by: Nordsoft91 <nordsoft@yahoo.com>
This commit is contained in:
parent
81dec1405f
commit
beeef8527f
@ -1244,8 +1244,8 @@ void CCastleInterface::recreateIcons()
|
|||||||
hall = std::make_shared<CTownInfo>(80, 413, town, true);
|
hall = std::make_shared<CTownInfo>(80, 413, town, true);
|
||||||
fort = std::make_shared<CTownInfo>(122, 413, town, false);
|
fort = std::make_shared<CTownInfo>(122, 413, town, false);
|
||||||
|
|
||||||
fastArmyPurchase = std::make_shared<CButton>(Point(122, 413), "itmcl.def", CButton::tooltip(), [&](){builds->enterToTheQuickRecruitmentWindow();});
|
fastArmyPurchase = std::make_shared<CButton>(Point(122, 413), "itmcl.def", CButton::tooltip(), [&](){ builds->enterToTheQuickRecruitmentWindow(); });
|
||||||
fastArmyPurchase->setImageOrder(town->fortLevel()-1, town->fortLevel()-1, town->fortLevel()-1, town->fortLevel()-1);
|
fastArmyPurchase->setImageOrder(town->fortLevel() - 1, town->fortLevel() - 1, town->fortLevel() - 1, town->fortLevel() - 1);
|
||||||
fastArmyPurchase->setAnimateLonelyFrame(true);
|
fastArmyPurchase->setAnimateLonelyFrame(true);
|
||||||
|
|
||||||
creainfo.clear();
|
creainfo.clear();
|
||||||
|
@ -35,7 +35,7 @@ void QuickRecruitmentWindow::setCancelButton()
|
|||||||
|
|
||||||
void QuickRecruitmentWindow::setBuyButton()
|
void QuickRecruitmentWindow::setBuyButton()
|
||||||
{
|
{
|
||||||
buyButton = std::make_shared<CButton>(Point((pos.w/2)-32, 418), "IBY6432.DEF", CButton::tooltip(), [&](){ purchaseUnits(); }, SDLK_RETURN);
|
buyButton = std::make_shared<CButton>(Point((pos.w / 2) - 32, 418), "IBY6432.DEF", CButton::tooltip(), [&](){ purchaseUnits(); }, SDLK_RETURN);
|
||||||
cancelButton->assignedKeys.insert(SDLK_ESCAPE);
|
cancelButton->assignedKeys.insert(SDLK_ESCAPE);
|
||||||
buyButton->setImageOrder(0, 1, 2, 3);
|
buyButton->setImageOrder(0, 1, 2, 3);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user