Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

ui: the start-screen painting with blacked-out windows, at native 2K (fixes #268) (#350)

Eyal Golan28957d3d1006
diff --git a/ASSETS.yaml b/ASSETS.yaml
index a775853c9..94cce0efa 100644
--- a/ASSETS.yaml
+++ b/ASSETS.yaml
@@ -38,9 +38,9 @@ rules:
- glob: "unity/Assets/UI/StartScreen/declaration-hall.jpg"
licence: CC0-1.0
ai_generated: true
- source: "Dreamina (dreamina.capcut.com), model GPT Image 2.5, 2026-10-12, with promo/final/03-gameplay-1936.png as the style reference; the start screen's painting. Option C of promo/start-screen (prompt in promo/start-screen/prompt-c.txt), resized from 1536x864 to 1920x1080 (Lanczos) and saved as JPEG; the Dreamina AI badge is kept"
+ source: "ElevenLabs Image API (Pro plan, decision D5), model GPT Image 2.5 Sunburst (gpt-image-2.5-sunburst), 2K, quality high, 2026-10-12 (#268); the start screen's painting, native 2048x1152, saved as JPEG (quality 90), no upscale. Take 1: prompt promo/start-screen/prompt-d.txt, with the previous painting (this file as merged in #255: Dreamina option C, resized to 1920x1080) as the composition reference and promo/final/03-gameplay-1936.png as the style reference. Take 2 (used): prompt promo/start-screen/prompt-d-edit.txt, an edit of take 1 that changes only the row of figures at the table. The previous painting (Dreamina, #255) showed sunbeams through the windows"
status: owner-verify
- note: "Decision D1: AI-only images CC0 / no rights claimed. Content policy: no identifiable real person (the hall from behind the audience, tiny soft-focus figures at the table, the frame between the flags holds an abstract warm blur with no figure or face in it, not a portrait). The model gave 1536x864 with a reference image; Dreamina's own upscale was not run (no free credits left), so the 1920x1080 is a plain resize."
+ note: "Decision D1: AI-only images CC0 / no rights claimed. Its composition reference is a Dreamina output, so it stays under D-D's open sign-off (docs/oss/DECISIONS.md). History: on 14 May 1948 some of the hall's windows were darkened for fear of an air raid, so the painting shows the windows covered with blackout cloth and the hall lit by lamps, with no daylight. Source: Ynet, '110 שנות היסטוריה: סיפורו של הבית שבו נולדה המדינה', 6 May 2022, https://www.ynet.co.il/architecture/article/rkgpx4bi5 ('וחלק מהחלונות הואפלו מחשש לתקיפה אווירית'), cited by https://en.wikipedia.org/wiki/Independence_Hall_(Israel) ('windows were darkened over fears of an air raid'); both checked 2026-10-12. The lamps themselves are not in the source. Content policy: no identifiable real person (the hall from behind the audience; the figures at the table are a soft, even row of tiny dark-haired silhouettes with an empty place at the centre, so no one reads as a speaker; the frame between the flags holds an abstract warm blur with no figure or face in it, not a portrait). An ElevenLabs output carries no provenance badge; the start screen's source line says 'Painting: AI-generated.'"
- glob: "promo/start-screen/declaration-hall-option-*.png"
licence: CC0-1.0
ai_generated: true
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 39b1e5b2d..7461b2583 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -254,6 +254,9 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB
- Eliezer Kaplan's Trade and Industry term and Haim-Moshe Shapira's Health term in the First Government start on 22
March 1949, not 10 March: on 22 March the Prime Minister told the Knesset the government had assigned them, and the
Knesset's position records give the same date. The goldens do not move (fixes #310).
+- The start screen's painting no longer shows sunbeams: on 14 May 1948 the hall's windows were darkened for fear of an
+ air raid, so the new painting shows them blacked out and the hall lamplit. It is a native 2048x1152 render, no longer
+ a 1536x864 upscale, and a window narrower than 16:9 now crops both sides of it alike (fixes #268).
- The Unity idle test `PromoScreensTests.AnOpenScreenIsStillWhenIdle` no longer fails now and then (#242). It was not a
font atlas and not a recurring layout. A batch-mode editor runs few frames, and now and then it tells
`UIDocument` late that the test's GameObject exists. `UIDocument` then re-adds its root and the whole screen lays out
diff --git a/LICENSING.md b/LICENSING.md
index c7e613fa8..0c9e9bea3 100644
--- a/LICENSING.md
+++ b/LICENSING.md
@@ -8,7 +8,7 @@ Different parts of this repository are under different licences. Where a file is
| Game content (text and data) | `content/` (events, people, offices, model, rules, map YAML/JSON), except the third-party map data below | [CC BY-SA 4.0](LICENSES/CC-BY-SA-4.0.txt), credit "Statecraft: Israel contributors". The text paraphrases its cited sources, many from Wikipedia (CC BY-SA), so share-alike applies; each entry lists its sources |
| Original docs, art and UI assets | `docs/`, the root `*.md` files (except `LICENSE`), `ASSETS.yaml`, `ASSETS.portraits.yaml`, `promo/shots.json`, `promo/CREDITS.md`, `tools/README.md`, `reports/` (our own text), `research_notes/` (our own text), `unity/Assets/UI/*.uxml`, `*.uss`, `strings.en.yaml`, `unity/Assets/Materials/`, `unity/Assets/Resources/Units/` (materials), `unity/Assets/Shaders/`, `unity/Assets/UI/*.asset`, `unity/Assets/WebGLTemplates/Statecraft/favicon.ico`, `unity/Assets/Resources/EventImageCatalog.asset` (the event-photo catalog: alt texts, credits and flags; the pictures it points to are under their own licences below), `promo/ref/geo-reference.png` | [CC BY 4.0](LICENSES/CC-BY-4.0.txt), credit "Statecraft: Israel contributors" |
| Unity template-derived files | `unity/Assets/Settings/` (URP assets, renderers, volume profiles), `spikes/m0/unity/Assets/Settings/`, `spikes/m0/unity/Assets/UI Toolkit/UnityThemes/`, and any Shader Graph generated from a Unity template (for example `unity/Assets/Shaders/StatecraftTerrain.shadergraph`, from "Terrain Simple") | Created from Unity's project or graph templates and edited; under the [Unity Companion License](https://unity.com/legal/licenses/unity-companion-license) (use with Unity), not MIT |
-| AI-generated images | `promo/final/01`–`08`, `promo/ref/*-src.jpg`, `docs/images/hero-concept-1936.jpg`, `promo/start-screen/*.png`, `unity/Assets/UI/StartScreen/declaration-hall.jpg` | Marked [CC0 1.0](LICENSES/CC0-1.0.txt). No rights are claimed. Purely AI-generated output may not be copyrightable. Made with the ElevenLabs Image API (see `promo/CREDITS.md`), except the start screen's painting and its options, made with Dreamina (`ASSETS.yaml`). |
+| AI-generated images | `promo/final/01`–`08`, `promo/ref/*-src.jpg`, `docs/images/hero-concept-1936.jpg`, `promo/start-screen/*.png`, `unity/Assets/UI/StartScreen/declaration-hall.jpg` | Marked [CC0 1.0](LICENSES/CC0-1.0.txt). No rights are claimed. Purely AI-generated output may not be copyrightable. Made with the ElevenLabs Image API (see `promo/CREDITS.md`), except the start screen's option images, made with Dreamina; the start screen's painting was made on ElevenLabs from a Dreamina option (`ASSETS.yaml`). |
| Quoted public-domain text | `docs/sources/declaration-1948/` | The Declaration of the Establishment of the State of Israel (1948): the Hebrew of the Official Gazette and the English translation. Public domain; sources in each file and in `ASSETS.yaml`. |
| In-engine captures | `promo/final/09`, `10`, `docs/images/build-*.jpg`, `docs/images/social-preview.jpg`, `spikes/m0/evidence/*.jpg`, `spikes/m0/evidence/*.txt` (logs) | CC BY 4.0. They show the Copernicus-derived terrain; see below. |
| Portraits | `unity/Assets/UI/Portraits/`, `promo/ref/people/`, `promo/ref/*-sheet.jpg` | Public-domain photographs from Wikimedia Commons, plus one CC0 file (Moshe Dayan, 1962). Per-file sources are in `content/people.yaml` and `promo/CREDITS.md`. |
diff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.md
index dbe299f08..12e2e6426 100644
--- a/THIRD-PARTY-NOTICES.md
+++ b/THIRD-PARTY-NOTICES.md
@@ -20,7 +20,7 @@ required attribution texts are in [`NOTICE`](NOTICE).
| EB Garamond | `unity/Assets/UI/Fonts/` | SIL Open Font License 1.1 | Keep `OFL.txt` with the fonts; do not sell the fonts on their own |
| Frank Ruhl Libre | `unity/Assets/UI/Fonts/FrankRuhlLibre/` | SIL Open Font License 1.1 | Keep `OFL.txt` with the fonts; do not sell the fonts on their own |
| Unity template-derived files | `unity/Assets/Settings/`, `spikes/m0/unity/Assets/Settings/`, `spikes/m0/unity/Assets/UI Toolkit/UnityThemes/`, and Shader Graphs generated from a Unity template (`unity/Assets/Shaders/StatecraftTerrain.shadergraph`) | Unity Companion License | Use with Unity; see `LICENSING.md` |
-| AI-generated concept art | `promo/final/01`–`08`, `promo/ref/*-src.jpg`, `docs/images/hero-concept-1936.jpg`, `promo/start-screen/*.png`, `unity/Assets/UI/StartScreen/declaration-hall.jpg` (in every build) | CC0 / no rights claimed (`LICENSING.md`); generator terms under owner review (D5) | Disclose as AI-generated (Steam and itch.io require it) |
+| AI-generated concept art | `promo/final/01`–`08`, `promo/ref/*-src.jpg`, `docs/images/hero-concept-1936.jpg`, `promo/start-screen/*.png`, `unity/Assets/UI/StartScreen/declaration-hall.jpg` (in every build) | CC0 / no rights claimed (`LICENSING.md`); generator terms under owner review (D5; D-D for the start screen's painting and options) | Disclose as AI-generated (Steam and itch.io require it) |
Code dependencies are fetched at build or run time under their own licences and are not vendored: NuGet packages in
`sim/**/*.csproj` (YamlDotNet MIT; test-only: xUnit Apache-2.0, Microsoft.NET.Test.Sdk MIT, xunit.runner.visualstudio
diff --git a/docs/ai-disclosure.md b/docs/ai-disclosure.md
index 3e23d6b78..328f0e405 100644
--- a/docs/ai-disclosure.md
+++ b/docs/ai-disclosure.md
@@ -14,5 +14,5 @@ This is not a licence clearance or a completed store content survey. owner-verif
| promo/final/0[1-8]-*.png | ASSETS.yaml | ElevenLabs Image API /v1/flows/image (GPT Image 2.5, Nano Banana Pro), prompts in promo/shots.json, generated 2026-10-08/09 by promo/gen.py; text fixes by promo/patch.py | owner-verify |
| promo/ref/*-src.jpg | ASSETS.yaml | Earlier promo/gen.py outputs used as edit inputs for the *_fix shots in promo/shots.json (commit d42bd6b) | owner-verify |
| promo/start-screen/declaration-hall-option-*.png | ASSETS.yaml | Dreamina (dreamina.capcut.com), model GPT Image 2.5, 2026-10-12, 1536x864 as downloaded, with promo/final/03-gameplay-1936.png as the style reference; prompts in promo/start-screen/prompt-b.txt and -c.txt | owner-verify |
-| unity/Assets/UI/StartScreen/declaration-hall.jpg | ASSETS.yaml | Dreamina (dreamina.capcut.com), model GPT Image 2.5, 2026-10-12, with promo/final/03-gameplay-1936.png as the style reference; the start screen's painting. Option C of promo/start-screen (prompt in promo/start-screen/prompt-c.txt), resized from 1536x864 to 1920x1080 (Lanczos) and saved as JPEG; the Dreamina AI badge is kept | owner-verify |
+| unity/Assets/UI/StartScreen/declaration-hall.jpg | ASSETS.yaml | ElevenLabs Image API (Pro plan, decision D5), model GPT Image 2.5 Sunburst (gpt-image-2.5-sunburst), 2K, quality high, 2026-10-12 (#268); the start screen's painting, native 2048x1152, saved as JPEG (quality 90), no upscale. Take 1: prompt promo/start-screen/prompt-d.txt, with the previous painting (this file as merged in #255: Dreamina option C, resized to 1920x1080) as the composition reference and promo/final/03-gameplay-1936.png as the style reference. Take 2 (used): prompt promo/start-screen/prompt-d-edit.txt, an edit of take 1 that changes only the row of figures at the table. The previous painting (Dreamina, #255) showed sunbeams through the windows | owner-verify |
| unity/Assets/WebGLTemplates/Statecraft/favicon.ico | ASSETS.yaml | Original geometric drawing for the WebGL page's tab icon (issue #47): a gold hexagon with a cream serif I on navy, in the loading page's colours; 16, 32 and 48 px; made 2026-10-11 for PR #169 | verified |
diff --git a/docs/oss/DECISIONS.md b/docs/oss/DECISIONS.md
index 31cb1d675..8cd9814b1 100644
--- a/docs/oss/DECISIONS.md
+++ b/docs/oss/DECISIONS.md
@@ -17,7 +17,7 @@ are already public. If a check fails, the file is removed from the tip with the
- [x] D5 The ElevenLabs Terms of Service for the account's plan on 2026-10-08/09, and the image models' output terms, allow public redistribution of the AI promo images and the hero. Owner verifies. Decided (owner-delegated check, 2026-10-10): allowed. The images came through ElevenLabs on its paid Pro plan (account tier `pro`; about 383k credits were already in use on 2026-10-08, beyond any free allowance), and its Terms of Service give the user all rights in Output (s. 4(c)(ii)); the free-plan non-commercial limit (s. 1(c)(i)) does not apply. OpenAI's Terms of Use assign Output to the user; Google's Gemini API terms do not claim ownership of generated content.
- [x] D6 The data.gov.il terms allow redistribution of the IMS station normals (`content/map/precip_stations.json`). Owner verifies. Decided (owner-delegated check, 2026-10-10): allowed. The data.gov.il licence (https://data.gov.il/he/terms-of-use, updated 30/08/2025) grants a worldwide, royalty-free, perpetual licence to copy, distribute, publish and make derivatives, commercially or not, on condition of crediting the source; NOTICE and the file header credit IMS, dataset 481 and the URL.
- [x] D7 Security and conduct contact. Decided (2026-10-11): GitHub private reporting for both security and conduct (conduct reports start the title with "Conduct:"); the profile has no public email. The owner may later add a dedicated contact, and then updates SECURITY.md, CODE_OF_CONDUCT.md and the issue-form config together.
-- [ ] D-D The Dreamina terms allow the start screen painting (`unity/Assets/UI/StartScreen/declaration-hall.jpg`, in every build) and its option images (`promo/start-screen/*.png`) to be shipped and marked CC0 (`ASSETS.yaml`, issue #247, PR #255). Check on 2026-10-12 (factual, not legal advice), of the public pages only, with no login. Source: Dreamina Terms of Service, "Last updated: January 22, 2026", https://dreamina.capcut.com/clause/dreamina-terms-of-service (the site footer's link, https://www.capcut.com/clause/dreamina-terms-of-service?region=US&lang=en, serves the same text; US users fall under separate Dreamina US terms, which do not apply to the owner). (1) Ownership: s. 8 gives the user the Inputs and Outputs "as between you and us" if the user complies with the terms, and it gives ByteDance and other users a perpetual, royalty-free licence to use them. No plan tier is mentioned, and the CapCut Trust Center (https://www.capcut.com/trust/legal) says "All user-generated content you create on our platform belongs to you." (2) Commercial use: **restricted.** S. 1 reads "Our Services are generally provided for private, non-commercial use." S. 7 bars using the Services "or any content therein for any commercial or unauthorized purposes". S. 2 allows commercial use only "if permitted" under additional terms, and no such terms are public. The pricing page (https://dreamina.capcut.com/ai-tool/pricing) renders by script, so no plan's rights could be read, and the Standard plan's rights are unverified. `ASSETS.yaml` records that no free credits were left for an upscale, so which plan made the image is itself unconfirmed. Since the user owns the Output, marking it CC0 is a licence of the user's own rights, and the terms do not forbid redistribution of Outputs. (3) Watermark or attribution: the terms ask for none for Outputs; s. 6 forbids removing proprietary notices or marks the Services display, and the kept "AI" badge is consistent with that. (4) Real places and events: no specific rule; the general bans apply (publicity and privacy rights, defamation, false information meant to harm others). The painting shows no identifiable person. **Recommendation:** fine for the free, non-commercial game and the CC0 marking. Any paid release (Steam, or a paid itch page) needs written commercial-use rights for the plan used, or a replacement image from a generator whose terms allow commercial use (as in D5). Owner approval relayed by the coordinator on 2026-10-12 in the session ("I approve"). It is recorded here, but the line stays open until the owner confirms the scope; the owner can tick it by replying: "D-D decided: Dreamina output is approved for free, non-commercial distribution and CC0 marking; before any paid release I will confirm commercial rights for the plan used or replace the image."
+- [ ] D-D The Dreamina terms allow the start screen painting (`unity/Assets/UI/StartScreen/declaration-hall.jpg`, in every build) and its option images (`promo/start-screen/*.png`) to be shipped and marked CC0 (`ASSETS.yaml`, issue #247, PR #255). Check on 2026-10-12 (factual, not legal advice), of the public pages only, with no login. Source: Dreamina Terms of Service, "Last updated: January 22, 2026", https://dreamina.capcut.com/clause/dreamina-terms-of-service (the site footer's link, https://www.capcut.com/clause/dreamina-terms-of-service?region=US&lang=en, serves the same text; US users fall under separate Dreamina US terms, which do not apply to the owner). (1) Ownership: s. 8 gives the user the Inputs and Outputs "as between you and us" if the user complies with the terms, and it gives ByteDance and other users a perpetual, royalty-free licence to use them. No plan tier is mentioned, and the CapCut Trust Center (https://www.capcut.com/trust/legal) says "All user-generated content you create on our platform belongs to you." (2) Commercial use: **restricted.** S. 1 reads "Our Services are generally provided for private, non-commercial use." S. 7 bars using the Services "or any content therein for any commercial or unauthorized purposes". S. 2 allows commercial use only "if permitted" under additional terms, and no such terms are public. The pricing page (https://dreamina.capcut.com/ai-tool/pricing) renders by script, so no plan's rights could be read, and the Standard plan's rights are unverified. `ASSETS.yaml` records that no free credits were left for an upscale, so which plan made the image is itself unconfirmed. Since the user owns the Output, marking it CC0 is a licence of the user's own rights, and the terms do not forbid redistribution of Outputs. (3) Watermark or attribution: the terms ask for none for Outputs; s. 6 forbids removing proprietary notices or marks the Services display, and the kept "AI" badge is consistent with that. (4) Real places and events: no specific rule; the general bans apply (publicity and privacy rights, defamation, false information meant to harm others). The painting shows no identifiable person. **Recommendation:** fine for the free, non-commercial game and the CC0 marking. Any paid release (Steam, or a paid itch page) needs written commercial-use rights for the plan used, or a replacement image from a generator whose terms allow commercial use (as in D5). Owner approval relayed by the coordinator on 2026-10-12 in the session ("I approve"). It is recorded here, but the line stays open until the owner confirms the scope; the owner can tick it by replying: "D-D decided: Dreamina output is approved for free, non-commercial distribution and CC0 marking; before any paid release I will confirm commercial rights for the plan used or replace the image." Update 2026-10-12 (#268): the start screen painting was regenerated with blacked-out windows on the ElevenLabs Image API (Pro plan, covered by D5), at native 2048x1152. Its composition reference was the Dreamina painting it replaces, so it is recorded under this same open sign-off until the owner decides; the option images stay Dreamina outputs.
- [ ] D8 Name clearance for "Statecraft: Israel" (USPTO, EUIPO, Steam). Owner checks. Search on 2026-10-10 (factual, not legal advice): USPTO word mark STATECRAFT is live in class 9 (97497997, registered, Endstate Authentic LLC: downloadable multimedia incl. for the video game industry), pending in classes 9/41 (99035932, Metis Endeavor Advisory: podcasts), and registered in classes 35/45 (87598607, Statecraft PLLC); Steam already lists two political strategy games, "Statecraft" (2025, app 3944850) and "Statecraft: Corrupted Democracy" (2026, app 2838620). EUIPO/TMview not yet searched. Verdict: caution; needs the owner's call (keep, or get advice before any commercial release). Decided:
- [x] D9 Unity edit-mode tests stay out of CI. Recommended: yes, local gate with pasted evidence. Decided (owner, 2026-10-10): yes, as recommended.
- [x] D10 I know that my personal email (commit d42bd6b, `promo/fetch_portraits.py`) and the internal plans, specs and research notes in history are public and cannot be removed (owner ruling: no history rewriting); key rotation is the only remedy for a secret. Decided (owner, 2026-10-10): acknowledged.
diff --git a/promo/start-screen/prompt-d-edit.txt b/promo/start-screen/prompt-d-edit.txt
new file mode 100644
index 000000000..85ccd2030
--- /dev/null
+++ b/promo/start-screen/prompt-d-edit.txt
@@ -0,0 +1 @@
+Edit the uploaded image and keep everything else exactly as it is: the same camera, composition, painterly tilt-shift diorama style, colours, lamplight, blacked-out windows, flags, frame, plants, audience and carpet. Change only the row of tiny seated figures behind the long white table: make them a soft, out-of-focus, evenly spaced row of identical small dark-haired silhouettes in dark suits, all the same size and the same height, none white-haired, grey-haired or bald, none in the exact centre (a small gap at the centre of the table), none standing, nothing in front of them on the table except a plain white cloth, no lectern, no microphone, no face readable. 16:9, no text, no letters, no numbers, no logos, no badge, no recognizable people, no visible faces.
diff --git a/promo/start-screen/prompt-d.txt b/promo/start-screen/prompt-d.txt
new file mode 100644
index 000000000..b31babfe5
--- /dev/null
+++ b/promo/start-screen/prompt-d.txt
@@ -0,0 +1 @@
+Image 1 is the composition to keep; image 2 is the art style only. Repaint image 1 in the style of image 2: a miniature diorama with tilt-shift depth of field, painterly, highly detailed scale-model look, warm ochre and cream palette. Do not copy image 2's map, buildings or interface. Scene: the hall of the Tel Aviv Museum at 4 pm on 14 May 1948, seen from above and behind the last rows, looking straight down the central carpeted aisle to the front of a modest 1940s hall, symmetric. Keep image 1's camera, layout and framing: the seated audience in dark 1940s suits and hats fills the lower half, seen only from behind as dark, soft, anonymous shapes; far away at the front, a long white-clothed table on a low wooden stage with a row of tiny seated figures, too small and soft-focus for any face to be seen, all alike, none centred or standing out, no white hair; on the front wall, two tall vertical blue-and-white flags with the Star of David, and between them a plain dark wooden frame holding only an abstract soft blur of warm brown tones, no person, no face, no figure in it. Change the light: the tall side windows are covered with dark blackout cloth for fear of an air raid, no daylight, no sunlight, no sunbeams, no light shafts; the hall is lit only by warm glowing pendant lamps hanging from the ceiling and small wall lamps, pools of warm lamplight on cream walls, gentle shadows, a faint haze in the lamplight. The table and flags sit in the centre of the upper half of the frame. Calm, solemn, historic mood. 16:9, no text, no letters, no numbers, no logos, no badge, no interface, no recognizable people, no visible faces.
diff --git a/unity/Assets/Scripts/UI/StartScreenPresenter.cs b/unity/Assets/Scripts/UI/StartScreenPresenter.cs
index 9ec4b5026..a98143bfe 100644
--- a/unity/Assets/Scripts/UI/StartScreenPresenter.cs
+++ b/unity/Assets/Scripts/UI/StartScreenPresenter.cs
@@ -16,15 +16,15 @@ namespace Statecraft.Game.UI
/// with a save it goes through NewGamePresenter's two presses, the same flow as the top bar's New Game, so one stray
/// press never wipes the save (#175, B6). Continue and Escape withdraw an open request.
/// While it shows, the root has OpenClass (Statecraft.uss hides the HUD under it, so Tab reaches only these buttons)
- /// and <c>shownChanged</c> is told, so GameRoot can stop the camera keys. The painting's AI badge (its top-left corner)
- /// shows at every window shape (Fit).</summary>
+ /// and <c>shownChanged</c> is told, so GameRoot can stop the camera keys. The panel's source line says the painting is
+ /// AI-generated.</summary>
public sealed class StartScreenPresenter : IDisposable
{
/// <summary>On the "root" element while the start screen shows.</summary>
public const string OpenClass = "start-open";
/// <summary>On the start screen when the painting is a full-width band with the panel under it (Fit).</summary>
public const string BandClass = "start-band";
- /// <summary>The painting's width over its height (Assets/UI/StartScreen/declaration-hall.jpg, 1920x1080).</summary>
+ /// <summary>The painting's width over its height (Assets/UI/StartScreen/declaration-hall.jpg, 2048x1152).</summary>
public const float ArtAspect = 16f / 9f;
/// <summary>The URL flag (WebGL) or command-line flag (desktop, "-nostart") that skips the screen by hand.</summary>
public const string NoStartFlag = "nostart";
@@ -141,7 +141,7 @@ namespace Statecraft.Game.UI
/// bottom) with the panel at the foot over the audience. In a narrower window that is tall enough for the painting's
/// full-width 16:9 band and the panel under it (a phone held upright, a square window), the band and the panel are
/// stacked and centred together (BandClass), so nothing of the painting is cropped. Otherwise (16:10, 4:3) it fills
- /// the window anchored at its top-left corner, so only its right-hand side is cropped and the AI badge stays.</summary>
+ /// the window anchored at its top centre, so both sides are cropped alike and the aisle stays in the middle.</summary>
void Fit()
{
var size = screen.layout.size;
diff --git a/unity/Assets/Tests/EditMode/StartScreenTests.cs b/unity/Assets/Tests/EditMode/StartScreenTests.cs
index 7e6f00ce3..68670683c 100644
--- a/unity/Assets/Tests/EditMode/StartScreenTests.cs
+++ b/unity/Assets/Tests/EditMode/StartScreenTests.cs
@@ -327,11 +327,26 @@ public class StartScreenTests
// --- Layout ------------------------------------------------------------------------------------------------------
+ /// <summary>The painting is a native render of at least 1920x1080 at 16:9 (StartScreenPresenter.ArtAspect), imported at
+ /// its own size, so a 1080p window never shows an upscale (#268).</summary>
+ [Test]
+ public void ThePaintingIsNativeAtLeast1080p()
+ {
+ const string path = "Assets/UI/StartScreen/declaration-hall.jpg";
+ var importer = (TextureImporter)AssetImporter.GetAtPath(path);
+ importer.GetSourceTextureWidthAndHeight(out var w, out var h);
+ Assert.GreaterOrEqual(w, 1920, "source width");
+ Assert.GreaterOrEqual(h, 1080, "source height");
+ Assert.AreEqual(StartScreenPresenter.ArtAspect, (float)w / h, 0.002f, "16:9");
+ var tex = AssetDatabase.LoadAssetAtPath<Texture2D>(path);
+ Assert.AreEqual((w, h), (tex.width, tex.height), "imported at its own size (maxTextureSize does not shrink it)");
+ }
+
/// <summary>At each window size the owner named (a 1080p and a 768p screen, a small 16:10 window, a phone held upright):
/// the screen covers the window; the painting keeps its 16:9 (a full-width band below 16:9, so nothing is cropped) and
- /// starts at the window's top (the AI badge in its top-left corner shows); the panel, its lines and both buttons are
- /// inside the window and the panel; no line overlaps another or is squeezed below its font size; the panel leaves the
- /// painting's upper half (the flags and the table) clear.</summary>
+ /// starts at the window's top, anchored at its top centre so a crop takes both sides alike; the panel, its lines and
+ /// both buttons are inside the window and the panel; no line overlaps another or is squeezed below its font size; the
+ /// panel leaves the painting's upper half (the flags and the table) clear.</summary>
[UnityTest]
public IEnumerator ItFitsEveryWindowSize()
{
@@ -381,7 +396,9 @@ public class StartScreenTests
{
Assert.AreEqual(window.yMin, art.yMin, 0.5f, $"{at}: the painting starts at the top");
Assert.AreEqual(window.height, art.height, 0.5f, $"{at}: the painting fills the window");
- // Cover, anchored top-left: the painting's upper half (the flags and the table) stays clear of the panel.
+ Assert.AreEqual(BackgroundPositionKeyword.Center, root.Q("start-art").resolvedStyle.backgroundPositionX.keyword, $"{at}: a crop takes both sides alike (the aisle stays in the middle)");
+ Assert.AreEqual(BackgroundPositionKeyword.Top, root.Q("start-art").resolvedStyle.backgroundPositionY.keyword, $"{at}: a crop keeps the top (the flags and the table)");
+ // Cover, anchored at the top: the painting's upper half (the flags and the table) stays clear of the panel.
var painted = Mathf.Max(window.height, window.width / StartScreenPresenter.ArtAspect);
Assert.GreaterOrEqual(panel.yMin, window.yMin + painted * 0.5f - 0.5f, $"{at}: the panel {panel} covers the painting's upper half");
}
diff --git a/unity/Assets/UI/StartScreen/declaration-hall.jpg b/unity/Assets/UI/StartScreen/declaration-hall.jpg
index addf0d34b..5a6b17223 100644
Binary files a/unity/Assets/UI/StartScreen/declaration-hall.jpg and b/unity/Assets/UI/StartScreen/declaration-hall.jpg differ
diff --git a/unity/Assets/UI/Statecraft.uss b/unity/Assets/UI/Statecraft.uss
index 47cc00407..80075897a 100644
--- a/unity/Assets/UI/Statecraft.uss
+++ b/unity/Assets/UI/Statecraft.uss
@@ -440,16 +440,16 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);
/* The start screen (StartScreenPresenter): the painting of the 14 May 1948 hall, two lines of the Declaration (official
Hebrew, official English under each), Continue and New Game. Hidden until GameRoot shows it; while it shows (.start-open
on the root) the HUD under it is hidden, so it takes no focus and no clicks, and the painting is opaque over the map.
- The painting fills the window (cover, anchored at the top-left, so the Dreamina AI badge in that corner stays in view)
- and the panel sits at the foot over the audience; a tall window (.start-band) stacks the whole painting, as a
- full-width band, over the panel (StartScreenPresenter.Fit). */
+ The painting fills the window (cover, anchored at the top centre, so a narrower window crops both sides alike and the
+ aisle stays in the middle) and the panel sits at the foot over the audience; a tall window (.start-band) stacks the
+ whole painting, as a full-width band, over the panel (StartScreenPresenter.Fit). */
.start-screen { display: none; position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-color: var(--navy-deep); }
.start-open .start-screen { display: flex; }
.start-open .top-bar, .start-open .right-column, .start-open .info-panel, .start-open .screen, .start-open .map-labels { display: none; }
.start-art {
position: absolute; left: 0; top: 0; right: 0; bottom: 0;
background-image: url("project://database/Assets/UI/StartScreen/declaration-hall.jpg");
- background-size: cover; background-position-x: left; background-position-y: top; background-repeat: no-repeat;
+ background-size: cover; background-position-x: center; background-position-y: top; background-repeat: no-repeat;
}
.start-band .start-art { bottom: auto; }
.start-body { position: absolute; left: 0; top: 0; right: 0; bottom: 0; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 16px 28px 16px; }
@@ -478,5 +478,5 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);
-unity-font-definition: url("project://database/Assets/UI/Fonts/EBGaramond-SemiBold.ttf");
font-size: 24px; min-width: 220px; margin: 4px 10px; padding: 8px 24px; -unity-text-align: middle-center;
}
-/* New Game's prompt (the toast) shows at the top of the start screen, clear of the AI badge and the panel. */
+/* New Game's prompt (the toast) shows at the top of the start screen, clear of the panel. */
.start-open .toast { top: 24px; left: 25%; right: 25%; width: auto; }