From: Hendrik B. <nh...@us...> - 2010-03-27 16:32:04
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/wt In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv19368/src/games/stendhal/client/gui/wt Modified Files: GroundContainer.java Log Message: new command /clickmode to switch between single and double click for walking (fixes #2977326) Index: GroundContainer.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/wt/GroundContainer.java,v retrieving revision 1.75 retrieving revision 1.76 diff -C2 -d -r1.75 -r1.76 *** GroundContainer.java 27 Mar 2010 09:41:05 -0000 1.75 --- GroundContainer.java 27 Mar 2010 16:31:55 -0000 1.76 *************** *** 25,28 **** --- 25,29 ---- import games.stendhal.client.gui.wt.core.WtDraggable; import games.stendhal.client.gui.wt.core.WtDropTarget; + import games.stendhal.client.gui.wt.core.WtWindowManager; import java.awt.Cursor; *************** *** 155,161 **** } else if (getWtPanelAt(p) == null) { if (windowWasActiveOnMousePressed) { ! createAndSendMoveToAction(point); } ! return true; } --- 156,165 ---- } else if (getWtPanelAt(p) == null) { if (windowWasActiveOnMousePressed) { ! boolean doubleClick = Boolean.parseBoolean(WtWindowManager.getInstance().getProperty("ui.doubleclick", "false")); ! if (!doubleClick) { ! createAndSendMoveToAction(point); ! } } ! return false; } |