From 0f3c49b7743f7c7fabf41fdf4cb3ffe1a4ac3bf4 Mon Sep 17 00:00:00 2001 From: Matheus Date: Mon, 10 Nov 2025 12:56:00 -0300 Subject: Placar. --- scenes/GUI/Leaderboard.cs | 62 ++++++++++++++++++++++++++++++++++++++++ scenes/GUI/Leaderboard.cs.uid | 1 + scenes/GUI/Leaderboard.tscn | 51 +++++++++++++++++++++++++++++++++ scenes/GUI/leaderboard_item.tscn | 35 +++++++++++++++++++++++ scenes/GUI/main_menu.tscn | 15 +++++++++- 5 files changed, 163 insertions(+), 1 deletion(-) create mode 100644 scenes/GUI/Leaderboard.cs create mode 100644 scenes/GUI/Leaderboard.cs.uid create mode 100644 scenes/GUI/Leaderboard.tscn create mode 100644 scenes/GUI/leaderboard_item.tscn (limited to 'scenes') diff --git a/scenes/GUI/Leaderboard.cs b/scenes/GUI/Leaderboard.cs new file mode 100644 index 0000000..cf126c9 --- /dev/null +++ b/scenes/GUI/Leaderboard.cs @@ -0,0 +1,62 @@ +using System; +using Godot; +using Godot.Collections; +using TheLegendOfGustav.Utils; + +namespace TheLegendOfGustav.GUI; +public partial class Leaderboard : Control +{ + [Signal] + public delegate void MenuRequestedEventHandler(); + private static readonly PackedScene LeaderboardItemScene = GD.Load("res://scenes/GUI/leaderboard_item.tscn"); + + private VBoxContainer leaderboard; + private Button BackButton; + // Called when the node enters the scene tree for the first time. + public override void _Ready() + { + leaderboard = GetNode("VBoxContainer/VBoxContainer"); + BackButton = GetNode