Get the pause font size from a method that can be overridden by subclasses.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3448 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2005-03-30 19:51:06 +00:00
parent 74800cbf15
commit 74ccc09a97
@@ -111,7 +111,7 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel
PuzzleCodes.PUZZLE_MESSAGE_BUNDLE).xlate(pmsg);
_pauseLabel = new Label(pmsg, Label.BOLD | Label.OUTLINE,
Color.WHITE, Color.BLACK,
_fonts[_fonts.length - 2]);
_fonts[getPauseFont()]);
_pauseLabel.setTargetWidth(_bounds.width);
_pauseLabel.layout(this);
} else {
@@ -316,6 +316,14 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel
return fontSize;
}
/**
* Returns the puzzle font to use for the pause message.
*/
public int getPauseFont ()
{
return FONT_SIZES.length - 2;
}
/**
* Returns the number of different puzzle font sizes so that those who
* care to choose a font size out of the range of possible sizes can