1
0
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:
DjWarmonger
2012-07-03 08:07:34 +00:00
parent 406346a6ab
commit ac997b8214
5 changed files with 143 additions and 43 deletions

View File

@ -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);
}
}