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