Fixed ship tooltip not being positioned correctly when an effect radius was displayed
This commit is contained in:
parent
156a2ae4bd
commit
452f3e5d10
1
TODO.md
1
TODO.md
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue