2023-12-09 07:49:33 +00:00
|
|
|
using Godot;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
public partial class hud : Control
|
|
|
|
|
{
|
2025-04-19 22:24:46 +00:00
|
|
|
private Label _score = new();
|
|
|
|
|
private Label _flightAssist = new();
|
2023-12-09 07:49:33 +00:00
|
|
|
|
|
|
|
|
public override void _Ready()
|
|
|
|
|
{
|
2025-04-22 04:43:03 +00:00
|
|
|
_score = GetNode<Label>("Layout/Score");
|
2025-04-19 22:24:46 +00:00
|
|
|
_score.Text = "SCORE: 0";
|
2024-08-15 21:55:44 +00:00
|
|
|
// Keeping health being initialised in game.cs
|
|
|
|
|
|
2025-04-22 04:43:03 +00:00
|
|
|
_flightAssist = GetNode<Label>("Layout/FlightAssist");
|
2025-04-19 22:24:46 +00:00
|
|
|
_flightAssist.Text = "FA: ON"; // Should be on by default
|
2023-12-09 07:49:33 +00:00
|
|
|
}
|
|
|
|
|
}
|