From: Stefan F. <ste...@us...> - 2010-02-17 22:03:36
|
Update of /cvsroot/rails/18xx/rails/ui/swing In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv17084/rails/ui/swing Modified Files: ORUIManager.java Log Message: Added noMap support for 1856 (includes ClosePrivate actions) some minor fixes to corrections Index: ORUIManager.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/ui/swing/ORUIManager.java,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** ORUIManager.java 14 Feb 2010 20:48:20 -0000 1.54 --- ORUIManager.java 17 Feb 2010 22:02:56 -0000 1.55 *************** *** 318,321 **** --- 318,325 ---- useSpecialProperty ((UseSpecialProperty)actions.get(0)); + } else if (actions.get(0) instanceof CorrectionAction) { + + processCorrectionAction((CorrectionAction)actions.get(0)); + } *************** *** 1155,1158 **** --- 1159,1169 ---- } + protected void processCorrectionAction(CorrectionAction action) { + + gameUIManager.processOnServer((PossibleAction)action); + + } + + public void updateStatus() { *************** *** 1376,1380 **** } } ! checkForGameSpecificActions(); --- 1387,1402 ---- } } ! ! // Close Private ! if (possibleActions.contains(ClosePrivate.class)) { ! for (ClosePrivate action: possibleActions.getType(ClosePrivate.class)) { ! if (!action.isInCorrectionMenu()) ! orPanel.addSpecialAction(action, action.getInfo()); ! } ! } ! ! // Correction Actions ! ! checkForGameSpecificActions(); |