99 */
1010package org .texastorque .pages ;
1111
12- import org .texastorque .components .FadeButton ;
1312import org .texastorque .modules .DisjointToggles ;
1413import org .texastorque .modules .Numeric ;
1514import org .texastorque .modules .TextBox ;
2524import javafx .scene .layout .CornerRadii ;
2625import javafx .scene .paint .Color ;
2726import javafx .geometry .Insets ;
28-
2927import javafx .scene .control .Button ;
3028import javafx .scene .layout .Pane ;
31- import javafx .scene .input .KeyCode ;
3229
3330public class Scoring extends Page {
3431 private boolean checked = false ;
3532
3633 protected Pane panel = new Pane ();
3734
35+ private ValueDisplay nameDisplay = new ValueDisplay ("Name" , "Name" );
3836 private ValueDisplay teamNumberDisplay = new ValueDisplay ("Team Number" , 0000 );
3937 private ValueDisplay matchNumberDisplay = new ValueDisplay ("Match Number" , 0 );
4038
@@ -76,6 +74,7 @@ public Scoring() {
7674 panel .getChildren ().addAll (
7775 LayoutUtils .bundleIntoHBox (
7876 LayoutUtils .bundleIntoVBox (
77+ nameDisplay .getPanel (),
7978 teamNumberDisplay .getPanel (),
8079 matchNumberDisplay .getPanel (),
8180 allianceColor .getPanel (),
@@ -99,25 +98,6 @@ public Scoring() {
9998 new LayoutUtils .Padding (20 , 0 , 0 , 0 ))),
10099 new LayoutUtils .Padding (0 , 0 , 0 , 40 ))));
101100 panel .setBackground (new Background (new BackgroundFill (Color .BLACK , CornerRadii .EMPTY , Insets .EMPTY )));
102- // panel.setOnKeyPressed(e -> {
103- // if (e.getCode() == KeyCode.COMMA) {
104- // autoLower.increment();
105- // } else if (e.getCode() == KeyCode.PERIOD) {
106- // autoUpper.increment();
107- // } else if (e.getCode() == KeyCode.SLASH) {
108- // autoMissed.increment();
109- // } else if (e.getCode() == KeyCode.OPEN_BRACKET) {
110- // teleopLower.increment();
111- // } else if (e.getCode() == KeyCode.CLOSE_BRACKET) {
112- // teleopUpper.increment();
113- // } else if (e.getCode() == KeyCode.BACK_SLASH) {
114- // teleopMissed.increment();
115- // } else if (e.getCode() == KeyCode.SEMICOLON) {
116- // autoIntaken.increment();
117- // } else if (e.getCode() == KeyCode.QUOTE) {
118- // teleopIntaken.increment();
119- // }
120- // });
121101 }
122102
123103 public Entry generateEntry () {
@@ -151,6 +131,7 @@ public Entry generateEntry() {
151131 0 ,
152132 climb .getValue (),
153133 climbTime .getValue (),
134+ nameDisplay .getValue (),
154135 comments .getValue ());
155136 }
156137
0 commit comments