Permit changing media render order as long as we're not in a tick. Removes the need to remove and re-add sprites, which was cancelling their paths.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3551 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2005-05-13 22:22:56 +00:00
parent 3722bc3697
commit a40de2ec51
3 changed files with 22 additions and 9 deletions
@@ -684,9 +684,7 @@ public abstract class CardPanel extends VirtualMediaPanel
continue;
}
if (updateLayers) {
removeSprite(cs);
cs.setRenderOrder(i);
addSprite(cs);
}
LinePath adjust = new LinePath(new Point(getHandX(size, i),
_handLocation.y), adjustDuration);
@@ -805,9 +803,7 @@ public abstract class CardPanel extends VirtualMediaPanel
int size = _boardSprites.size(), adjustment = layer - highest;
for (int i = 0; i < size; i++) {
CardSprite cs = (CardSprite)_boardSprites.get(i);
removeSprite(cs);
cs.setRenderOrder(cs.getRenderOrder() + adjustment);
addSprite(cs);
}
}