Support extension.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3212 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ScoreAnimation.java,v 1.3 2004/08/27 02:20:27 mdb Exp $
|
// $Id: ScoreAnimation.java,v 1.4 2004/11/12 00:33:38 mdb Exp $
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
@@ -191,10 +191,22 @@ public class ScoreAnimation extends Animation
|
|||||||
if (_comp != null) {
|
if (_comp != null) {
|
||||||
gfx.setComposite(_comp);
|
gfx.setComposite(_comp);
|
||||||
}
|
}
|
||||||
_label.render(gfx, _x, _y);
|
paintLabels(gfx, _x, _y);
|
||||||
gfx.setComposite(ocomp);
|
gfx.setComposite(ocomp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Derived classes may wish to extend score animation and render more than
|
||||||
|
* just the standard single label.
|
||||||
|
*
|
||||||
|
* @param x the upper left coordinate of the animation.
|
||||||
|
* @param y the upper left coordinate of the animation.
|
||||||
|
*/
|
||||||
|
protected void paintLabels (Graphics2D gfx, int x, int y)
|
||||||
|
{
|
||||||
|
_label.render(gfx, x, y);
|
||||||
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
protected void toString (StringBuffer buf)
|
protected void toString (StringBuffer buf)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user