From 74ccc09a97c210fd083bf569a02159323297bce5 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Wed, 30 Mar 2005 19:51:06 +0000 Subject: [PATCH] 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 --- .../com/threerings/puzzle/client/PuzzleBoardView.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/puzzle/client/PuzzleBoardView.java b/src/java/com/threerings/puzzle/client/PuzzleBoardView.java index aa1c659be..b4b62aa28 100644 --- a/src/java/com/threerings/puzzle/client/PuzzleBoardView.java +++ b/src/java/com/threerings/puzzle/client/PuzzleBoardView.java @@ -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