A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
UI: a decision card the Attention left can't pay for says End turn hands it to the minister (Fixes #1034) (#1053)
Beric83c7c1e0b7c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 54a2c2f61..69c00ba03 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -147,6 +147,9 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIBfollows Remez's, row 3860), and `education_registration_1951` opens on 12 February 1951, its first cited plenum record(was 29 November 1950). The card now fires on 15 February 1951, so `hash1952`, `mvp-end` and `scenario-mvp-defeat`move (coalition stability only) and are re-pinned (`docs/determinism.md`).+- A decision card the turn's Attention can't pay for no longer looks frozen (#1034, #1043): each option shows its+ Attention cost and is greyed out, the card says that ending the turn hands the decision to the minister+ (the one `EventSystem.Delegate` names), in English and Hebrew, and End turn is highlighted while such a card waits.- MATKOT's building models up close (#700) stand at one world scale, set by the steam train the map runs: a typical8.5 m house is as long as the locomotive's car (about 204 m), so every model is 24x its building's real size(`SettlementKits.ModelScale`), keeps its own proportions and no longer fills the kit's plot; a plot holds a smalldiff --git a/sim/Statecraft.Sim.Tests/CabinetTests.cs b/sim/Statecraft.Sim.Tests/CabinetTests.csindex 94e01fd26..e4ff5a472 100644--- a/sim/Statecraft.Sim.Tests/CabinetTests.cs+++ b/sim/Statecraft.Sim.Tests/CabinetTests.cs@@ -264,6 +264,18 @@ public class CabinetTestsAssert.Equal("Loy Alist reports a drought.", EventSystem.Render(c, s, drought));}+ [Fact]+ public void DelegatedToNamesWhoEndTurnHandsTheEventToAfterTheQueuedOrders()+ {+ // #1034 review: Step runs the orders (Appoint included) before EventSystem.Delegate, so the card must ask after them.+ var c = Load(new Dictionary<string, string> { ["drought.yaml"] = ValidationTests.Event });+ var s = Simulation.NewGame(c, 42, Mode.Historical);+ Assert.Equal("def_two", Simulation.DelegatedTo(c, s, None, "drought")!.Id);+ Assert.Equal("loyalist", Simulation.DelegatedTo(c, s, new Command[] { new Appoint("finance_minister", "loyalist") }, "drought")!.Id);+ Assert.Equal("def_two", Simulation.DelegatedTo(c, s, new Command[] { new Appoint("finance_minister", "outsider") }, "drought")!.Id); // refused: nobody changes+ Assert.Equal("def_two", Cabinet.Holder(c, s, "finance_minister")!.Id); // a dry run on a clone: the state is untouched+ }+[Fact]public void HistoricalOnlyOfficesKeepTheirTermsButAreNotCabinetSeatsOrAppointable(){diff --git a/sim/Statecraft.Sim/EventSystem.cs b/sim/Statecraft.Sim/EventSystem.csindex cc5bb1621..1440c9bae 100644--- a/sim/Statecraft.Sim/EventSystem.cs+++ b/sim/Statecraft.Sim/EventSystem.cs@@ -175,6 +175,10 @@ namespace Statecraft.Simreturn lines;}+ /// <summary>The minister <see cref="Delegate"/> hands the event to in this state: its office's holder today, or null+ /// (no office, or nobody holds it: the cabinet decides). Simulation.DelegatedTo asks it after the queued orders.</summary>+ public static Person? DelegatedTo(Content c, GameState s, GameEvent e) => e.Office == "" ? null : Cabinet.Holder(c, s, e.Office);+/// <summary>Unanswered events go to the responsible minister: with probability competence/10 they pick the/// recommended option (else the first), otherwise a random option. In Historical mode a hard-anchor event/// resolves to its historical option without drawing from the RNG (major anchors happen). An objective's card has one@@ -189,7 +193,7 @@ namespace Statecraft.Simforeach (var id in s.PendingEvents.ToList()){var e = Get(c, id);- var minister = e.Office == "" ? null : Cabinet.Holder(c, s, e.Office);+ var minister = DelegatedTo(c, s, e);if (e.Objective != ""){Resolve(c, s, id, e.Options[0], $"delegated to {minister?.Name ?? "the cabinet"}", why);diff --git a/sim/Statecraft.Sim/Simulation.cs b/sim/Statecraft.Sim/Simulation.csindex 27b793110..7bda72a6d 100644--- a/sim/Statecraft.Sim/Simulation.cs+++ b/sim/Statecraft.Sim/Simulation.cs@@ -44,16 +44,7 @@ namespace Statecraft.Simreturn new StepResult(s, why, rejected);}- var priceRung = s.Rung; // every command this turn is priced at the rung the turn started at- foreach (var cmd in commands)- {- if (!AttentionSystem.IsCommandKind(cmd.Kind)) { rejected.Add(new Rejection(cmd, "That order is not known")); continue; }- // A GDD order has no price in the legacy rules: refuse it before charging (R-CITY-001).- if (AttentionSystem.IsGddKind(cmd.Kind) && !c.IsGdd) { rejected.Add(new Rejection(cmd, "That order is not available in this game")); continue; }- var before = s.Attention;- var error = AttentionSystem.TrySpend(c, s, cmd.Kind, priceRung) ?? Execute(c, s, cmd, why);- if (error != null) { s.Attention = before; rejected.Add(new Rejection(cmd, error)); }- }+ RunOrders(c, s, commands, why, rejected);EventSystem.Delegate(c, s, why);var len = SecuritySystem.TurnLengthFor(c, s.Date, s.Rung);@@ -89,6 +80,36 @@ namespace Statecraft.Simreturn new StepResult(s, why, rejected);}+ /// <summary>Who End Turn would hand the event to (EventSystem.Delegate) if the turn ended with these orders: runs+ /// them on a clone, as <see cref="Step"/> does, then asks EventSystem.DelegatedTo. Never mutates <paramref name="state"/>.</summary>+ public static Person? DelegatedTo(Content c, GameState state, IReadOnlyList<Command> commands, string eventId)+ {+ if (c == null) throw new ArgumentNullException(nameof(c));+ if (state == null) throw new ArgumentNullException(nameof(state));+ if (commands == null) throw new ArgumentNullException(nameof(commands));+ if (commands.Any(x => x == null)) throw new ArgumentException("Commands cannot contain null.", nameof(commands));+ CommandText.Validate(commands);+ var s = state.Clone();+ if (s.GameOver == null) RunOrders(c, s, commands, new List<Cause>(), new List<Rejection>());+ return EventSystem.DelegatedTo(c, s, c.Events.First(e => e.Id == eventId));+ }++ /// <summary>The turn's orders in order: each pays Attention first; one that fails validation is refunded and+ /// rejected with its reason. Step and DelegatedTo share it, so the dry run sees what End Turn will.</summary>+ static void RunOrders(Content c, GameState s, IReadOnlyList<Command> commands, List<Cause> why, List<Rejection> rejected)+ {+ var priceRung = s.Rung; // every command this turn is priced at the rung the turn started at+ foreach (var cmd in commands)+ {+ if (!AttentionSystem.IsCommandKind(cmd.Kind)) { rejected.Add(new Rejection(cmd, "That order is not known")); continue; }+ // A GDD order has no price in the legacy rules: refuse it before charging (R-CITY-001).+ if (AttentionSystem.IsGddKind(cmd.Kind) && !c.IsGdd) { rejected.Add(new Rejection(cmd, "That order is not available in this game")); continue; }+ var before = s.Attention;+ var error = AttentionSystem.TrySpend(c, s, cmd.Kind, priceRung) ?? Execute(c, s, cmd, why);+ if (error != null) { s.Attention = before; rejected.Add(new Rejection(cmd, error)); }+ }+ }+/// <summary>Returns null when the command was carried out (a lost vote counts: it consumes the RNG draw and is/// reported as a politics cause), or the reason it failed validation. A command that fails validation leaves/// the state as it found it (attention is refunded by the caller).</summary>diff --git a/unity/Assets/Scripts/UI/EventCardPresenter.cs b/unity/Assets/Scripts/UI/EventCardPresenter.csindex 6f8fd8ead..07f3a6a24 100644--- a/unity/Assets/Scripts/UI/EventCardPresenter.cs+++ b/unity/Assets/Scripts/UI/EventCardPresenter.cs@@ -27,6 +27,9 @@ namespace Statecraft.Game.UIpublic const string ModalClass = "event-modal";/// <summary>The media header's width over its height (the photographs and the clips are 960x540).</summary>public const float MediaAspect = 16f / 9f;+ /// <summary>On End Turn while the shown card cannot be answered with the Attention left (#1034): Statecraft.uss+ /// highlights it, as ending the turn is then the way on (EventSystem.Delegate hands the card to its minister).</summary>+ public const string EndTurnWaitingClass = "end-turn-waiting";readonly VisualElement card; readonly SimBridge bridge; readonly UiText text; readonly PortraitCatalog? portraits;readonly EventImageCatalog? photos;@@ -39,7 +42,8 @@ namespace Statecraft.Game.UIreadonly bool hiddenInCapture;/// <summary>Tests: the card is waiting for the start screen to close before it looks up its photograph.</summary>internal bool PhotoWaits => photoWaits;- readonly VisualElement band, head, scroll, options, layer, hudRoot; readonly Label credit;+ readonly VisualElement band, head, scroll, options, layer, hudRoot; readonly Label credit, delegateLine;+ readonly Button? endTurn;readonly Button hide, reopen, illustrationSwitch;readonly System.Action onHide, onReopen, onUncovered;readonly EventCallback<PointerDownEvent> onHidePointer;@@ -86,7 +90,9 @@ namespace Statecraft.Game.UI// size it was dropped at gets no geometry event of its own; the head below it always moves, so it checks too.head = card.Q<VisualElement>(className: "event-head");scroll = card.Q<VisualElement>("event-scroll"); options = card.Q<VisualElement>("event-options");+ delegateLine = card.Q<Label>("event-delegate");layer = card.parent; hudRoot = root.Q("root") ?? root;+ endTurn = hudRoot.Q<Button>("end-turn");hide = card.Q<Button>("event-hide"); reopen = layer.Q<Button>("event-reopen");hide.text = text["event.hide"]; reopen.text = text["event.reopen"];card.Q<Label>("event-draft").text = text["event.draft"];@@ -145,6 +151,7 @@ namespace Statecraft.Game.UIcard.Q<VisualElement>("event-options")?.Clear(); card.style.display = DisplayStyle.None;reopen.style.display = DisplayStyle.None;hudRoot.RemoveFromClassList(OpenClass);+ endTurn?.RemoveFromClassList(EndTurnWaitingClass);ScreenNav.DisableCovered(hudRoot);}@@ -196,6 +203,13 @@ namespace Statecraft.Game.UIreopen.style.display = !hiddenInCapture && Collapsed ? DisplayStyle.Flex : DisplayStyle.None;hudRoot.EnableInClassList(OpenClass, shown);ScreenNav.DisableCovered(hudRoot);+ // An answer is an order and costs Attention (choose_event_option): the bridge prices it and checks it as Queue+ // does. When the turn's Attention left cannot pay, every option would be refused (#1034, #1043): the options are+ // greyed out with their price, the card says End Turn hands it to its minister, and End Turn is highlighted.+ var answer = Shown == null ? null : new ChooseEventOption(Shown.Id, "");+ var price = answer == null ? 0 : bridge.Price(answer);+ var unpaid = answer != null && !bridge.CanPay(answer);+ endTurn?.EnableInClassList(EndTurnWaitingClass, !hiddenInCapture && unpaid);if (Shown == null || Collapsed) video?.Stop();if (Shown == null) { clip = null; clipAlt = null; ShowPhoto(null); return; }var e = Shown;@@ -223,13 +237,19 @@ namespace Statecraft.Game.UIvar objective = card.Q<Label>("event-objective"); // an objective card's line (#380); none on any other cardobjective.text = ObjectiveLine(c, s, e, text);objective.style.display = objective.text.Length == 0 ? DisplayStyle.None : DisplayStyle.Flex;+ // The minister End Turn hands the card to, after this turn's queued orders (an appointment included): the sim's answer.+ var minister = unpaid ? bridge.DelegatedTo(e) : null;+ delegateLine.text = unpaid ? text.Format("event.no_attention", minister == null ? text["event.cabinet"] : ContentNames.Of(text, minister)) : "";+ delegateLine.style.display = unpaid ? DisplayStyle.Flex : DisplayStyle.None;var options = card.Q<VisualElement>("event-options");options.Clear();foreach (var o in e.Options){var option = o;- var b = new Button(() => Choose(e, option)) { name = "option-" + o.Id, text = Cabinet.Fill(c, s, o.Text, date) };+ var label = Cabinet.Fill(c, s, o.Text, date);+ var b = new Button(() => Choose(e, option)) { name = "option-" + o.Id, text = price > 0 ? text.Format("event.option_cost", label, price) : label };b.AddToClassList(OptionClass);+ b.SetEnabled(!unpaid);b.generateVisualContent += PaintSign; // the promo's round sign at the option's leftoptions.Add(b);}diff --git a/unity/Assets/Scripts/UI/SimBridge.cs b/unity/Assets/Scripts/UI/SimBridge.csindex d0ccf5742..acd0e1463 100644--- a/unity/Assets/Scripts/UI/SimBridge.cs+++ b/unity/Assets/Scripts/UI/SimBridge.cs@@ -64,7 +64,18 @@ namespace Statecraft.Game.UI_ => c.Kind,};- double Price(Command c) => AttentionSystem.IsCommandKind(c.Kind) ? AttentionSystem.Cost(Content, State, c.Kind) : 0;+ /// <summary>The order's Attention price at this turn's prices: what <see cref="Queue"/> charges and the card shows.</summary>+ public double Price(Command c) => AttentionSystem.IsCommandKind(c.Kind) ? AttentionSystem.Cost(Content, State, c.Kind) : 0;++ /// <summary>Whether the Attention left pays for the order (a queued order with its key is refunded first): the one+ /// check <see cref="Queue"/> refuses on, so the event card (#1034) and a refusal can never disagree.</summary>+ public bool CanPay(Command c) => Price(c) <= LeftFor(c) + 1e-9;++ double LeftFor(Command c) { var old = QueuedLike(c); return AttentionLeft + (old != null ? Price(old) : 0); }++ /// <summary>Who End Turn hands the event to with the orders queued now (Simulation.DelegatedTo), or null for the+ /// cabinet: an appointment queued this turn is in office by then (#1034).</summary>+ public Person? DelegatedTo(GameEvent e) => Simulation.DelegatedTo(Content, State, queue, e.Id);/// <summary>Attention left after paying for the queued orders at this turn's prices.</summary>public double AttentionLeft => State.Attention - queue.Sum(Price);@@ -149,10 +160,9 @@ namespace Statecraft.Game.UIif (bad != null) return Refuse(bad);if (State.GameOver != null) return Refuse(text["order.game_over"]);if (c is AllocateBudget ab) c = new AllocateBudget(new Dictionary<string, double>(ab.Shares)); // a snapshot: later edits to the caller's dictionary must not change the order+ if (!CanPay(c))+ return Refuse(text.Format("order.no_attention", Price(c), LeftFor(c)));var old = QueuedLike(c);- var left = AttentionLeft + (old != null ? Price(old) : 0);- if (Price(c) > left + 1e-9)- return Refuse(text.Format("order.no_attention", Price(c), left));if (old != null) queue[queue.IndexOf(old)] = c; else queue.Add(c);Changed?.Invoke();return null;diff --git a/unity/Assets/Tests/EditMode/EventCardTests.cs b/unity/Assets/Tests/EditMode/EventCardTests.csindex 4acba432f..e17bf6461 100644--- a/unity/Assets/Tests/EditMode/EventCardTests.cs+++ b/unity/Assets/Tests/EditMode/EventCardTests.cs@@ -48,7 +48,7 @@ public class EventCardTestsStringAssert.Contains("David Ben-Gurion must decide whether Israel signs.", ui.Q<Label>("event-text").text);Assert.AreEqual(catalog.Get("ben_gurion"), ui.Q<VisualElement>("event-image").style.backgroundImage.value.texture);Assert.AreEqual(DisplayStyle.None, ui.Q<Label>("event-draft").style.display.value);- Assert.AreEqual("Sign the armistice", ui.Q<Button>("option-sign").text);+ Assert.AreEqual("Sign the armistice (costs 2.0 Attention)", ui.Q<Button>("option-sign").text); // its price shows (#1034)}[Test]@@ -382,4 +382,86 @@ public class EventCardTestsStringAssert.StartsWith("Boris Carmi / Meitar Collection", credit);StringAssert.EndsWith("CC BY 4.0 · graded and cropped", credit);}++ // ---- Too little Attention to answer (#1034, #1043): the card says End Turn hands it to the minister ----++ /// <summary>The players' report (#1034, #1043): The Second Truce on 15 July 1948 with the turn's Attention spent. Each+ /// option shows its price and is greyed out, the card names the minister End Turn hands it to (the one+ /// EventSystem.Delegate names), and End Turn is highlighted; with Attention back, all of that goes away.</summary>+ [TestCase("en", "You don't have enough Attention left to answer this turn. End the turn and the decision goes to David Ben-Gurion.", "Comply with the cease-fire (costs 2.0 Attention)")]+ [TestCase("he", "לא נשארה לך מספיק תשומת לב לענות בתור הזה. אפשר לסיים את התור, וההחלטה תעבור לידי דוד בן-גוריון.", "\u200eComply with the cease-fire\u200e (עולה \u200e2.0\u200e תשומת לב)")]+ public void WithTooLittleAttentionTheCardSaysEndTurnHandsItToTheMinister(string lang, string line, string option)+ {+ var text = lang == "he" ? He : Text;+ var g = GameSession.New(C, GoldenRun.Seed, Mode.Historical);+ g.State.Date = C.Events.First(e => e.Id == "second_truce").From;+ g.State.PendingEvents.Clear(); g.State.PendingEvents.Add("second_truce");+ var bridge = new SimBridge(g, text);+ using var ui = new UiTestKit();+ var card = new EventCardPresenter(ui.Root, bridge, text, null);+ var delegated = ui.Q<Label>("event-delegate");+ var endTurn = ui.Q<Button>("end-turn");+ var options = ui.Q<VisualElement>("event-options").Query<Button>().ToList();+ Assert.AreEqual(DisplayStyle.None, delegated.style.display.value, "with Attention to pay, no line");+ Assert.IsTrue(options.All(b => b.enabledSelf), "with Attention to pay, every option can be pressed");+ Assert.IsFalse(endTurn.ClassListContains(EventCardPresenter.EndTurnWaitingClass));++ g.State.Attention = 0;+ card.Render();+ options = ui.Q<VisualElement>("event-options").Query<Button>().ToList();+ Assert.AreEqual(DisplayStyle.Flex, delegated.style.display.value);+ Assert.AreEqual(line, delegated.text);+ Assert.AreEqual(option, ui.Q<Button>("option-comply").text, "the option shows its price");+ Assert.IsTrue(options.All(b => !b.enabledSelf), "no option can be pressed");+ Assert.IsTrue(endTurn.ClassListContains(EventCardPresenter.EndTurnWaitingClass), "End Turn is highlighted");++ g.State.Attention = 4;+ card.Render();+ Assert.AreEqual(DisplayStyle.None, ui.Q<Label>("event-delegate").style.display.value);+ Assert.IsTrue(ui.Q<VisualElement>("event-options").Query<Button>().ToList().All(b => b.enabledSelf));+ Assert.IsFalse(endTurn.ClassListContains(EventCardPresenter.EndTurnWaitingClass));++ // The line names the minister End Turn really hands the card to.+ g.State.Attention = 0;+ var turn = bridge.EndTurn();+ Assert.IsTrue(turn.Why.Any(w => w.Message.StartsWith("Delegated to David Ben-Gurion:")), "EventSystem.Delegate names the same minister");+ Assert.IsFalse(endTurn.ClassListContains(EventCardPresenter.EndTurnWaitingClass), "no card waits after End Turn");+ }++ /// <summary>#1034 review: Step runs the queued orders, Appoint included, before EventSystem.Delegate. With an+ /// appointment queued this turn (One Army, turn 0), the card names the appointee and End Turn hands it to them.</summary>+ [Test]+ public void WithTooLittleAttentionTheCardNamesTheMinisterAppointedThisTurn()+ {+ var g = GameSession.New(C, GoldenRun.Seed, Mode.Historical);+ g.State.PendingEvents.Clear(); g.State.PendingEvents.Add("idf_founding");+ var bridge = new SimBridge(g, Text);+ using var ui = new UiTestKit();+ var card = new EventCardPresenter(ui.Root, bridge, Text, null);+ var appoint = new Appoint("defense_minister", "zisling");+ Assert.IsNull(bridge.Queue(appoint));+ g.State.Attention = bridge.Price(appoint); // the rest of the turn's Attention is spent+ card.Render();+ Assert.AreEqual("You don't have enough Attention left to answer this turn. End the turn and the decision goes to Aharon Zisling.", ui.Q<Label>("event-delegate").text);+ var turn = bridge.EndTurn();+ Assert.IsTrue(turn.Why.Any(w => w.Message.StartsWith("Delegated to Aharon Zisling:")), "End Turn hands it to the appointee");+ }++ /// <summary>A card with no office goes to the cabinet at End Turn (EventSystem.Delegate's "the cabinet"): the line says so.</summary>+ [TestCase("en", "You don't have enough Attention left to answer this turn. End the turn and the decision goes to the cabinet.")]+ [TestCase("he", "לא נשארה לך מספיק תשומת לב לענות בתור הזה. אפשר לסיים את התור, וההחלטה תעבור לידי הממשלה.")]+ public void WithTooLittleAttentionACardWithNoOfficeGoesToTheCabinet(string lang, string line)+ {+ var text = lang == "he" ? He : Text;+ var c = ContentLoader.Load(Paths.Content);+ var e = c.Events.First(x => x.Id == "second_truce");+ e.Office = ""; e.Text = "No office.";+ var g = GameSession.New(c, GoldenRun.Seed, Mode.Historical);+ g.State.Date = e.From;+ g.State.PendingEvents.Clear(); g.State.PendingEvents.Add(e.Id);+ g.State.Attention = 0;+ using var ui = new UiTestKit();+ new EventCardPresenter(ui.Root, new SimBridge(g, text), text, null);+ Assert.AreEqual(line, ui.Q<Label>("event-delegate").text);+ }}diff --git a/unity/Assets/UI/Game.uxml b/unity/Assets/UI/Game.uxmlindex da3010737..de5b23ad5 100644--- a/unity/Assets/UI/Game.uxml+++ b/unity/Assets/UI/Game.uxml@@ -170,6 +170,8 @@</ui:VisualElement><ui:VisualElement class="gold-rule" /><ui:ScrollView name="event-scroll" class="event-scroll"><ui:Label name="event-text" class="event-text" /><ui:Label name="event-objective" class="muted event-objective" /></ui:ScrollView>+ <!-- Shown only when the turn's Attention cannot pay for an answer (#1034): End Turn hands the card to its minister. -->+ <ui:Label name="event-delegate" class="event-delegate" /><ui:VisualElement name="event-options" /><!-- The count of other open decisions, and Hide: the card collapses to "Decision waiting" so the map can beinspected (EventCardPresenter.Collapse); focus order: the options, then Hide. -->diff --git a/unity/Assets/UI/Statecraft.uss b/unity/Assets/UI/Statecraft.ussindex 0bf5935ee..4230f8bf8 100644--- a/unity/Assets/UI/Statecraft.uss+++ b/unity/Assets/UI/Statecraft.uss@@ -203,6 +203,8 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);border-color: var(--gold); border-width: 1.5px; color: var(--gold-light); padding: 2px 12px 2px 38px;}.end-turn:hover { border-color: var(--gold-light); }+/* A card waits that the Attention left cannot answer (#1034): End Turn is the way on, so it stands out. */+.end-turn-waiting { border-color: var(--gold-light); border-width: 3px; background-color: rgba(196, 160, 92, 0.35); }/* The decision card in the middle (decision cards, 2026-10-13), the info panel at the bottom-left, the minimap at thebottom-right. The right-hand column keeps its 480 px width, so the screens and the border layer's caption stay where@@ -318,6 +320,8 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);.event-text { white-space: normal; margin-bottom: 8px; }/* An objective card's line under its text (#380): when it was completed against history. */.event-objective { white-space: normal; margin-bottom: 8px; }+/* The line over the greyed-out options when the Attention left cannot pay for an answer (#1034). */+.event-delegate { display: none; white-space: normal; margin: 4px 0; color: var(--gold-light); }.draft { display: none; color: var(--down); -unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf"); -unity-text-align: middle-center; }/* The info panel: the hex's terrain sign (UiIcon on the biome's map colour, InfoPanelPresenter) beside its facts. */.info-panel { position: absolute; left: 16px; bottom: 16px; width: 520px; min-height: 160px; flex-direction: row; align-items: flex-start; }diff --git a/unity/Assets/UI/strings.en.yaml b/unity/Assets/UI/strings.en.yamlindex 20e0bce90..8643c9555 100644--- a/unity/Assets/UI/strings.en.yaml+++ b/unity/Assets/UI/strings.en.yaml@@ -87,6 +87,11 @@ event.reopen: "Decision waiting"event.illustration: "Illustration"event.photo: "Photograph"event.ai_label: "AI-generated illustration"+# Too little Attention left to answer the card (#1034, #1043): the options show their price and the card says End Turn+# hands it to the minister EventSystem.Delegate names. {0} the minister's name, or event.cabinet when the card has none.+event.no_attention: "You don't have enough Attention left to answer this turn. End the turn and the decision goes to {0}."+event.cabinet: "the cabinet"+event.option_cost: "{0} (costs {1:0.0} Attention)"# An objective card's line under its text (#380), from Objectives.MonthsFromHistory: early, in the same month as history,# or later. The owner's wording (#379, 14 October 2026). {0} the completion date, {1} the historical date, {2} months.event.objective_early: "Completed on {0}; historically {1}; {2} months early."diff --git a/unity/Assets/UI/strings.he.yaml b/unity/Assets/UI/strings.he.yamlindex 88cb78317..08d84f084 100644--- a/unity/Assets/UI/strings.he.yaml+++ b/unity/Assets/UI/strings.he.yaml@@ -84,6 +84,11 @@ event.reopen: "החלטה ממתינה"event.illustration: "איור"event.photo: "תצלום"event.ai_label: "איור שנוצר בבינה מלאכותית"+# Too little Attention left to answer the card (#1034, #1043). "אפשר לסיים" and "לידי" keep the line free of the+# player's and the minister's gender. For the native reviewer (#564).+event.no_attention: "לא נשארה לך מספיק תשומת לב לענות בתור הזה. אפשר לסיים את התור, וההחלטה תעבור לידי {0}."+event.cabinet: "הממשלה"+event.option_cost: "{0} (עולה {1:0.0} תשומת לב)"# The objective card's line (#380; the owner's wording, #379): early, on time, later.event.objective_early: "הושלם ב־{0}; בהיסטוריה ב־{1}; מוקדם ב־{2} חודשים."event.objective_early_one: "הושלם ב־{0}; בהיסטוריה ב־{1}; מוקדם בחודש אחד."