A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
chore(visual): final-review minors: removeToggle with the other fields; checkpoint images are local
eyalgolaned36f5d1fa3f
diff --git a/docs/visual-v1.md b/docs/visual-v1.mdindex ffc2cd966..5b856d5a6 100644--- a/docs/visual-v1.md+++ b/docs/visual-v1.md@@ -538,6 +538,9 @@ and tilt-shift are not in this worktree).- **Build.** WebGL, no `Shader error`; golden values OK in the checkpoint run.## Checkpoints++The images live in the owner's local `captures/visual/` folder (git-ignored); owner verdicts are filled in as the checkpoints are reviewed.+| Task | Name | Images | Owner verdict ||---|---|---|---|| 1 | t01-before | captures/visual/t01-before/*-compare*.png | (owner) |diff --git a/unity/Assets/Scripts/UI/MapLabelsPresenter.cs b/unity/Assets/Scripts/UI/MapLabelsPresenter.csindex bd9f39030..613262252 100644--- a/unity/Assets/Scripts/UI/MapLabelsPresenter.cs+++ b/unity/Assets/Scripts/UI/MapLabelsPresenter.cs@@ -67,6 +67,7 @@ namespace Statecraft.Game.UIreadonly EventCallback<GeometryChangedEvent> onOccluderGeometry, onContainerGeometry;Matrix4x4 lastViewProjection; Rect lastCameraRect; Vector2 lastPanelSize, lastOrigin; float lastZoom = float.NaN;int lastOccluderMask = -1; float lastLabelSizes = float.NaN; bool sizesKnown, geometryDirty = true;+ Action? removeToggle; // the labels switch's removal token (VisualToggles.Register): a disposed presenter never removes a newer onepublic IReadOnlyList<Label> Labels { get; }public IReadOnlyList<VisualElement> Slots { get; }@@ -273,8 +274,6 @@ namespace Statecraft.Game.UIstatic float Gap(Rect r, Vector2 p) =>new Vector2(Mathf.Max(0f, Mathf.Max(r.xMin - p.x, p.x - r.xMax)), Mathf.Max(0f, Mathf.Max(r.yMin - p.y, p.y - r.yMax))).magnitude;- Action? removeToggle; // the labels switch's removal token (VisualToggles.Register): a disposed presenter never removes a newer one-/// <summary>Removes only this presenter's own pills and callbacks, so an older presenter disposed after a newer one/// was made leaves the newer one's pills (review M2).</summary>public void Dispose()