1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

* showing spell effects affecting stack in creature info window

* more appropriate coloring of stack amount box when stack is affected by a spell
This commit is contained in:
mateuszb
2008-12-21 11:07:23 +00:00
parent 99691b0f11
commit 6fc8ed9365
6 changed files with 93 additions and 11 deletions

View File

@ -3302,6 +3302,21 @@ CCreInfoWindow::CCreInfoWindow(int Cid, int Type, int creatureCount, StackState
{
printAtWB(c->abilityText,17,231,GEOR13,35,zwykly,bitmap);
}
//spell effects
if(State)
{
int printed=0; //how many effect pics have been printed
for(std::set<int>::const_iterator it = State->effects.begin(); it!=State->effects.end(); ++it)
{
blitAt(graphics->spellEffectsPics->ourImages[*it + 1].bitmap, 127 + 52 * printed, 186, bitmap);
++printed;
if(printed >= 3)
{
break;
}
}
}
}
CCreInfoWindow::~CCreInfoWindow()
{