Infrastruttura: nome «Rail Enterprise», CI e rilasci su Gitea, documentazione
Il progetto adotta il nome «Rail Enterprise» ovunque (codice RailEnterprise.*, variabili RE_*, intestazioni RESV/RECL, immagine rail-enterprise-server) per allinearsi al repository Gitea. Aggiunge Gitea Actions sul modello di Chronos: CI su PR e main, rilascio da tag con gioco Windows (client Godot + server in server/), server Windows/Linux e immagine Docker nel registro Gitea, nightly. Aggiunge i riferimenti visivi 06–09, i modelli di PR e issue, l'ADR 0014 e aggiorna README (comandi locali), STATE e CLAUDE.md. 120 test verdi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f6c2a17b4d
commit
c1a0049bcf
300 files changed
+1602
-1045
No files matched your search
@@ -0,0 +1,56 @@
|
||||
using Godot;
|
||||
using RailEnterprise.Client.App;
|
||||
|
||||
namespace RailEnterprise.Client.Panels;
|
||||
|
||||
/// <summary>Mattoni comuni dei pannelli laterali.</summary>
|
||||
public static class PanelKit
|
||||
{
|
||||
public static VBoxContainer Column(int separation = 10)
|
||||
{
|
||||
var v = new VBoxContainer { SizeFlagsHorizontal = Control.SizeFlags.ExpandFill };
|
||||
v.AddThemeConstantOverride("separation", separation);
|
||||
return v;
|
||||
}
|
||||
|
||||
public static HBoxContainer Row(int separation = 10)
|
||||
{
|
||||
var h = new HBoxContainer { SizeFlagsHorizontal = Control.SizeFlags.ExpandFill };
|
||||
h.AddThemeConstantOverride("separation", separation);
|
||||
return h;
|
||||
}
|
||||
|
||||
/// <summary>Riga etichetta : valore.</summary>
|
||||
public static HBoxContainer Pair(string caption, Label value)
|
||||
{
|
||||
var row = Row();
|
||||
var c = UiTheme.Text(caption, 14, Palette.TextSecondary);
|
||||
c.SizeFlagsHorizontal = Control.SizeFlags.ExpandFill;
|
||||
value.HorizontalAlignment = HorizontalAlignment.Right;
|
||||
row.AddChild(c);
|
||||
row.AddChild(value);
|
||||
return row;
|
||||
}
|
||||
|
||||
/// <summary>Riquadro statistico (velocità, affidabilità, età…) come nell'immagine 01.</summary>
|
||||
public static PanelContainer Stat(string caption, Label value)
|
||||
{
|
||||
var p = new PanelContainer { SizeFlagsHorizontal = Control.SizeFlags.ExpandFill };
|
||||
p.AddThemeStyleboxOverride("panel", UiTheme.Box(Palette.Inner, Palette.Inner, 8, 12));
|
||||
var v = Column(2);
|
||||
v.AddChild(UiTheme.Text(caption, 12, Palette.TextSecondary));
|
||||
value.AddThemeFontSizeOverride("font_size", 20);
|
||||
v.AddChild(value);
|
||||
p.AddChild(v);
|
||||
return p;
|
||||
}
|
||||
|
||||
public static Label Value(string text = "") => UiTheme.Text(text, 14, bold: true);
|
||||
|
||||
public static HSeparator Separator()
|
||||
{
|
||||
var s = new HSeparator();
|
||||
s.AddThemeStyleboxOverride("separator", UiTheme.Box(Palette.Border, Palette.Border, 0, 0));
|
||||
return s;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user