color fix for first leg
#story[1306]
This commit is contained in:
@@ -68,11 +68,11 @@ public class RaceClock {
|
|||||||
/**
|
/**
|
||||||
* Format string used for duration before it has started.
|
* Format string used for duration before it has started.
|
||||||
*/
|
*/
|
||||||
private String durationBeforeStartFormat = "Starting in: %02d:%02d:%02d";
|
private String durationBeforeStartFormat = "%02d:%02d:%02d";
|
||||||
/**
|
/**
|
||||||
* Format string used for duration once the race has started.
|
* Format string used for duration once the race has started.
|
||||||
*/
|
*/
|
||||||
private String durationAfterStartFormat = "Time: %02d:%02d:%02d";
|
private String durationAfterStartFormat = "%02d:%02d:%02d";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -796,7 +796,7 @@ public class ResizableRaceCanvas extends ResizableCanvas {
|
|||||||
private Color getLineColor(Leg leg) {
|
private Color getLineColor(Leg leg) {
|
||||||
for (VisualiserBoat boat : raceState.getBoats()) {
|
for (VisualiserBoat boat : raceState.getBoats()) {
|
||||||
if (boat.isClientBoat()) {
|
if (boat.isClientBoat()) {
|
||||||
if (boat.getCurrentLeg() == leg) {
|
if (boat.getCurrentLeg().getLegNumber() == leg.getLegNumber()) {
|
||||||
return Color.ORANGE;
|
return Color.ORANGE;
|
||||||
} else {
|
} else {
|
||||||
return Color.MEDIUMAQUAMARINE;
|
return Color.MEDIUMAQUAMARINE;
|
||||||
|
|||||||
Reference in New Issue
Block a user