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;
|
GridPane canvasBase;
|
||||||
|
|
||||||
//user saved data for annotation display
|
//user saved data for annotation display
|
||||||
private ArrayList<Boolean> presetAnno = new ArrayList<>();
|
private ArrayList<Boolean> presetAnno;
|
||||||
|
|
||||||
ResizableRaceCanvas raceMap;
|
ResizableRaceCanvas raceMap;
|
||||||
|
|
||||||
@@ -180,7 +180,7 @@ public class RaceController extends Controller {
|
|||||||
startScreen.setVisible(false);
|
startScreen.setVisible(false);
|
||||||
ongoingRacePane.setVisible(true);
|
ongoingRacePane.setVisible(true);
|
||||||
|
|
||||||
|
//Initialize save annotation array, fps listener, and annotation listeners
|
||||||
initializeFPS();
|
initializeFPS();
|
||||||
initializeAnnotations();
|
initializeAnnotations();
|
||||||
|
|
||||||
@@ -227,6 +227,7 @@ public class RaceController extends Controller {
|
|||||||
* Set up boat annotations
|
* Set up boat annotations
|
||||||
*/
|
*/
|
||||||
private void initializeAnnotations() {
|
private void initializeAnnotations() {
|
||||||
|
presetAnno = new ArrayList<>();
|
||||||
//listener for annotation
|
//listener for annotation
|
||||||
showAnnotations.selectedProperty().addListener(new ChangeListener<Boolean>() {
|
showAnnotations.selectedProperty().addListener(new ChangeListener<Boolean>() {
|
||||||
public void changed(ObservableValue<? extends Boolean> ov,
|
public void changed(ObservableValue<? extends Boolean> ov,
|
||||||
@@ -282,5 +283,4 @@ public class RaceController extends Controller {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user