using AceField.Scripts.Logic; using Godot; namespace AceField.Scripts.UI; public partial class HUD : Control { [Export] public World World; private void ApplySize() { var screenSize = GetViewportRect().Size; Position = new Vector2(0, 0); Size = screenSize; GetNode("TopBox").Size = new Vector2(screenSize.X-16*2, 16); } public override void _Process(double delta) { var player = World.GetCurrentPlayer(); if (player == null) return; var healthBar = GetNode("TopBox/HealthBox/Bar"); var healthLabel = GetNode