22 lines
777 B
Plaintext
22 lines
777 B
Plaintext
<div style="position: absolute; top: 5px; right: 5px; background-color: white; border-radius: 4px; color: #00cc66; font-size: 15px; font-weight: bold;">
|
|
<div class="px-1 pt-1">
|
|
@X, @Y <span class="mdi mdi-compass-outline" />@Yaw - @Score
|
|
</div>
|
|
</div>
|
|
|
|
@code {
|
|
private string X = "0.000";
|
|
private string Y = "0.000";
|
|
private string Yaw = "0.000";
|
|
private string Score = "00.00%";
|
|
|
|
public void Update(double x, double y, double yaw, double score)
|
|
{
|
|
X = x.ToString("N3");
|
|
Y = y.ToString("N3");
|
|
Yaw = (yaw * 180.0 / Math.PI).ToString("N3"); // Convert radians to degrees
|
|
Score = score.ToString("P1", System.Globalization.CultureInfo.InvariantCulture);
|
|
StateHasChanged();
|
|
}
|
|
}
|