Rebuild the map chrome against the Star Citizen starmap
Until now this was built from memory — the reference site is blocked by this environment's egress policy, so the resemblance was asserted rather than checked. Five screenshots of the real thing arrived, and this is what comparing against them changed. Labels say what a thing is, not just what it is called. Every label is now two lines: the name, then its type in smaller, wider-tracked, dimmer capitals. This is the single most characteristic element of the reference and it appears in every frame of it. It also settles a real ambiguity — in a map that mixes scales, "Orion" is an arm, a nebula and a constellation, and nothing about a bare name said which one a label pointed at. For stars the type line distinguishes "System" from "Star", which is the one thing it can say that the map could not otherwise show: which points are somewhere you can actually go. The system view had no body labels at all, where the reference labels every planet. It does now, which turned out to need two supporting changes. The overlay had only ever added and removed labels, never moved them, because stars do not move; planets do, so an existing label is now repositioned rather than left where the body used to be. And the inner four planets printed on top of each other in exactly the clump the star labels were already spread to avoid — so that logic is now shared rather than duplicated, with system bodies ordered outermost-first. Closing in reverses it by itself: the outer orbits leave the frame, their labels drop, and the inner planets take the space. The chrome follows the reference's layout. The scale ladder is a row of chamfered tabs at the top left rather than a vertical list of diamonds at the middle left, and a nameplate across the top centre says what the view is holding. The centre reticle is a hexagon, which is how the reference locks onto a body, and stays distinct from the rectangular panel chrome. Not copied: the ARK/RSI logos, wordmarks, and the bottom-right tool tabs. The first two are someone else's brand, and the third would be four tabs opening features this app does not have. Two e2e assertions moved off bare text matches onto the readout panel's own title. The nameplate names the same thing the panel does, so "is 'Local Stars' on screen" became ambiguous — the assertion, not the design, was what had to give. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WaySiNst4HhDXBHnMy8p5G
This commit is contained in:
@@ -76,6 +76,19 @@ body {
|
||||
background: radial-gradient(ellipse at center, transparent 45%, color-mix(in srgb, var(--color-void) 72%, transparent) 100%);
|
||||
}
|
||||
|
||||
/* A chamfered tab: the angled-corner shape the scale ladder and the selection banner share.
|
||||
* The cut is on the leading and trailing edges rather than the panel's diagonal corners, which
|
||||
* is what makes a row of them read as tabs on a rail instead of a row of cards. */
|
||||
.hud-tab {
|
||||
clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
|
||||
}
|
||||
|
||||
/* The selected-object banner: symmetric, flaring outward toward its lit bottom edge, so it
|
||||
* reads as a nameplate hanging off the top of the display rather than another tab. */
|
||||
.hud-banner {
|
||||
clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
|
||||
}
|
||||
|
||||
/* Star name labels rendered by CSS2DRenderer (see StarLabelOverlay). These live outside
|
||||
* Angular's view encapsulation as plain DOM nodes, so they're styled with Tailwind utility
|
||||
* classes assigned directly in TypeScript rather than a scoped component stylesheet. */
|
||||
@@ -84,3 +97,26 @@ body {
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
/* Two-line map label: what the thing is called, then what it is. The type line is deliberately
|
||||
* much quieter than the name — it should be readable when looked at and invisible when not,
|
||||
* because on a crowded view it is printed as many times as there are labels. */
|
||||
.map-label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 1.15;
|
||||
text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
|
||||
}
|
||||
|
||||
.map-label-name {
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.map-label-kind {
|
||||
font-size: 8px;
|
||||
letter-spacing: 0.3em;
|
||||
text-transform: uppercase;
|
||||
color: color-mix(in srgb, var(--color-accent) 55%, transparent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user