From a489547476c019fa9c3762f99f4a766776731c86 Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Sat, 13 Apr 2024 09:24:20 -0400 Subject: [PATCH] use just the single control panel --- .../bowlerstudio/creature/CreatureLab.java | 3 +++ .../creature/CreatureLabControlsTab.java | 14 +++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/neuronrobotics/bowlerstudio/creature/CreatureLab.java b/src/main/java/com/neuronrobotics/bowlerstudio/creature/CreatureLab.java index 5398f574a..5489424a6 100644 --- a/src/main/java/com/neuronrobotics/bowlerstudio/creature/CreatureLab.java +++ b/src/main/java/com/neuronrobotics/bowlerstudio/creature/CreatureLab.java @@ -226,6 +226,9 @@ public void run() { } else { BowlerStudio.runLater(() -> { box.getChildren().clear(); + if (hasWalking(device)) { + tab.setOverlayTopRight(walkWidget); + } }); } } diff --git a/src/main/java/com/neuronrobotics/bowlerstudio/creature/CreatureLabControlsTab.java b/src/main/java/com/neuronrobotics/bowlerstudio/creature/CreatureLabControlsTab.java index f05066b49..e5ff55b09 100644 --- a/src/main/java/com/neuronrobotics/bowlerstudio/creature/CreatureLabControlsTab.java +++ b/src/main/java/com/neuronrobotics/bowlerstudio/creature/CreatureLabControlsTab.java @@ -26,17 +26,17 @@ public AnchorPane getWalkingBox() { return walkingBox; } - public void setWalkingBox(AnchorPane walkingBox) { - this.walkingBox = walkingBox; - } +// public void setWalkingBox(AnchorPane walkingBox) { +// this.walkingBox = walkingBox; +// } public AnchorPane getControlsBox() { - return controlsBox; + return walkingBox; } - public void setControlsBox(AnchorPane controlsBox) { - this.controlsBox = controlsBox; - } +// public void setControlsBox(AnchorPane controlsBox) { +// this.controlsBox = controlsBox; +// } // public AnchorPane getProgressBar() { // return progressBar;