mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Added a visual indicator of wind speed during race (text box)
#pair[kre39,mra106] #story[1040]
This commit is contained in:
@@ -51,6 +51,8 @@ import java.util.stream.Collectors;
|
||||
*/
|
||||
public class RaceViewController extends Thread implements ImportantAnnotationDelegate {
|
||||
|
||||
@FXML
|
||||
private Text windSpeedText;
|
||||
@FXML
|
||||
private LineChart raceSparkLine;
|
||||
@FXML
|
||||
@@ -335,6 +337,7 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel
|
||||
private void updateWindDirection() {
|
||||
windDirectionText.setText(String.format("%.1f°", ClientPacketParser.getWindDirection()));
|
||||
windArrowText.setRotate(ClientPacketParser.getWindDirection());
|
||||
windSpeedText.setText(String.format("%.1f Knots", ClientPacketParser.getWindSpeed()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user