Browse Source

Removed vim bugger file *whoopsy* and added toggleLegsButton to fullscreenmode

Max Nuding 12 years ago
parent
commit
4201c11fa4
2 changed files with 16 additions and 0 deletions
  1. BIN
      CubeControl/.Frame.java.swp
  2. 16
    0
      CubeControl/Frame.java

BIN
CubeControl/.Frame.java.swp View File


+ 16
- 0
CubeControl/Frame.java View File

@@ -46,6 +46,7 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
46 46
 	private JButton editH = new JButton();
47 47
 	private JButton[] editButtons = { editA, editB, editC, editD, editE, editF, editG, editH };
48 48
 	private JButton toggleLegsButton = new JButton();
49
+	private JButton toggleLegsButtonFullscreen = new JButton();
49 50
 	private DefaultListModel frameListModel = new DefaultListModel();
50 51
 	public JList frameList = new JList();
51 52
 	private JScrollPane frameListScrollPane = new JScrollPane(frameList);
@@ -99,8 +100,10 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
99 100
 		ledView.toggleLegs();
100 101
 		if(showLegs) {
101 102
 			toggleLegsButton.setText("Show legs");
103
+			toggleLegsButtonFullscreen.setText("Show legs");
102 104
 		} else {
103 105
 			toggleLegsButton.setText("Hide legs");
106
+			toggleLegsButtonFullscreen.setText("Hide legs");
104 107
 		}
105 108
 		showLegs = !showLegs;
106 109
 	}
@@ -583,6 +586,7 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
583 586
 				int h = Toolkit.getDefaultToolkit().getScreenSize().height;
584 587
 				setSize(w - 5, h - 30);
585 588
 				playAnimationFullscreen.setVisible(true);
589
+				toggleLegsButtonFullscreen.setVisible(true);
586 590
 				cubeCanvas.setBounds(0, 0, w - 5, h - 80);
587 591
 			}
588 592
 		});
@@ -593,6 +597,7 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
593 597
 		exitButton.addActionListener(new ActionListener() {
594 598
 			public void actionPerformed(ActionEvent evt) {
595 599
 				playAnimationFullscreen.setVisible(false);
600
+				toggleLegsButtonFullscreen.setVisible(false);
596 601
 				setLocation(0,0);
597 602
 				setSize(672, 656);
598 603
 				ledView.leaveFullscreen();
@@ -622,6 +627,17 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
622 627
 				playAnimation();
623 628
 			}
624 629
 		});
630
+
631
+		toggleLegsButtonFullscreen.setBounds(Toolkit.getDefaultToolkit().getScreenSize().width-470, Toolkit.getDefaultToolkit().getScreenSize().height-80, 150, 25);
632
+		toggleLegsButtonFullscreen.setText("Hide legs");
633
+		toggleLegsButtonFullscreen.setVisible(false);
634
+		cp.add(toggleLegsButtonFullscreen);
635
+		toggleLegsButtonFullscreen.addActionListener(new ActionListener(){
636
+			public void actionPerformed(ActionEvent evt){
637
+				toggleLegs();
638
+			}
639
+		});
640
+
625 641
 	
626 642
 	
627 643
 		frameDuration.setBounds(462, 129, 65, 20);

Loading…
Cancel
Save