A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
UI: in the Hebrew UI the map pill's tier badge sits on the right, at the start of the name (refs #880) (#940)
Beri3a54dac3d987
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2631cde73..49a815f28 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -31,7 +31,7 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB- `EventImageMappingTests.EveryPictureHasItsProvenanceRow` no longer lists `first_new_yishuv` as waiting for the owner's sign-off. Its `ASSETS.yaml` row became `verified` in #913 (owner, 17 Oct 2026, "Approve both", #879), so the test failed on main.- In the Hebrew UI the map's name pills show each row's `name_he`: the game settlements ("נהלל", "תל אביב") andthe 1948 localities that have one. The thirteen localities with no `name_he` keep their English name, and the- English UI is unchanged. The tier badge stays on the left of the pill until the owner rules on mirroring it (#880).+ English UI is unchanged (#880).- End Turn now logs a throwing `Changed` or `TurnEnded` subscriber and continues notifying the remaining presenters,so a successful turn cannot leave later UI or autosave handlers stale (#912).- The info panel now translates every map-action refusal from the sim's stable reason kind and invariant values. Under@@ -59,6 +59,8 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIBThe checks file is now written in the bundle cache and copied beside the shipped bundles.### Changed+- In the Hebrew UI the population-tier badge sits on the right of a map pill, at the start of the Hebrew+ name, as the owner decided on #897 ("Yes, mirror it"; refs #880, #710). The English pill keeps it on the left.- Refusing the reparations claim (`reparations_claim.refuse`) now costs $4 million of Foreign currency, so neither answer is free (owner, 17 Oct 2026, "A cost for refusing too", #938). The amount is a labelled design value, not a historical figure, and waits for the owner's sign-off on the PR. The reference runs send the claim, so no golden moves.- Refusing Egypt's armistice (`armistice_egypt.hold_out`) now sets the war to rung 4, like refusing Jordan's, Lebanon's or Syria's (owner, 17 Oct 2026, "Yes, match the others", #937). The reference runs sign every armistice, so no golden moves.- The desktop players' bundle ID is `io.github.eyalgolan.statecraftisrael` (decision O6, owner, 17 Oct 2026, #879; refs #905). Only the Standalone identifier changes; the WebGL build does not read it.diff --git a/unity/Assets/Scripts/UI/MapLabelsPresenter.cs b/unity/Assets/Scripts/UI/MapLabelsPresenter.csindex edb957232..4effa7495 100644--- a/unity/Assets/Scripts/UI/MapLabelsPresenter.cs+++ b/unity/Assets/Scripts/UI/MapLabelsPresenter.cs@@ -80,8 +80,9 @@ namespace Statecraft.Game.UI/// <summary>DESIGN VALUES (proposed on #710, not yet owner-ruled): tiers 1 to 9, doubling from 1,000 people (under/// 1,000 is tier 1, 1,000-1,999 tier 2, ..., 128,000 and over tier 9), eight distinct tiers across the twelve cities.</summary>public const int TierBase = 1000, TierCount = 9;- /// <summary>The badge's left edge inside its pill (Statecraft.uss ".map-label-with-tier" leaves the room).</summary>- const float TierInsetPx = 7f;+ /// <summary>The badge's inset from its pill's edge (Statecraft.uss ".map-label-with-tier" leaves the room), and its width+ /// (".map-label-tier"); in the Hebrew UI the badge is inset from the right edge (owner, on #897).</summary>+ const float TierInsetPx = 7f, TierWidthPx = 23f;/// <summary>The panels a pill never sits under (Game.uxml names).</summary>public static readonly string[] OccluderNames = { "top-bar", "date-plate", "left-column", "info-panel", "minimap", "map-layer", "event-card" };@@ -192,7 +193,7 @@ namespace Statecraft.Game.UIlabel.AddToClassList(anchorClass);slot.Add(label);// Issue #710: a pill with a 1948 figure (cities.yaml's people) starts with its tier; the rest have no badge.- // The badge is the pill's sibling, drawn over its left padding: a child would stop the Label sizing to its text.+ // The badge is the pill's sibling, drawn over its start padding (left, or right in Hebrew): a child would stop the Label sizing to its text.string? tierText = null;if (population != null && population.TryGetValue(s.Id, out var people)){@@ -205,7 +206,8 @@ namespace Statecraft.Game.UIfloat anchorShare = anchorClass == Left ? 0f : anchorClass == Right ? 1f : 0.5f;label.RegisterCallback<GeometryChangedEvent>(e =>{- badge.style.left = -anchorShare * e.newRect.width + TierInsetPx;+ // Hebrew reads from the right, so the badge starts the name there (owner, 17 Oct 2026, on #897).+ badge.style.left = -anchorShare * e.newRect.width + (hebrew ? e.newRect.width - TierInsetPx - TierWidthPx : TierInsetPx);badge.style.top = -0.5f * e.newRect.height;});tierText = (tierTip ?? DefaultTierTip)(tier, people);diff --git a/unity/Assets/Tests/EditMode/MapLabelTests.cs b/unity/Assets/Tests/EditMode/MapLabelTests.csindex a7196661a..71d74bba8 100644--- a/unity/Assets/Tests/EditMode/MapLabelTests.cs+++ b/unity/Assets/Tests/EditMode/MapLabelTests.cs@@ -391,6 +391,43 @@ public class MapLabelTestsfinally { labels.Dispose(); hd.Dispose(); }}+ /// <summary>Owner decision on #897 (17 October 2026, "Yes, mirror it"): in the Hebrew UI the tier badge sits at the start of+ /// the Hebrew name, which is the pill's right; inside the pill and clear of the name. The English pill keeps it on the left.</summary>+ [UnityTest]+ public IEnumerator InHebrewTheTierBadgeSitsOnTheRightOfThePill()+ {+ var people = Statecraft.Sim.ContentLoader.Load(Statecraft.Game.Paths.Content).Cities+ .Where(c => c.People != null).ToDictionary(c => c.Id, c => c.People!.Value);+ foreach (var hebrew in new[] { true, false })+ {+ var hd = new HdPanel(cam);+ if (hebrew) (hd.Root.Q("root") ?? hd.Root).AddToClassList(UiLanguage.HebrewClass);+ var labels = new MapLabelsPresenter(hd.Root, map, cam, population: people, hebrew: hebrew);+ try+ {+ Pose(34.99, 32.80, 40000f);+ yield return Settle(labels);+ var haifa = labels.Labels.Single(l => l.name == "label-haifa");+ Assert.IsTrue(Shown(labels.Slots.Single(x => x.name == "slot-haifa")), "Haifa is named at 40 km");+ var pill = haifa.worldBound;+ var badge = labels.Slots.Single(x => x.name == "slot-haifa").Q<Label>(className: MapLabelsPresenter.TierClass).worldBound;+ TestContext.WriteLine($"{(hebrew ? "he" : "en")} '{haifa.text}': pill {pill}, badge {badge}");+ Assert.IsTrue(pill.Contains(badge.min) && pill.Contains(badge.max - Vector2.one * 0.01f), $"the badge {badge} lies inside its pill {pill}");+ if (hebrew)+ {+ Assert.Greater(badge.center.x, pill.center.x, "Hebrew: at the start of the name, on the right");+ Assert.GreaterOrEqual(badge.xMin, pill.xMax - haifa.resolvedStyle.paddingRight, "Hebrew: clear of the name's text");+ }+ else+ {+ Assert.Less(badge.center.x, pill.center.x, "English: on the left, unchanged");+ Assert.LessOrEqual(badge.xMax, pill.xMin + haifa.resolvedStyle.paddingLeft, "English: clear of the name's text");+ }+ }+ finally { labels.Dispose(); hd.Dispose(); }+ }+ }+/// <summary>Owner rulings 2026-10-11 and 2026-10-12: the 1948 localities are named by their 1948 names only at close zoom,/// with today's name in a tooltip only where a living place carries on. At 30 km over Beisan its pill reads "Beisan"/// and, with the pointer over it (the hit test Hover runs, in the layer's coordinates), the tooltip "Today: Beit She'an"diff --git a/unity/Assets/UI/Statecraft.uss b/unity/Assets/UI/Statecraft.ussindex 847aa99bc..5433123ae 100644--- a/unity/Assets/UI/Statecraft.uss+++ b/unity/Assets/UI/Statecraft.uss@@ -580,9 +580,12 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);}.map-label-city { font-size: 23px; color: rgb(250, 242, 224); }.map-label-town, .map-label-arab_town { font-size: 19px; }-/* The population tier (#710): the city's static 1948 tier as a gold disc at the start of its name, over the pill's left- padding. The disc is the pill's sibling in its slot; MapLabelsPresenter sets its left and top from the pill's size. */+/* The population tier (#710): the city's static 1948 tier as a gold disc at the start of its name, over the pill's start+ padding (left, or right in Hebrew). The disc is the pill's sibling in its slot; MapLabelsPresenter sets its left and+ top from the pill's size. */.map-label-with-tier { padding-left: 36px; }+/* The Hebrew UI mirrors it: the disc starts a Hebrew name on the right (owner, on #897); 12px is .map-label's own padding. */+.lang-he .map-label-with-tier { padding-left: 12px; padding-right: 36px; }.map-label-tier {position: absolute;translate: 0 -50%;