Changed where the saved annotation set is declared.
-Annotation set is now initialized along with annotations. #story[26]
This commit is contained in:
@@ -29,7 +29,7 @@ public class RaceController extends Controller {
|
||||
GridPane canvasBase;
|
||||
|
||||
//user saved data for annotation display
|
||||
private ArrayList<Boolean> presetAnno = new ArrayList<>();
|
||||
private ArrayList<Boolean> presetAnno;
|
||||
|
||||
ResizableRaceCanvas raceMap;
|
||||
|
||||
@@ -180,7 +180,7 @@ public class RaceController extends Controller {
|
||||
startScreen.setVisible(false);
|
||||
ongoingRacePane.setVisible(true);
|
||||
|
||||
|
||||
//Initialize save annotation array, fps listener, and annotation listeners
|
||||
initializeFPS();
|
||||
initializeAnnotations();
|
||||
|
||||
@@ -227,6 +227,7 @@ public class RaceController extends Controller {
|
||||
* Set up boat annotations
|
||||
*/
|
||||
private void initializeAnnotations() {
|
||||
presetAnno = new ArrayList<>();
|
||||
//listener for annotation
|
||||
showAnnotations.selectedProperty().addListener(new ChangeListener<Boolean>() {
|
||||
public void changed(ObservableValue<? extends Boolean> ov,
|
||||
@@ -282,5 +283,4 @@ public class RaceController extends Controller {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user