Big project cleanup with overhaul of file responsibilities (KISS) and code (DRY, YAGNI)

This commit is contained in:
2026-05-14 11:17:02 +02:00
parent bd6cdeb97b
commit 300c8f5a42
54 changed files with 2030 additions and 1745 deletions
+7 -2
View File
@@ -12,14 +12,19 @@ public partial class RobotDisplay : PanelContainer
public override void _Process(double delta)
{
string programName = robot.currentProgram ?? "";
string status = $"{programName} | Heat {robot.heat:0}% | Maintenance {robot.maintenance:0}%";
string status = GetStatusText();
if (status != currentScript.Text)
{
currentScript.Text = status;
}
}
private string GetStatusText()
{
string programName = robot.currentProgram ?? "";
return $"{programName} | Heat {robot.heat:0}% | Maintenance {robot.maintenance:0}%";
}
public void OnJumpToClicked()
{
EmitSignal(SignalName.OnRobotJumpTo, robot);