A rhythm game net ranking service built on ATproto.
at main 62 lines 1.0 kB view raw
1using Godot; 2using System; 3 4public partial class ScoreDisplay : PanelContainer { 5 private string player; 6 private float accuracy; 7 private int points; 8 private Lamp lamp; 9 10 [Export] 11 public Label PlayerLabel; 12 [Export] 13 public Label AccuracyLabel; 14 [Export] 15 public Label PointsLabel; 16 [Export] 17 public Label LampLabel; 18 19 [Export] 20 public string Player { 21 get => player; 22 set { 23 player = value; 24 PlayerLabel.Text = value; 25 } 26 } 27 28 [Export] 29 public float Accuracy { 30 get => accuracy; 31 set { 32 accuracy = value; 33 AccuracyLabel.Text = $"{value}%"; 34 } 35 } 36 37 [Export] 38 public int Points { 39 get => points; 40 set { 41 points = value; 42 PointsLabel.Text = value.ToString(); 43 } 44 } 45 46 [Export] 47 public Lamp Lamp { 48 get => lamp; 49 set { 50 lamp = value; 51 LampLabel.Text = value.ToString(); 52 } 53 } 54 55 // Called when the node enters the scene tree for the first time. 56 public override void _Ready() { 57 } 58 59 // Called every frame. 'delta' is the elapsed time since the previous frame. 60 public override void _Process(double delta) { 61 } 62}