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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user