1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

* working info about collecting resources in infoBar

* minor fixes
This commit is contained in:
Michał W. Urbańczyk
2007-12-22 18:04:34 +00:00
parent e427974875
commit daa9217979
4 changed files with 20 additions and 3 deletions

View File

@@ -1283,6 +1283,15 @@ void CInfoBar::newDay(int Day)
void CInfoBar::showComp(SComponent * comp, int time)
{
SDL_Surface * b = CGI->bitmaph->loadBitmap("ADSTATOT.bmp");
blitAt(b,pos.x+8,pos.y+11);
blitAt(comp->getImg(),pos.x+52,pos.y+54);
printAtMiddle(comp->subtitle,pos.x+91,pos.y+158,GEOR13,zwykly);
printAtMiddleWB(comp->description,pos.x+94,pos.y+31,GEOR13,26,zwykly);
SDL_FreeSurface(b);
TimeInterested::activate();
mode = 6;
toNextTick = time;
}
void CInfoBar::tick()
@@ -1301,6 +1310,13 @@ void CInfoBar::tick()
toNextTick = 150;
blitAnim(mode);
}
else if (mode == 6)
{
TimeInterested::deactivate();
toNextTick = -1;
mode = 5;
draw();
}
}