AceField/Scripts/UI/LeaderboardRecord.cs

20 lines
490 B
C#
Raw Normal View History

2024-08-09 06:55:45 +00:00
using Godot;
namespace AceField.Scripts.UI;
public partial class LeaderboardRecord : Control
{
[Export] public int Place;
[Export] public string PlayerName;
[Export] public int Score;
[Export] public int PlayerId;
public override void _Process(double delta)
{
GetNode<Label>("Panel/VBoxContainer/PlaceTag").Text = Place.ToString();
GetNode<Label>("Panel/VBoxContainer/NameTag").Text = PlayerName;
GetNode<Label>("Panel/VBoxContainer/ScoreTag").Text = Score.ToString();
}
}