Yet more bits.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2880 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-11-26 02:11:34 +00:00
parent 5424a66006
commit 2f0db5ea0f
2 changed files with 22 additions and 16 deletions
@@ -1,5 +1,5 @@
//
// $Id: PuzzleBoardView.java,v 1.2 2003/11/26 02:07:45 mdb Exp $
// $Id: PuzzleBoardView.java,v 1.3 2003/11/26 02:11:34 mdb Exp $
package com.threerings.puzzle.client;
@@ -26,11 +26,9 @@ import com.threerings.media.image.Mirage;
import com.threerings.media.sprite.Sprite;
import com.threerings.media.sprite.SpriteManager;
// import com.threerings.yohoho.client.YoUI;
import com.threerings.puzzle.Log;
import com.threerings.puzzle.client.ScoreAnimation;
import com.threerings.puzzle.data.Board;
import com.threerings.puzzle.data.PuzzleCodes;
import com.threerings.puzzle.data.PuzzleConfig;
import com.threerings.puzzle.util.PuzzleContext;
@@ -92,17 +90,19 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel
*/
public void setPaused (boolean paused)
{
// if (paused) {
// _pauseLabel = new Label(
// YoUI.puzzle.getBundle().get(_pctrl.getPauseString()),
// Label.BOLD | Label.OUTLINE, Color.WHITE, Color.BLACK,
// _fonts[_fonts.length - 2]);
// _pauseLabel.setTargetWidth(_bounds.width);
// _pauseLabel.layout(this);
// } else {
// _pauseLabel = null;
// }
// repaint();
if (paused) {
String pmsg = _pctrl.getPauseString();
pmsg = _ctx.getMessageManager().getBundle(
PuzzleCodes.PUZZLE_MESSAGE_BUNDLE).xlate(pmsg);
_pauseLabel = new Label(pmsg, Label.BOLD | Label.OUTLINE,
Color.WHITE, Color.BLACK,
_fonts[_fonts.length - 2]);
_pauseLabel.setTargetWidth(_bounds.width);
_pauseLabel.layout(this);
} else {
_pauseLabel = null;
}
repaint();
}
/**
@@ -1,10 +1,11 @@
//
// $Id: PuzzleContext.java,v 1.1 2003/11/26 01:42:34 mdb Exp $
// $Id: PuzzleContext.java,v 1.2 2003/11/26 02:11:34 mdb Exp $
package com.threerings.puzzle.util;
import com.threerings.util.KeyDispatcher;
import com.threerings.util.KeyboardManager;
import com.threerings.util.MessageManager;
import com.threerings.media.FrameManager;
import com.threerings.media.sound.SoundManager;
@@ -21,6 +22,11 @@ public interface PuzzleContext
*/
public String getUsername ();
/**
* Returns a reference to the message manager used by the client.
*/
public MessageManager getMessageManager ();
/**
* Provides access to the frame manager.
*/