From 9c7c414bc98643d2febdf002e6b5b55ff59aaa52 Mon Sep 17 00:00:00 2001 From: Jens Becker Date: Thu, 21 May 2026 22:41:05 +0200 Subject: [PATCH] nice crooked connections und energy UI --- Gui.cs | 29 ++++++++++++++++++++++++-- Nodule.cs | 52 ++++++++++++++++++++++++++++++++++++---------- Root.cs | 36 +++++++++++++++++++++++++++++--- gui.tscn | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++ main.tscn | 1 + nodule.tscn | 31 +++++++++++++++++++--------- root.tscn | 6 +++--- 7 files changed, 185 insertions(+), 29 deletions(-) diff --git a/Gui.cs b/Gui.cs index db46d39..6b0e5f0 100644 --- a/Gui.cs +++ b/Gui.cs @@ -1,13 +1,38 @@ +using System.Globalization; using Godot; -using NodeWar; +using GodotUtilities; +namespace NodeWar; + +[Scene] public partial class Gui : Control { + [Node] private Label _infoLabel; + [Node] + private Label _energyGeneration; + + [Node] + private Label _energyConsumption; + + [Node] + private Label _energyStorage; + public override void _Ready() { - _infoLabel = GetNode