1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Support for Tree of knowledge and minor changes.

This commit is contained in:
Michał W. Urbańczyk
2008-08-22 12:21:09 +00:00
parent 1c7e3718a7
commit 0607ec70cf
16 changed files with 256 additions and 81 deletions

View File

@@ -413,6 +413,18 @@ void CClient::process(int what)
playerint[sd.player]->showSelDialog(str,comps,sd.id);
break;
}
case 2002:
{
YesNoDialog ynd;
*serv >> ynd;
std::cout << "Showing yes/no dialog " <<std::endl;
std::vector<Component*> comps;
for(int i=0;i<ynd.components.size();i++)
comps.push_back(&ynd.components[i]);
std::string str = toString(ynd.text);
playerint[ynd.player]->showYesNoDialog(str,comps,ynd.id);
break;
}
case 3000:
{
BattleStart bs;