1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Moved all GUI handling from BattleInterface to BattleControlPanel

This commit is contained in:
Ivan Savenko
2022-12-21 17:02:53 +02:00
parent 6138ff1670
commit c835a84051
24 changed files with 396 additions and 377 deletions

View File

@@ -982,9 +982,9 @@ bool PointEffectAnimation::init()
if (screenFill())
{
for(int i=0; i * first->width() < owner.pos.w ; ++i)
for(int j=0; j * first->height() < owner.pos.h ; ++j)
positions.push_back(Point( owner.pos.x + i * first->width(), owner.pos.y + j * first->height()));
for(int i=0; i * first->width() < owner.fieldController->pos.w ; ++i)
for(int j=0; j * first->height() < owner.fieldController->pos.h ; ++j)
positions.push_back(Point( owner.fieldController->pos.x + i * first->width(), owner.fieldController->pos.y + j * first->height()));
}
BattleEffect be;