Fixed click-to-unpause for non-blockade duty puzzling...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2995 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: PuzzleController.java,v 1.5 2004/04/14 00:36:49 ray Exp $
|
// $Id: PuzzleController.java,v 1.6 2004/04/28 18:57:55 ray Exp $
|
||||||
|
|
||||||
package com.threerings.puzzle.client;
|
package com.threerings.puzzle.client;
|
||||||
|
|
||||||
@@ -153,12 +153,15 @@ public abstract class PuzzleController extends GameController
|
|||||||
// if we're moving focus to chat..
|
// if we're moving focus to chat..
|
||||||
if (chatting) {
|
if (chatting) {
|
||||||
// ...enable "click to unchat" mode in the puzzle board view
|
// ...enable "click to unchat" mode in the puzzle board view
|
||||||
_panel.addMouseListener(new MouseAdapter() {
|
MouseAdapter unpauser = new MouseAdapter() {
|
||||||
public void mousePressed (MouseEvent event) {
|
public void mousePressed (MouseEvent event) {
|
||||||
setChatting(false);
|
setChatting(false);
|
||||||
_panel.removeMouseListener(this);
|
_panel.removeMouseListener(this);
|
||||||
|
_panel.getBoardView().removeMouseListener(this);
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
_panel.addMouseListener(unpauser);
|
||||||
|
_panel.getBoardView().addMouseListener(unpauser);
|
||||||
}
|
}
|
||||||
|
|
||||||
// update the chatting state
|
// update the chatting state
|
||||||
|
|||||||
Reference in New Issue
Block a user