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:
@@ -111,7 +111,7 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel
|
|||||||
PuzzleCodes.PUZZLE_MESSAGE_BUNDLE).xlate(pmsg);
|
PuzzleCodes.PUZZLE_MESSAGE_BUNDLE).xlate(pmsg);
|
||||||
_pauseLabel = new Label(pmsg, Label.BOLD | Label.OUTLINE,
|
_pauseLabel = new Label(pmsg, Label.BOLD | Label.OUTLINE,
|
||||||
Color.WHITE, Color.BLACK,
|
Color.WHITE, Color.BLACK,
|
||||||
_fonts[_fonts.length - 2]);
|
_fonts[getPauseFont()]);
|
||||||
_pauseLabel.setTargetWidth(_bounds.width);
|
_pauseLabel.setTargetWidth(_bounds.width);
|
||||||
_pauseLabel.layout(this);
|
_pauseLabel.layout(this);
|
||||||
} else {
|
} else {
|
||||||
@@ -316,6 +316,14 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel
|
|||||||
return fontSize;
|
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
|
* 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
|
* care to choose a font size out of the range of possible sizes can
|
||||||
|
|||||||
Reference in New Issue
Block a user