A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Map: a city shows it can be clicked, and its name opens the city panel (Fixes #1063) (#1097)
Beri33e315030646
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b9f6c0acb..941ca5958 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -124,6 +124,9 @@ checks this (see `CONTRIBUTING.md`).- The Cabinet, Budget, Defence, Why, How to play and Settings screens each gain an X in the header that closesthem (the same close as Escape): a phone has no Escape key, and re-tapping the lit rail button was the only wayout (v0.1.1 playtest feedback).+- Map: a city shows it can be clicked. With the mouse over one of its hexes or its name, the city's name lights up in+ ivory and the browser's pointer becomes a hand; a click on the name opens the city panel, as a click on its hex does,+ in English and Hebrew and at every zoom (Fixes #1063).- Event cards in Hebrew (#1064, owner decision on #55): an event can carry `title_he`, `text_he` and each option's`text_he`, all or none, in Hebrew letters, with `text_he_review: agent-checked` until a native speaker has read them(#564). In the Hebrew UI the card shows them, with the minister's Hebrew name in the placeholder, and keeps the Englishdiff --git a/unity/Assets/Scripts/Map/MapPointer.cs b/unity/Assets/Scripts/Map/MapPointer.csindex 982b864be..ffb2b624a 100644--- a/unity/Assets/Scripts/Map/MapPointer.cs+++ b/unity/Assets/Scripts/Map/MapPointer.cs@@ -40,6 +40,9 @@ namespace Statecraft.Game.Mappublic MapScene? Map;public Func<Vector2, bool>? IsOverUi;public event Action<int, int>? HexClicked;+ /// <summary>The hex a point goes to before the terrain is asked, or null: a city's name pill sends its click to the+ /// city's hex (#1063), wherever the land under the pill is.</summary>+ public Func<Vector2, (int q, int r)?>? PillHex;// Every press, at the position of its own input event (InputConfig keeps a release from merging into the next move),// queued and evaluated in order in Update: several presses in one slow frame are each checked where they happened,@@ -97,8 +100,10 @@ namespace Statecraft.Game.Map{var overUi = IsOverUi != null && IsOverUi(pos);Boot.DiagLog.NavLine(FormattableString.Invariant($"map click at ({pos.x:0}, {pos.y:0}) overUi={overUi}"));- if (overUi) return false; // the UI is asked first, whatever else is missing- return PickAt(pos);+ if (overUi || HexAt(pos, false, true) is not (int q, int r)) return false; // the UI asked once per press (MapPressTests)+ Map!.Select(q, r); // the map marks the hex the info panel describes+ HexClicked?.Invoke(q, r);+ return true;}/// <summary>The pick without the UI check: the hex under <paramref name="pos"/> (screen pixels) is outlined and raised@@ -107,15 +112,27 @@ namespace Statecraft.Game.Map/// whether a hex was picked.</summary>public bool PickAt(Vector2 pos){- if (Map == null || Map.Terrain == null) return false;+ // terrain only: the stop's centre ring marks the land, not a city's name pill+ if (HexAt(pos, false, false) is not (int q, int r)) return false;+ Map!.Select(q, r); // the map marks the hex the info panel describes+ HexClicked?.Invoke(q, r);+ return true;+ }++ /// <summary>The hex a click at <paramref name="pos"/> (screen pixels) would pick, or null over the UI or off the map:+ /// a pill's city hex (PillHex), else the hex of the terrain under the pointer. GameRoot also asks it for the hover.</summary>+ public (int q, int r)? HexAt(Vector2 pos) => HexAt(pos, IsOverUi != null && IsOverUi(pos), true);++ (int q, int r)? HexAt(Vector2 pos, bool overUi, bool pills)+ {+ if (overUi) return null; // the UI is asked first, whatever else is missing+ if (Map == null || Map.Terrain == null) return null;+ if (pills && PillHex?.Invoke(pos) is (int, int) pill) return pill;var cam = Camera.main;var collider = Map.Terrain.GetComponent<TerrainCollider>();// only the terrain's own collider: other colliders (markers, future props) never decide which hex is clicked- if (cam == null || collider == null || !collider.Raycast(cam.ScreenPointToRay(pos), out var hit, 1_000_000f)) return false;- var hex = Pick(Map, hit.point);- Map.Select(hex.q, hex.r); // the map marks the hex the info panel describes- HexClicked?.Invoke(hex.q, hex.r);- return true;+ if (cam == null || collider == null || !collider.Raycast(cam.ScreenPointToRay(pos), out var hit, 1_000_000f)) return null;+ return Pick(Map, hit.point);}public static (int q, int r) Pick(MapScene map, Vector3 world)diff --git a/unity/Assets/Scripts/UI/GameRoot.cs b/unity/Assets/Scripts/UI/GameRoot.csindex 356c670ac..818f32d77 100644--- a/unity/Assets/Scripts/UI/GameRoot.cs+++ b/unity/Assets/Scripts/UI/GameRoot.cs@@ -56,6 +56,9 @@ namespace Statecraft.Game.UIEventCardPresenter? card;/// <summary>Tests: the decision card of the last Begin.</summary>internal EventCardPresenter? Card => card;+ /// <summary>Tests: the settlement name pills of the last Begin.</summary>+ internal MapLabelsPresenter? Labels => labels;+ string? hoveredCity; // the city HoverCity lit (#1063)OutcomePresenter? outcomes;TurnReportPresenter? report;CameraRig? rig;@@ -330,6 +333,14 @@ namespace Statecraft.Game.UIpointer.IsOverUi = overUi;Action<int, int> onHex = (q, r) => OnHexClicked(map, unitLayer, info, q, r);pointer.HexClicked += onHex;+ // #1063: a click on a city's name pill is a click on the city's hex (its settlement hex, where the city panel opens).+ Func<Vector2, (int q, int r)?> pillHex = p =>+ {+ if (labels?.PillAt(p) is not string id || !bridge.State.Cities.ContainsKey(id)) return null;+ foreach (var x in bridge.Content.SettlementHexes) if (x.Id == id) return (x.Q, x.R);+ return null;+ };+ pointer.PillHex = pillHex;var camRig = rig = cameraController.GetComponent<CameraRig>();Own(new TopBarInset(root, camRig)); // the map is framed below the top barOwn(new SafeAreaFit(root)); // the HUD keeps clear of the phone's notch@@ -380,6 +391,7 @@ namespace Statecraft.Game.UIbridge.Changed -= onChanged;bridge.TurnEnded -= onTurn;pointer.HexClicked -= onHex;+ if (pointer.PillHex == pillHex) pointer.PillHex = null;if (pointer.IsOverUi == overUi) pointer.IsOverUi = null;if (cameraController.IsOverUi == overUi) cameraController.IsOverUi = null;if (pointer.Map == map) pointer.Map = null;@@ -468,6 +480,34 @@ namespace Statecraft.Game.UIelse info.Show(q, r);}+ /// <summary>#1063 (player report: a city is hard to tell from the land round it and hard to click): the city under a+ /// hovering pointer, on its hexes or its name pill, lights its pill and turns the browser's pointer into a hand, so the+ /// player sees it can be clicked. Null (and nothing lit) over the UI, off the map, off every city, or with no hovering+ /// pointer (a touchscreen). Returns that city's id; called each frame (LateUpdate), it changes the UI only when the city does.</summary>+ internal string? HoverCity(Vector2? screenYUp)+ {+ var city = screenYUp is Vector2 p && Bridge != null && pointer.HexAt(p) is (int q, int r) ? CityAt(Bridge.Content, Bridge.State, q, r) : null;+ if (city == hoveredCity) return city;+ hoveredCity = city;+ labels?.Highlight(city);+ HandCursor(city != null);+ return city;+ }++ /// <summary>The city with a settlement hex at (q, r): one in State.Cities, whose hex opens the city panel (GddHexPanel); or null.</summary>+ internal static string? CityAt(Content c, GameState s, int q, int r)+ {+ foreach (var x in c.SettlementHexes) if (x.Q == q && x.R == r && s.Cities.ContainsKey(x.Id)) return x.Id;+ return null;+ }++#if UNITY_WEBGL && !UNITY_EDITOR+ [System.Runtime.InteropServices.DllImport("__Internal")] static extern void StatecraftHandCursor(int on); // HandCursor.jslib+ static void HandCursor(bool on) => StatecraftHandCursor(on ? 1 : 0);+#else+ static void HandCursor(bool on) { } // the game ships as the browser build; the editor keeps its own cursor+#endif+/// <summary>Disposes every presenter, the autosave and the camera/pointer hooks (newest first). Safe to call twice.</summary>void Shutdown(){@@ -478,6 +518,7 @@ namespace Statecraft.Game.UIif (card != null) { owned.Remove(card); card.Dispose(); }for (int i = owned.Count - 1; i >= 0; i--) owned[i].Dispose();owned.Clear();+ if (hoveredCity != null) { hoveredCity = null; HandCursor(false); } // the next Begin's pills start unlitminimap = null; labels = null; nav = null; start = null; card = null; outcomes = null; report = null; rig = null; drawn = null; drawnSites = null; units = null; Regions = null; logCamera = false;// A ?profile run cut short (a stopped coroutine never reaches its restore line) must not leave the terrain at the// profile's pixel error (Task 24 review M1). Nothing else changes it, so restoring is always right.@@ -596,7 +637,9 @@ namespace Statecraft.Game.UIlabels.Refresh();// Today's name under a 1948 locality's pill: while a mouse (or pen) is over it (owner ruling 2026-10-11), or after a// tap on it (#245). A touchscreen has no hover: its last touch position stays after the finger lifts.- labels.Hover(MapLabelsPresenter.HoverPosition(UnityEngine.InputSystem.Pointer.current));+ var hover = MapLabelsPresenter.HoverPosition(UnityEngine.InputSystem.Pointer.current);+ labels.Hover(hover);+ HoverCity(hover);var touch = UnityEngine.InputSystem.Touchscreen.current;if (touch != null && touch.primaryTouch.press.wasPressedThisFrame) labels.Tap(touch.primaryTouch.position.ReadValue());}diff --git a/unity/Assets/Scripts/UI/HandCursor.jslib b/unity/Assets/Scripts/UI/HandCursor.jslibnew file mode 100644index 000000000..66386519b--- /dev/null+++ b/unity/Assets/Scripts/UI/HandCursor.jslib@@ -0,0 +1,4 @@+// #1063: the hand pointer over a city the player can click (GameRoot.HoverCity); "" gives the page's own cursor back.+mergeInto(LibraryManager.library, {+ StatecraftHandCursor: function (on) { if (typeof Module !== "undefined" && Module.canvas) Module.canvas.style.cursor = on ? "pointer" : ""; },+});diff --git a/unity/Assets/Scripts/UI/HandCursor.jslib.meta b/unity/Assets/Scripts/UI/HandCursor.jslib.metanew file mode 100644index 000000000..130051f0c--- /dev/null+++ b/unity/Assets/Scripts/UI/HandCursor.jslib.meta@@ -0,0 +1,32 @@+fileFormatVersion: 2+guid: 59bcc81cfb294ea485ac45ab097fcc86+PluginImporter:+ externalObjects: {}+ serializedVersion: 2+ iconMap: {}+ executionOrder: {}+ defineConstraints: []+ isPreloaded: 0+ isOverridable: 0+ isExplicitlyReferenced: 0+ validateReferences: 1+ platformData:+ - first:+ Any:+ second:+ enabled: 0+ settings: {}+ - first:+ Editor: Editor+ second:+ enabled: 0+ settings:+ DefaultValueInitialized: true+ - first:+ WebGL: WebGL+ second:+ enabled: 1+ settings: {}+ userData:+ assetBundleName:+ assetBundleVariant:diff --git a/unity/Assets/Scripts/UI/MapLabelsPresenter.cs b/unity/Assets/Scripts/UI/MapLabelsPresenter.csindex 95aef396a..313b60ead 100644--- a/unity/Assets/Scripts/UI/MapLabelsPresenter.cs+++ b/unity/Assets/Scripts/UI/MapLabelsPresenter.cs@@ -560,6 +560,43 @@ namespace Statecraft.Game.UIreturn true;}+ /// <summary>The class that lights the pill of the city under the pointer (#1063: the player sees the city can be clicked).</summary>+ public const string HoverClass = "map-label-hover";+ Label? lit; // the pill Highlight lit++ /// <summary>The id of the shown pill at <paramref name="screenYUp"/> (an Input System pointer position, y up), or null:+ /// GameRoot lets a click there go to that city's hex (#1063). The pills themselves ignore the pointer, so the map+ /// still pans and zooms under them.</summary>+ public string? PillAt(Vector2 screenYUp)+ {+ var panel = container.panel;+ return panel == null ? null : PillAtLayer(UiPointer.ToPanel(panel, screenYUp, Screen.height) - container.worldBound.position);+ }++ /// <summary>The hit test under PillAt, at a point in the labels layer's coordinates: the first shown pill (in placing+ /// order, so a city before a smaller place) that contains it, never a 1948 locality's; null when none does.</summary>+ public string? PillAtLayer(Vector2 layerPoint)+ {+ for (int i = 0; i < items.Count; i++)+ {+ var it = items[i];+ if (!it.IsLocality && it.ShownLast && it.Placed.Contains(layerPoint)) return it.Settlement.Id;+ }+ return null;+ }++ /// <summary>Lights the pill of game settlement <paramref name="id"/> (HoverClass) and puts out the one lit before; null+ /// puts it out. Only the colours change, so the pill keeps its size and its place.</summary>+ public void Highlight(string? id)+ {+ Label? next = null;+ if (id != null) foreach (var it in settlementOrder) if (!it.IsLocality && it.Settlement.Id == id) { next = it.Label; break; }+ if (next == lit) return;+ lit?.RemoveFromClassList(HoverClass);+ next?.AddToClassList(HoverClass);+ lit = next;+ }+/// <summary>The pointer position the hover tooltip may follow, or null: a touchscreen has no hover (the Input System/// keeps its last touch position after the finger lifts, which would leave a tooltip up), so a touch is answered by/// <see cref="Tap"/> instead. A mouse, a pen or any other pointer hovers. Decided by the device type, not guessed.</summary>diff --git a/unity/Assets/Tests/EditMode/GameSceneTests.cs b/unity/Assets/Tests/EditMode/GameSceneTests.csindex 5bacc57fe..f74ca3463 100644--- a/unity/Assets/Tests/EditMode/GameSceneTests.cs+++ b/unity/Assets/Tests/EditMode/GameSceneTests.cs@@ -351,6 +351,91 @@ public class GameSceneTestsreturn new Vector2(p.x, p.y); // projected, not the screen centre: the frame below the top bar is off-centre (TopBarInset)}+ /// <summary>#1063 (player report: a city is hard to tell from the land round it and hard to click). Hovering Tel Aviv's+ /// hex or its name pill lights the pill (GameRoot.HoverCity); a hex with no city lights nothing. A click on the hex and a+ /// click on the pill each open the city panel, the pill's also where the land under the pill is another hex.</summary>+ [UnityTest]+ public IEnumerator ACitysHexAndItsNamePillBothOpenTheCityPanel()+ {+ EditorSceneManager.OpenScene("Assets/Map.unity", OpenSceneMode.Single);+ var doc = Object.FindFirstObjectByType<UIDocument>();+ var cam = Camera.main!;+ var rt = new RenderTexture(1920, 1080, 0);+ var camRt = new RenderTexture(1920, 1080, 24); // the camera fills the panel, as in the game (MapLabelsPresenter)+ var ps = Object.Instantiate(doc.panelSettings);+ ps.targetTexture = rt;+ try+ {+ doc.panelSettings = ps;+ cam.targetTexture = camRt;+ var map = Object.FindFirstObjectByType<MapScene>();+ map.Build(Inputs.Map);+ var root = Object.FindFirstObjectByType<GameRoot>();+ root.Store = new SaveStore(saveDir);+ root.Begin(Inputs, 0);+ var ui = doc.rootVisualElement;+ HideTheOpeningCard(ui);+ var pointer = Object.FindFirstObjectByType<MapPointer>();+ var c = Inputs.Content;+ var tlv = c.SettlementHexes.Single(s => s.Id == "tel_aviv");+ var label = ui.Q<Label>("label-tel_aviv");+ var host = ui.Q<VisualElement>(GddHexPanel.HostName);+ var onHex = AimAtTelAviv();+ for (int i = 0; i < 30 && !(label.resolvedStyle.width > 0); i++) yield return null;+ root.Labels!.Refresh(force: true); yield return null;+ root.Labels.Refresh(force: true); yield return null;+ Assert.AreEqual(Visibility.Visible, label.parent.style.visibility.value, "precondition: Tel Aviv is named");++ // The land under a screen point (camera pixels), asked of the terrain alone, as a click without the pills would be.+ (int q, int r)? Land(Vector2 px) =>+ map.Terrain.GetComponent<TerrainCollider>().Raycast(cam.ScreenPointToRay(px), out var hit, 1_000_000f) ? MapPointer.Pick(map, hit.point) : ((int, int)?)null;+ var panel = ui.panel; float h = Screen.height;+ Vector2 o = UiPointer.ToPanel(panel, Vector2.zero, h), ex = UiPointer.ToPanel(panel, Vector2.right * 100, h) - o, ey = UiPointer.ToPanel(panel, Vector2.up * 100, h) - o;+ Vector2 ScreenFor(Vector2 p) => new Vector2((p - o).x / ex.x * 100, (p - o).y / ey.y * 100);+ float scale = ui.panel.visualTree.worldBound.width / camRt.width;+ Vector2 CameraPixel(Vector2 p) => new Vector2(p.x / scale, camRt.height - p.y / scale);++ // The hex.+ Assert.AreEqual((tlv.Q, tlv.R), Land(onHex), "precondition: the probe is on Tel Aviv's hex");+ Assert.AreEqual("tel_aviv", root.HoverCity(onHex), "the pointer over Tel Aviv's hex");+ Assert.IsTrue(label.ClassListContains(MapLabelsPresenter.HoverClass), "lights Tel Aviv's pill");+ Assert.IsTrue(pointer.HandleClick(onHex));+ Assert.AreEqual("Tel Aviv", ui.Q<Label>("info-title").text);+ Assert.AreEqual(DisplayStyle.Flex, host.style.display.value, "a click on the hex opens the city panel");++ // A hex with no city: the sea off Tel Aviv.+ var sea = onHex + new Vector2(-250f, 0f);+ var seaHex = Land(sea);+ Assert.IsNotNull(seaHex, "precondition: the sea probe is on the map");+ Assert.IsFalse(c.SettlementHexes.Any(x => (x.Q, x.R) == seaHex!.Value && root.Bridge!.State.Cities.ContainsKey(x.Id)), "precondition: no city there");+ Assert.IsNull(root.HoverCity(sea), "no city under the pointer");+ Assert.IsFalse(label.ClassListContains(MapLabelsPresenter.HoverClass), "Tel Aviv's pill is out");+ Assert.IsTrue(pointer.HandleClick(sea));+ Assert.AreNotEqual(DisplayStyle.Flex, host.style.display.value, "precondition: the panel shows the sea, no city");++ // The pill: a point of it over another hex, so only the pill can make it Tel Aviv's click.+ var pill = label.worldBound;+ var points = new[] { pill.center, new Vector2(pill.xMin + 2f, pill.yMin + 2f), new Vector2(pill.xMax - 2f, pill.yMin + 2f),+ new Vector2(pill.xMin + 2f, pill.yMax - 2f), new Vector2(pill.xMax - 2f, pill.yMax - 2f) };+ var off = points.Where(p => Land(CameraPixel(p)) is (int q, int r) && (q, r) != (tlv.Q, tlv.R)).Cast<Vector2?>().FirstOrDefault();+ Assert.IsNotNull(off, $"precondition: some point of the pill {pill} lies over another hex than Tel Aviv's");+ var onPill = ScreenFor(off!.Value);+ Assert.AreEqual("tel_aviv", root.HoverCity(onPill), "the pointer over Tel Aviv's pill");+ Assert.IsTrue(label.ClassListContains(MapLabelsPresenter.HoverClass), "lights the pill");+ Assert.IsTrue(pointer.HandleClick(onPill), "the pill takes the click");+ Assert.AreEqual("Tel Aviv", ui.Q<Label>("info-title").text);+ Assert.AreEqual(DisplayStyle.Flex, host.style.display.value, "a click on the pill opens the city panel");+ }+ finally+ {+ cam.targetTexture = null;+ EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);+ if (ps != null) Object.DestroyImmediate(ps);+ if (rt != null) { rt.Release(); Object.DestroyImmediate(rt); }+ if (camRt != null) { camRt.Release(); Object.DestroyImmediate(camRt); }+ }+ }+// One label each presenter writes on every change: HUD, toast, info panel, Why, Budget, Defence, Cabinet, event card// (the card writes its title while an event is open, so the test opens one first).static readonly string[] Watched = { "year", "toast", "info-title", "why-turn", "budget-money", "mob-level", "cabinet-coalition", "event-title" };diff --git a/unity/Assets/Tests/EditMode/MapLabelTests.cs b/unity/Assets/Tests/EditMode/MapLabelTests.csindex 9680947a0..274572d5a 100644--- a/unity/Assets/Tests/EditMode/MapLabelTests.cs+++ b/unity/Assets/Tests/EditMode/MapLabelTests.cs@@ -530,6 +530,46 @@ public class MapLabelTestsfinally { labels.Dispose(); hd.Dispose(); }}+ /// <summary>#1063 (player report: cities are hard to pick on the map): a city's name pill is a click target. PillAtLayer+ /// finds the shown game settlement's pill under a point, and none off every pill or where a pill is hidden; Highlight+ /// lights that one pill (HoverClass, a lighter fill) and puts it out again. English and Hebrew alike.</summary>+ [UnityTest]+ public IEnumerator ThePillUnderThePointerIsFoundAndLit()+ {+ foreach (var hebrew in new[] { false, true })+ {+ var hd = new HdPanel(cam);+ if (hebrew) (hd.Root.Q("root") ?? hd.Root).AddToClassList(UiLanguage.HebrewClass);+ var labels = new MapLabelsPresenter(hd.Root, map, cam, hebrew: hebrew);+ string lang = hebrew ? "he" : "en";+ 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")), lang + ": Haifa is named at 40 km");+ var container = hd.Root.Q<VisualElement>(MapLabelsPresenter.ContainerName).worldBound.position;+ var centre = haifa.worldBound.center - container;+ Assert.AreEqual("haifa", labels.PillAtLayer(centre), lang + ": the pointer over Haifa's pill");+ Assert.IsNull(labels.PillAtLayer(new Vector2(-50f, -50f)), lang + ": off every pill");+ var fill = haifa.resolvedStyle.backgroundColor;+ labels.Highlight("haifa"); yield return null;+ Assert.IsTrue(haifa.ClassListContains(MapLabelsPresenter.HoverClass), lang + ": Haifa's pill is lit");+ Assert.AreEqual(1, labels.Labels.Count(l => l.ClassListContains(MapLabelsPresenter.HoverClass)), lang + ": that pill alone");+ Assert.AreNotEqual(fill, haifa.resolvedStyle.backgroundColor, lang + ": the lit pill has another fill");+ labels.Highlight(null); yield return null;+ Assert.IsFalse(labels.Labels.Any(l => l.ClassListContains(MapLabelsPresenter.HoverClass)), lang + ": put out");+ Assert.AreEqual(fill, haifa.resolvedStyle.backgroundColor, lang + ": its own fill again");++ Pose(34.78, 31.25, 40000f); // Beersheba: Haifa is off screen+ yield return Settle(labels);+ Assert.IsFalse(Shown(labels.Slots.Single(x => x.name == "slot-haifa")), lang + ": precondition, Haifa's pill is hidden");+ Assert.AreNotEqual("haifa", labels.PillAtLayer(centre), lang + ": a hidden pill is no target");+ }+ finally { 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./// Pinned at every window size of InfoPanelLayoutTests and on one pill per anchor (Haifa centre, Safed right, Petah Tikvadiff --git a/unity/Assets/UI/Statecraft.uss b/unity/Assets/UI/Statecraft.ussindex 7f621566a..75e4b855f 100644--- a/unity/Assets/UI/Statecraft.uss+++ b/unity/Assets/UI/Statecraft.uss@@ -691,6 +691,9 @@ Button.settings-choice-selected { -unity-font-definition: url("project://databas}.map-label-city { font-size: 23px; color: rgb(250, 242, 224); }.map-label-town, .map-label-arab_town { font-size: 19px; }+/* #1063: the city under the pointer (its hexes or its pill) lights its pill, ivory like the map's selected-hex outline, to say+ a click opens it. Colours only: a border or padding change would resize the pill and move the names round it. */+.map-label-hover { background-color: rgb(250, 242, 224); color: rgb(14, 22, 38); }/* The population tier (#710): the city's static 1948 tier as a gold disc at the start of its name, over the pill's startpadding (left, or right in Hebrew). The disc is the pill's sibling in its slot; MapLabelsPresenter sets its left andtop from the pill's size. */