1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-13 01:20:34 +02:00

* partially done spell window

This commit is contained in:
mateuszb
2008-09-10 12:19:48 +00:00
parent 387f8230cf
commit 11cef89810
3 changed files with 165 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#include "hch/CObjectHandler.h"
#include <boost/thread.hpp>
#include "map.h"
#include "client/CSpellWindow.h"
#pragma warning (disable : 4355)
extern TTF_Font * TNRB16, *TNR, *GEOR13, *GEORXX; //fonts
@ -1001,6 +1002,14 @@ void CAdvMapInt::fmoveHero()
}
void CAdvMapInt::fshowSpellbok()
{
if (selection->ID!=HEROI_TYPE) //checking necessary values
return;
LOCPLINT->curint->deactivate();
CSpellWindow * spellWindow = new CSpellWindow(genRect(595, 620, 90, 2), ((const CGHeroInstance*)LOCPLINT->adventureInt->selection));
spellWindow->activate();
LOCPLINT->objsToBlit.push_back(spellWindow);
}
void CAdvMapInt::fadventureOPtions()
{