mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Partial interactive mode for Commander level-up dialog. It is possible to select secondary skill.
This commit is contained in:
@ -543,9 +543,7 @@ void CommanderLevelUp::applyCl( CClient *cl )
|
||||
if (commander->armyObj && vstd::contains(cl->playerint, player)) //is it possible for Commander to exist beyond armed instance?
|
||||
{
|
||||
auto callback = boost::function<void(ui32)>(boost::bind(&CCallback::selectionMade,cl->callbacks[player].get(),_1,id));
|
||||
|
||||
cl->playerint[player]->showBlockingDialog("Commander got level", std::vector<Component>(), id, -1, false, true);
|
||||
//cl->playerint[player]->commanderGotLevel(commander, skills, callback);
|
||||
cl->playerint[player]->commanderGotLevel(commander, skills, callback);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user