mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Most of buttons created in cpp now have assigned shortcut
This commit is contained in:
@ -45,7 +45,7 @@ void CreaturePurchaseCard::initMinButton()
|
||||
|
||||
void CreaturePurchaseCard::initCreatureSwitcherButton()
|
||||
{
|
||||
creatureSwitcher = std::make_shared<CButton>(Point(pos.x + 18, pos.y-37), AnimationPath::builtin("iDv6432.def"), CButton::tooltip(), [&](){ switchCreatureLevel(); });
|
||||
creatureSwitcher = std::make_shared<CButton>(Point(pos.x + 18, pos.y-37), AnimationPath::builtin("iDv6432.def"), CButton::tooltip(), [&](){ switchCreatureLevel(); }, EShortcut::RECRUITMENT_SWITCH_LEVEL);
|
||||
}
|
||||
|
||||
void CreaturePurchaseCard::switchCreatureLevel()
|
||||
|
Reference in New Issue
Block a user