Update of /cvsroot/rails/18xx/rails/ui/swing
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv11394/rails/ui/swing
Modified Files:
ORWindow.java
Log Message:
NoMapMode: Does not display the map (set to invisible).
Index: ORWindow.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/ui/swing/ORWindow.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** ORWindow.java 31 Jan 2010 22:22:34 -0000 1.34
--- ORWindow.java 17 Feb 2010 00:21:33 -0000 1.35
***************
*** 80,84 ****
setLocation(10, 10);
setVisible(false);
! setSize(800, 600);
final JFrame frame = this;
--- 80,91 ----
setLocation(10, 10);
setVisible(false);
!
! // make map and upgrade panels invisible for noMapMode
! if (gameUIManager.getGameParameterAsBoolean(GuiDef.Parm.NO_MAP_MODE)) {
! mapPanel.setVisible(false);
! upgradePanel.setVisible(false);
! setSize(800, 500);
! } else
! setSize(800, 600);
final JFrame frame = this;
|