v0.5.0: quickslot targeting indicator now always appears ontop of character sprites

This commit is contained in:
Evan Debenham 2016-12-29 03:53:24 -05:00
parent 6beae11e03
commit c2aaae4549

View File

@ -175,7 +175,7 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
Dungeon.visible[lastTarget.pos]) { Dungeon.visible[lastTarget.pos]) {
targeting = true; targeting = true;
lastTarget.sprite.parent.add( crossM ); lastTarget.sprite.parent.addToFront( crossM );
crossM.point( DungeonTilemap.tileToWorld( lastTarget.pos ) ); crossM.point( DungeonTilemap.tileToWorld( lastTarget.pos ) );
crossB.x = x + (width - crossB.width) / 2; crossB.x = x + (width - crossB.width) / 2;
crossB.y = y + (height - crossB.height) / 2; crossB.y = y + (height - crossB.height) / 2;