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:
@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user