1
0
Fork 0

Fixed ship tooltip not being positioned correctly when an effect radius was displayed

This commit is contained in:
Michaël Lemaire 2017-10-01 23:00:23 +02:00
parent 156a2ae4bd
commit 452f3e5d10
2 changed files with 1 additions and 5 deletions

View file

@ -40,7 +40,6 @@ Battle
* Remove dead ships from ship list and play order
* Add quick animation of playing ship indicator, on ship change
* Toggle bar/text display in power section of action bar
* Fix ship's active effect radius pushing the tooltip far from the ship
* Display effects description instead of attribute changes
* End the battle as soon as victory or defeat condition is detected (do not wait for the turn to end)
* Show a cooldown indicator on move action icon, if the simulation would cause the engine to overheat

View file

@ -65,10 +65,7 @@ module TK.SpaceTac.UI {
}
if (sprite) {
let bounds = sprite.getBounds();
bounds.x = sprite.worldPosition.x + sprite.width * sprite.worldScale.x * 0.5; // TODO Should not be necessary
bounds.y = sprite.worldPosition.y - sprite.height * sprite.worldScale.y * 0.5;
this.container.show(sprite.getBounds());
this.container.show(sprite.frame.getBounds());
}
}
}