From 6becba772525841f000b54677e38bae9b4b6f595 Mon Sep 17 00:00:00 2001 From: zhoudaxia <1018795633@qq.cin> Date: Wed, 24 Aug 2016 00:15:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E5=86=99=E9=9B=B7=E8=BE=BE=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E7=BA=BF=E6=9C=89=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../robocode/ui/dialog/PreferencesViewOptionsTab.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/代码/workspace_robo4/robocode.ui/src/main/java/net/sf/robocode/ui/dialog/PreferencesViewOptionsTab.java b/代码/workspace_robo4/robocode.ui/src/main/java/net/sf/robocode/ui/dialog/PreferencesViewOptionsTab.java index e064903..275d461 100644 --- a/代码/workspace_robo4/robocode.ui/src/main/java/net/sf/robocode/ui/dialog/PreferencesViewOptionsTab.java +++ b/代码/workspace_robo4/robocode.ui/src/main/java/net/sf/robocode/ui/dialog/PreferencesViewOptionsTab.java @@ -103,6 +103,8 @@ public class PreferencesViewOptionsTab extends WizardPanel { initialize(); } + + //Ĭϵ private void defaultViewOptionsButtonActionPerformed() { setAllViewOptionsButtonsEnabled(true); getVisibleScanArcsCheckBox().setSelected(false); @@ -326,12 +328,13 @@ public class PreferencesViewOptionsTab extends WizardPanel { c.weightx = 1; visibleOptionsPanel.add(getVisibleRobotEnergyCheckBox(), c); - visibleOptionsPanel.add(getVisibleRobotNameCheckBox(), c); visibleOptionsPanel.add(getVisibleScanArcsCheckBox(), c); visibleOptionsPanel.add(getVisibleExplosionsCheckBox(), c); visibleOptionsPanel.add(getVisibleGroundCheckBox(), c); visibleOptionsPanel.add(getVisibleExplosionDebrisCheckBox(), c); visibleOptionsPanel.add(getVisibleSentryBorderCheckBox(), c); + //ɨ߸ѡӵǶ + visibleOptionsPanel.add(getVisibleRobotNameCheckBox(), c); c.insets = new Insets(10, 0, 0, 10); c.gridwidth = 1; @@ -430,7 +433,6 @@ public class PreferencesViewOptionsTab extends WizardPanel { getDisplayTpsCheckBox().setSelected(robocodeProperties.getOptionsViewTPS()); getVisibleRobotNameCheckBox().setSelected(robocodeProperties.getOptionsViewRobotNames()); getVisibleRobotEnergyCheckBox().setSelected(robocodeProperties.getOptionsViewRobotEnergy()); - getVisibleScanArcsCheckBox().setSelected(robocodeProperties.getOptionsViewScanArcs()); getVisibleExplosionsCheckBox().setSelected(robocodeProperties.getOptionsViewExplosions()); getVisibleGroundCheckBox().setSelected(robocodeProperties.getOptionsViewGround()); getVisibleExplosionDebrisCheckBox().setSelected(robocodeProperties.getOptionsViewExplosionDebris()); @@ -438,6 +440,9 @@ public class PreferencesViewOptionsTab extends WizardPanel { getDesiredTpsTextField().setText("" + robocodeProperties.getOptionsBattleDesiredTPS()); getPreventSpeedupWhenMinimizedCheckBox().setSelected( robocodeProperties.getOptionsViewPreventSpeedupWhenMinimized()); + + //ݴIJɨǷɼ + getVisibleScanArcsCheckBox().setSelected(robocodeProperties.getOptionsViewScanArcs()); } public void storePreferences() { @@ -447,13 +452,15 @@ public class PreferencesViewOptionsTab extends WizardPanel { props.setOptionsViewTPS(getDisplayTpsCheckBox().isSelected()); props.setOptionsViewRobotNames(getVisibleRobotNameCheckBox().isSelected()); props.setOptionsViewRobotEnergy(getVisibleRobotEnergyCheckBox().isSelected()); - props.setOptionsViewScanArcs(getVisibleScanArcsCheckBox().isSelected()); props.setOptionsViewExplosions(getVisibleExplosionsCheckBox().isSelected()); props.setOptionsViewGround(getVisibleGroundCheckBox().isSelected()); props.setOptionsViewExplosionDebris(getVisibleExplosionDebrisCheckBox().isSelected()); props.setOptionsViewSentryBorder(getVisibleSentryBorderCheckBox().isSelected()); props.setOptionsBattleDesiredTPS(Integer.parseInt(getDesiredTpsTextField().getText())); props.setOptionsViewPreventSpeedupWhenMinimized(getPreventSpeedupWhenMinimizedCheckBox().isSelected()); + //ݲɨǷɼ + props.setOptionsViewScanArcs(getVisibleScanArcsCheckBox().isSelected()); + //////////////////// properties.saveProperties(); }