From: Daniel H. <wik...@us...> - 2006-08-13 23:15:53
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/client/entity In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv32308/src/games/stendhal/client/entity Modified Files: Sign.java Log Message: changed newline behavior for signs/blackboards before, you needed "|\n" to create a linebreak. now, you only need "\n". thereby fixed bug which caused too many linebreaks in shop blackboards (semos tavern). in adminsign.groovy you can still use | to create a newline. Index: Sign.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/entity/Sign.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** Sign.java 22 May 2006 22:03:42 -0000 1.18 --- Sign.java 13 Aug 2006 23:15:51 -0000 1.19 *************** *** 45,49 **** Graphics g2d = screen.expose(); ! String[] lines = text.split("\\|"); int lineLengthPixels = 0; --- 45,49 ---- Graphics g2d = screen.expose(); ! String[] lines = text.split("\n"); int lineLengthPixels = 0; *************** *** 106,111 **** if (action.equals("Look")) { gameObjects.addText(this, textImage, textPersistTime); ! StendhalClient.get().addEventLine( ! "You read \"" + text.replace("|", "\n") + "\"", signColor); } } --- 106,110 ---- if (action.equals("Look")) { gameObjects.addText(this, textImage, textPersistTime); ! StendhalClient.get().addEventLine("You read \"" + text + "\"", signColor); } } |