|
@@ -191,10 +191,10 @@ void BattleWindow::createQuickSpellWindow()
|
|
|
OBJECT_CONSTRUCTION;
|
|
|
|
|
|
quickSpellWindow = std::make_shared<QuickSpellPanel>(owner);
|
|
|
- quickSpellWindow->moveTo(Point(pos.x - 55, pos.y));
|
|
|
+ quickSpellWindow->moveTo(Point(pos.x - 52, pos.y));
|
|
|
|
|
|
unitActionWindow = std::make_shared<UnitActionPanel>(owner);
|
|
|
- unitActionWindow->moveTo(Point(pos.x + pos.w + 3, pos.y));
|
|
|
+ unitActionWindow->moveTo(Point(pos.x + pos.w, pos.y));
|
|
|
|
|
|
if(settings["battle"]["enableQuickSpellPanel"].Bool())
|
|
|
showStickyQuickSpellWindow();
|
|
@@ -383,37 +383,37 @@ void BattleWindow::updateQueue()
|
|
|
|
|
|
void BattleWindow::setPositionInfoWindow()
|
|
|
{
|
|
|
- int xOffsetAttacker = quickSpellWindow->isDisabled() ? 0 : -53;
|
|
|
- int xOffsetDefender = unitActionWindow->isDisabled() ? 0 : 53;
|
|
|
+ int xOffsetAttacker = quickSpellWindow->isDisabled() ? 0 : -51;
|
|
|
+ int xOffsetDefender = unitActionWindow->isDisabled() ? 0 : 51;
|
|
|
|
|
|
int yOffsetAttacker = attackerTimerWidget ? attackerTimerWidget->pos.h + 9 : 0;
|
|
|
int yOffsetDefender = defenderTimerWidget ? defenderTimerWidget->pos.h + 9 : 0;
|
|
|
|
|
|
if(defenderHeroWindow)
|
|
|
{
|
|
|
- Point position = (ENGINE->screenDimensions().x >= 1000)
|
|
|
- ? Point(pos.x + pos.w + 3 + xOffsetDefender, pos.y - 1 + yOffsetDefender)
|
|
|
+ Point position = (ENGINE->screenDimensions().x >= 960)
|
|
|
+ ? Point(pos.x + pos.w - 1 + xOffsetDefender, pos.y - 1 + yOffsetDefender)
|
|
|
: Point(pos.x + pos.w -79, pos.y + 195);
|
|
|
defenderHeroWindow->moveTo(position);
|
|
|
}
|
|
|
if(attackerHeroWindow)
|
|
|
{
|
|
|
- Point position = (ENGINE->screenDimensions().x >= 1000)
|
|
|
- ? Point(pos.x - 81 + xOffsetAttacker, pos.y - 1 + yOffsetAttacker)
|
|
|
+ Point position = (ENGINE->screenDimensions().x >= 960)
|
|
|
+ ? Point(pos.x - 77 + xOffsetAttacker, pos.y - 1 + yOffsetAttacker)
|
|
|
: Point(pos.x + 1, pos.y + 195);
|
|
|
attackerHeroWindow->moveTo(position);
|
|
|
}
|
|
|
if(defenderStackWindow)
|
|
|
{
|
|
|
- Point position = (ENGINE->screenDimensions().x >= 1000)
|
|
|
- ? Point(pos.x + pos.w + 3 + xOffsetDefender, defenderHeroWindow ? defenderHeroWindow->pos.y + 210 : pos.y - 1 + yOffsetDefender)
|
|
|
+ Point position = (ENGINE->screenDimensions().x >= 960)
|
|
|
+ ? Point(pos.x + pos.w - 1 + xOffsetDefender, defenderHeroWindow ? defenderHeroWindow->pos.y + 210 : pos.y - 1 + yOffsetDefender)
|
|
|
: Point(pos.x + pos.w -79, defenderHeroWindow ? defenderHeroWindow->pos.y : pos.y + 195);
|
|
|
defenderStackWindow->moveTo(position);
|
|
|
}
|
|
|
if(attackerStackWindow)
|
|
|
{
|
|
|
- Point position = (ENGINE->screenDimensions().x >= 1000)
|
|
|
- ? Point(pos.x - 81 + xOffsetAttacker, attackerHeroWindow ? attackerHeroWindow->pos.y + 210 : pos.y - 1 + yOffsetAttacker)
|
|
|
+ Point position = (ENGINE->screenDimensions().x >= 960)
|
|
|
+ ? Point(pos.x - 77 + xOffsetAttacker, attackerHeroWindow ? attackerHeroWindow->pos.y + 210 : pos.y - 1 + yOffsetAttacker)
|
|
|
: Point(pos.x + 1, attackerHeroWindow ? attackerHeroWindow->pos.y : pos.y + 195);
|
|
|
attackerStackWindow->moveTo(position);
|
|
|
}
|