REM-Client e7791764: HUD on the cockpit's displays, status and 3D scanner as holograms, one button strip, Starflier cockpit v09

This commit is contained in:
flathack committed 2026-11-15 21:47:59 +01:00
1 parent 0bcd696a90
commit 61d7f0029d
8 files changed
+179 -10

No files matched your search

+90 -5
View File
@@ -203,9 +203,69 @@
.edbar .eh { margin: 6dp 0 12dp 0; font-size: 14dp; color: #b9cbe0; }
.edbar .eb { display: flex; flex-direction: row; justify-content: center; }
.edbar .btn { margin: 0 4dp; }
/* REM: the cockpit's layout (body.cockpit while the parts draw on the cockpit's displays, rem_ui_hud.cpp
UpdateDisplays; the places' sizes there match the ones here). The display's bezel is the frame, so the
panels are flat lit screens that fill their display.
- ship status: a hologram over the console's emitter, no screen behind it -- the ship in its shield and
hull rings larger in the middle, shield / hull / power as bars on its left, speed and thrust on its
right, the cruise engine's arc around the ring (.core.ck, .cruisearc.ck: 640 x 256 dp, ring at 320, 156)
- maneuvers: a strip of large keys under the hologram, the cruise button its first key
- contacts / weapons: one low head line, tighter rows (367 x 296 dp instead of 367 x 376) */
.cockpit .mans, .cockpit .fp.cruise, .cockpit .lhead, .cockpit .lbody, .cockpit .rhead, .cockpit .rbody { decorator: none; background-color: #04090fd9; }
.cockpit .runner { display: none; }
.cockpit .mans { margin-left: -290dp; width: 660dp; height: 100dp; padding: 0 10dp 0 0; }
.cockpit .mans .ib { height: 92dp; padding-top: 8dp; }
.cockpit .mans .ib:first-child { border-left-width: 1dp; }
.cockpit .mans .ico { width: 52dp; height: 52dp; }
.cockpit .mans .lb { margin-top: 3dp; font-size: 15dp; }
.cockpit .mans .jump-control .state { font-size: 13dp; }
.cockpit .fp.cruise { margin-left: -370dp; top: 8dp; width: 80dp; height: 100dp; }
.cockpit .cruise .ib { padding: 8dp 4dp; }
.cockpit .cruise .ico { width: 52dp; height: 52dp; margin: 0; }
.cockpit .jump-info { top: -16dp; font-size: 15dp; }
.cockpit .fp.special { bottom: 272dp; }
.fp.core.ck { margin-left: -320dp; width: 640dp; height: 256dp; }
.core.ck .disc { left: 232dp; top: 68dp; width: 174dp; height: 174dp; border: 1dp #5cc8f066; border-radius: 88dp; decorator: radial-gradient(circle, #5cc8f000 55%, #5cc8f01c 100%); }
.core.ck .ship { left: 274dp; top: 108dp; width: 92dp; height: 86dp; }
.core.ck .pc { left: 252dp; top: 198dp; font-size: 13dp; }
.core.ck .col { position: absolute; width: 204dp; }
.core.ck .col.l { left: 10dp; top: 111dp; }
.core.ck .col.r { left: 426dp; top: 86dp; }
.crow { display: flex; flex-direction: row; align-items: center; height: 30dp; }
.crow .l { width: 62dp; font-weight: 600; font-size: 12dp; letter-spacing: 1.5dp; color: #b9d4ea; }
.crow .bar, .crow .chips, .crow .sg { height: 12dp; }
.crow .v { width: 50dp; text-align: right; font-weight: 600; font-size: 16dp; color: #e8f4ff; }
.crow .v.low { color: #ef6a5b; }
.core.ck .spd { height: 44dp; text-align: right; }
.core.ck .spd .big { font-size: 34dp; }
.core.ck .spd .u { font-size: 14dp; color: #8fb3d0; margin-left: 5dp; }
.speed .sg { background-color: #5cc8f026; }
.speed .sg.lit { background-color: #5cc8f0; }
.thr .sg { background-color: #dbe6f026; }
.thr .sg.lit { background-color: #dbe6f0; }
.fp.cruisearc.ck { margin-left: -320dp; width: 640dp; height: 256dp; }
.cruisearc.ck .head { left: 170dp; top: -10dp; }
.cockpit .lhead, .cockpit .rhead { width: 367dp; height: 34dp; bottom: 270dp; padding: 0 8dp 0 12dp; border-bottom: 2dp #2b6f9e; }
.cockpit .lhead .ico { width: 24dp; height: 24dp; }
.cockpit .rhead .ico { width: 22dp; height: 22dp; }
.cockpit .rhead .cnt { font-size: 16dp; }
.cockpit .lbody, .cockpit .rbody { height: 262dp; padding: 6dp 12dp; }
.cockpit .filters { margin-bottom: 3dp; padding-bottom: 3dp; }
.cockpit .filters .ico { width: 26dp; height: 26dp; }
.cockpit .rows { height: 208dp; }
.cockpit .c { height: 26dp; }
.cockpit .c .n, .cockpit .c .r, .cockpit .w { font-weight: 600; }
.cockpit .sbar { top: 44dp; bottom: 6dp; }
.cockpit .w { height: 24dp; }
.cockpit .tname { font-size: 20dp; }
.cockpit .tsub { margin-bottom: 6dp; }
.cockpit .tbtns { margin-top: 6dp; }
.cockpit .tbtns .ico { width: 34dp; height: 34dp; }
</style>
</head>
<body class="hud" data-model="hud" data-class-editing="editing" data-style-opacity="opacity">
<body class="hud" data-model="hud" data-class-editing="editing" data-class-cockpit="cockpit" data-style-opacity="opacity">
<div class="system-pick" data-for="s : system_picks" data-style-left="s.left" data-style-top="s.top" data-action="system_pick" data-attr-data-arg="s.id"><span class="corner tl"></span><span class="corner tr"></span><span class="corner bl"></span><span class="corner br"></span><span class="name">{{ s.name }}</span></div>
<!-- maneuvers -->
<div class="grp g0" data-grp="0" data-style-transform="grp[0].tf" data-class-gone="!grp[0].shown && !editing" data-class-faded="!grp[0].shown && editing">
@@ -224,7 +284,7 @@
<div class="grp g1" data-grp="1" data-style-transform="grp[1].tf" data-class-gone="!grp[1].shown && !editing" data-class-faded="!grp[1].shown && editing">
<div class="tag" data-if="editing &amp;&amp; core_ring" style="left: 50%; margin-left: -310dp; bottom: 184dp;"><span class="eye" data-action="eye" data-arg="1">{{ grp[1].shown ? 'Hide' : 'Show' }}</span>Ship status</div>
<div class="tag" data-if="editing &amp;&amp; !core_ring" style="left: 50%; margin-left: -240dp; bottom: 82dp;"><span class="eye" data-action="eye" data-arg="1">{{ grp[1].shown ? 'Hide' : 'Show' }}</span>Ship status</div>
<div data-if="(core || editing) &amp;&amp; core_ring">
<div data-if="(core || editing) &amp;&amp; core_ring &amp;&amp; !cockpit">
<div class="fp all core">
<div class="disc"></div>
<shipwire class="ship"/>
@@ -243,7 +303,7 @@
</div>
</div>
</div>
<div data-if="(core || editing) &amp;&amp; !core_ring">
<div data-if="(core || editing) &amp;&amp; !core_ring &amp;&amp; !cockpit">
<div class="fp all coreb">
<div class="val thrust" data-class-low="thrust_low"><span class="cap">THRUST</span>{{ thrust }}</div>
<div class="sep"></div>
@@ -257,23 +317,48 @@
</div>
</div>
<!-- REM: the cockpit's ship status (body.cockpit): a hologram, see the style block -->
<div data-if="core &amp;&amp; cockpit">
<div class="fp core ck">
<div class="disc"></div>
<shipwire class="ship"/>
<segarc cx="320" cy="156" r="80" w="14" h="9" n="32" a0="5.6" da="11.25" data-attr-lit="shield_n * 2" on="#4fc6ee" off="#4fc6ee26"/>
<segarc cx="320" cy="156" r="65" w="10.5" h="4" n="32" a0="5.6" da="11.25" data-attr-lit="hull_n * 2" on="#e0484e" off="#e0484e33"/>
<div class="pc"><span class="s">{{ shield_t }}%</span><span class="h">{{ hull_t }}%</span></div>
<div class="col l">
<div class="crow shield"><span class="l">SHIELD</span><div class="bar"><div class="chips"><div class="sg" data-class-lit="shield_n &gt; 0"></div><div class="sg" data-class-lit="shield_n &gt; 1"></div><div class="sg" data-class-lit="shield_n &gt; 2"></div><div class="sg" data-class-lit="shield_n &gt; 3"></div><div class="sg" data-class-lit="shield_n &gt; 4"></div><div class="sg" data-class-lit="shield_n &gt; 5"></div><div class="sg" data-class-lit="shield_n &gt; 6"></div><div class="sg" data-class-lit="shield_n &gt; 7"></div><div class="sg" data-class-lit="shield_n &gt; 8"></div><div class="sg" data-class-lit="shield_n &gt; 9"></div><div class="sg" data-class-lit="shield_n &gt; 10"></div><div class="sg" data-class-lit="shield_n &gt; 11"></div><div class="sg" data-class-lit="shield_n &gt; 12"></div><div class="sg" data-class-lit="shield_n &gt; 13"></div><div class="sg" data-class-lit="shield_n &gt; 14"></div><div class="sg" data-class-lit="shield_n &gt; 15"></div></div></div><span class="v">{{ shield_t }}%</span></div>
<div class="crow hull"><span class="l">HULL</span><div class="bar"><div class="chips"><div class="sg" data-class-lit="hull_n &gt; 0"></div><div class="sg" data-class-lit="hull_n &gt; 1"></div><div class="sg" data-class-lit="hull_n &gt; 2"></div><div class="sg" data-class-lit="hull_n &gt; 3"></div><div class="sg" data-class-lit="hull_n &gt; 4"></div><div class="sg" data-class-lit="hull_n &gt; 5"></div><div class="sg" data-class-lit="hull_n &gt; 6"></div><div class="sg" data-class-lit="hull_n &gt; 7"></div><div class="sg" data-class-lit="hull_n &gt; 8"></div><div class="sg" data-class-lit="hull_n &gt; 9"></div><div class="sg" data-class-lit="hull_n &gt; 10"></div><div class="sg" data-class-lit="hull_n &gt; 11"></div><div class="sg" data-class-lit="hull_n &gt; 12"></div><div class="sg" data-class-lit="hull_n &gt; 13"></div><div class="sg" data-class-lit="hull_n &gt; 14"></div><div class="sg" data-class-lit="hull_n &gt; 15"></div></div></div><span class="v">{{ hull_t }}%</span></div>
<div class="crow power"><span class="l">POWER</span><div class="bar"><div class="chips"><div class="sg" data-class-lit="power_n &gt; 0"></div><div class="sg" data-class-lit="power_n &gt; 1"></div><div class="sg" data-class-lit="power_n &gt; 2"></div><div class="sg" data-class-lit="power_n &gt; 3"></div><div class="sg" data-class-lit="power_n &gt; 4"></div><div class="sg" data-class-lit="power_n &gt; 5"></div><div class="sg" data-class-lit="power_n &gt; 6"></div><div class="sg" data-class-lit="power_n &gt; 7"></div><div class="sg" data-class-lit="power_n &gt; 8"></div><div class="sg" data-class-lit="power_n &gt; 9"></div><div class="sg" data-class-lit="power_n &gt; 10"></div><div class="sg" data-class-lit="power_n &gt; 11"></div><div class="sg" data-class-lit="power_n &gt; 12"></div><div class="sg" data-class-lit="power_n &gt; 13"></div><div class="sg" data-class-lit="power_n &gt; 14"></div><div class="sg" data-class-lit="power_n &gt; 15"></div></div></div><span class="v">{{ power_t }}%</span></div>
</div>
<div class="col r">
<div class="spd"><span class="big">{{ speed }}</span><span class="u">{{ speed_u }}</span></div>
<div class="crow speed"><span class="l">SPEED</span><div class="bar"><div class="chips"><div class="sg" data-class-lit="speed_n &gt; 0"></div><div class="sg" data-class-lit="speed_n &gt; 1"></div><div class="sg" data-class-lit="speed_n &gt; 2"></div><div class="sg" data-class-lit="speed_n &gt; 3"></div><div class="sg" data-class-lit="speed_n &gt; 4"></div><div class="sg" data-class-lit="speed_n &gt; 5"></div><div class="sg" data-class-lit="speed_n &gt; 6"></div><div class="sg" data-class-lit="speed_n &gt; 7"></div><div class="sg" data-class-lit="speed_n &gt; 8"></div><div class="sg" data-class-lit="speed_n &gt; 9"></div><div class="sg" data-class-lit="speed_n &gt; 10"></div><div class="sg" data-class-lit="speed_n &gt; 11"></div><div class="sg" data-class-lit="speed_n &gt; 12"></div><div class="sg" data-class-lit="speed_n &gt; 13"></div><div class="sg" data-class-lit="speed_n &gt; 14"></div><div class="sg" data-class-lit="speed_n &gt; 15"></div></div></div><span class="v"></span></div>
<div class="crow thr"><span class="l">THRUST</span><div class="bar"><div class="chips"><div class="sg" data-class-lit="thrust_n &gt; 0"></div><div class="sg" data-class-lit="thrust_n &gt; 1"></div><div class="sg" data-class-lit="thrust_n &gt; 2"></div><div class="sg" data-class-lit="thrust_n &gt; 3"></div><div class="sg" data-class-lit="thrust_n &gt; 4"></div><div class="sg" data-class-lit="thrust_n &gt; 5"></div><div class="sg" data-class-lit="thrust_n &gt; 6"></div><div class="sg" data-class-lit="thrust_n &gt; 7"></div><div class="sg" data-class-lit="thrust_n &gt; 8"></div><div class="sg" data-class-lit="thrust_n &gt; 9"></div><div class="sg" data-class-lit="thrust_n &gt; 10"></div><div class="sg" data-class-lit="thrust_n &gt; 11"></div><div class="sg" data-class-lit="thrust_n &gt; 12"></div><div class="sg" data-class-lit="thrust_n &gt; 13"></div><div class="sg" data-class-lit="thrust_n &gt; 14"></div><div class="sg" data-class-lit="thrust_n &gt; 15"></div></div></div><span class="v" data-class-low="thrust_low">{{ thrust }}</span></div>
</div>
</div>
</div>
</div>
<!-- the cruise engine's countdown / charge (HUD_CruiseProgress): around the ship status' ring (or above its bars),
with the ship status' move and size, also while that is hidden -->
<div class="grp g1" data-style-transform="grp[1].tf">
<div class="fp cruisearc" data-if="cruise_bar &amp;&amp; core_ring" data-class-count="cruise_count" data-class-done="cruise_done">
<div class="fp cruisearc" data-if="cruise_bar &amp;&amp; core_ring &amp;&amp; !cockpit" data-class-count="cruise_count" data-class-done="cruise_done">
<segarc cx="310" cy="92" r="84" w="9" h="7" n="16" a0="-55" da="7.3333" data-attr-lit="cruise_n" on="#f2b13c" off="#f2b13c30"/>
<segarc cx="310" cy="92" r="94" w="9" h="2" n="16" a0="-55" da="7.3333" data-attr-lit="cruise_n" on="#ffd27a99" off="#5cc8f026"/>
<segarc cx="310" cy="92" r="84" w="10" h="9" n="1" data-attr-a0="cruise_tip_a" da="0" data-attr-lit="cruise_n &gt; 0 ? 1 : 0" on="#fff1c8" off="#00000000"/>
<div class="glow" data-if="cruise_n &gt; 0" data-style-left="cruise_tip_l" data-style-top="cruise_tip_t"></div>
<div class="head"><span class="cv">{{ cruise_val }}</span><span class="cc">{{ cruise_cap }}</span></div>
</div>
<div class="fp cruiseband" data-if="cruise_bar &amp;&amp; !core_ring" data-class-count="cruise_count" data-class-done="cruise_done">
<div class="fp cruiseband" data-if="cruise_bar &amp;&amp; !core_ring &amp;&amp; !cockpit" data-class-count="cruise_count" data-class-done="cruise_done">
<span class="cc">&#187; {{ cruise_cap }} &#171;</span>
<div class="row"><div class="ch" data-class-lit="cruise_n &gt; 0"></div><div class="ch" data-class-lit="cruise_n &gt; 1"></div><div class="ch" data-class-lit="cruise_n &gt; 2"></div><div class="ch" data-class-lit="cruise_n &gt; 3"></div><div class="ch" data-class-lit="cruise_n &gt; 4"></div><div class="ch" data-class-lit="cruise_n &gt; 5"></div><div class="ch" data-class-lit="cruise_n &gt; 6"></div><div class="ch" data-class-lit="cruise_n &gt; 7"></div><div class="ch" data-class-lit="cruise_n &gt; 8"></div><div class="ch" data-class-lit="cruise_n &gt; 9"></div><div class="ch" data-class-lit="cruise_n &gt; 10"></div><div class="ch" data-class-lit="cruise_n &gt; 11"></div><div class="ch" data-class-lit="cruise_n &gt; 12"></div><div class="ch" data-class-lit="cruise_n &gt; 13"></div><div class="ch" data-class-lit="cruise_n &gt; 14"></div><div class="ch" data-class-lit="cruise_n &gt; 15"></div><div class="run"></div></div>
<span class="cv">{{ cruise_val }}</span>
</div>
<div class="fp cruisearc ck" data-if="cruise_bar &amp;&amp; cockpit" data-class-count="cruise_count" data-class-done="cruise_done">
<segarc cx="320" cy="156" r="104" w="11" h="8" n="16" a0="-55" da="7.3333" data-attr-lit="cruise_n" on="#f2b13c" off="#f2b13c30"/>
<segarc cx="320" cy="156" r="115" w="11" h="2" n="16" a0="-55" da="7.3333" data-attr-lit="cruise_n" on="#ffd27a99" off="#5cc8f026"/>
<div class="head"><span class="cv">{{ cruise_val }}</span><span class="cc">{{ cruise_cap }}</span></div>
</div>
<!-- the special view / flight mode (turret view, rear view, mouse flight ...: HUD_Status' SpecialModeText) as the original
shows it: centred above the ship status, not in the weapons list (Darki 2026-11-05) -->
<div class="fp special" data-if="special != ''">{{ special }}</div>
+7 -2
View File
@@ -21,13 +21,18 @@
.nb.alert { background-color: #ff4a3d22; }
@keyframes nb-alert { from { opacity: 1; } to { opacity: 0.25; } }
.nb .tip { top: 46dp; right: 0; left: auto; bottom: auto; width: 230dp; white-space: normal; text-align: right; }
/* REM: the cockpit's button strip (body.cockpit while the bar draws on the cockpit's panel "buttons",
rem_ui_nnbar.cpp PlaceOnStrip): the display is the frame, the icons stand side by side with the other
bar's, the tool tips open upwards */
.cockpit .nnbar { decorator: none; padding: 0; }
.cockpit .nb .tip { top: auto; bottom: 50dp; }
.edit-grip { display: none; position: absolute; left: 0; top: 0; padding: 2dp 8dp; background-color: #f2b13c; color: #05080d; font-family: "Saira SemiCondensed"; font-weight: 600; font-size: 13dp; border-radius: 3dp; white-space: nowrap; drag: drag; cursor: move; pointer-events: auto; z-index: 10; }
.hud-editing .edit-grip { display: block; }
</style>
</head>
<body class="nnstrip movable" data-model="nnbar">
<body class="nnstrip movable" data-class-cockpit="cockpit" data-model="nnbar">
<div class="win-head edit-grip">NeuroNet bar &#10021;</div>
<div class="nnbar" data-if="shown" data-style-width="icons.size * 42 + 32 + 'dp'">
<div class="nnbar" data-if="shown" data-style-width="icons.size * 42 + (cockpit ? 0 : 32) + 'dp'">
<div class="nb" data-for="i : icons" data-class-active="i.active" data-class-alert="i.alert" data-action="nn" data-attr-data-arg="i.cmd">
<img data-attr-src="i.icon"/>
<div class="tip" data-if="i.label != ''">{{ i.label }}</div>
+12 -1
View File
@@ -31,11 +31,22 @@
radar { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.lbl { position: absolute; font-size: 12dp; white-space: nowrap; pointer-events: none; }
.fwd { position: absolute; left: 50%; margin-left: -4dp; top: 4dp; font-family: "IBM Plex Mono"; font-size: 10dp; color: #f2b13c; pointer-events: none; }
/* REM: the cockpit's radar (body.cockpit while it draws on the cockpit's panel "radar", rem_ui_radar.cpp):
a hologram over the ship status -- no frame, no ground, the box as wide as the dish; the title at its
left corner, projection and ranges at the right one */
body.radar.cockpit { width: 440dp; height: 170dp; }
.cockpit .frame { decorator: none; display: block; pointer-events: none; }
.cockpit .head { position: absolute; left: 0; right: 0; top: 0; height: 22dp; padding: 0; border-bottom-width: 0; z-index: 2; }
.cockpit .head .rng { pointer-events: auto; background-color: #04090f99; }
.cockpit .head .rng.on { background-color: #f2b13c33; }
.cockpit #scope { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.cockpit radar { pointer-events: auto; }
.cockpit .lbl { font-weight: 600; font-effect: shadow(0dp 1dp #000000cc); }
.edit-grip { display: none; position: absolute; left: 0; top: 0; padding: 2dp 8dp; background-color: #f2b13c; color: #05080d; font-family: "Saira SemiCondensed"; font-weight: 600; font-size: 13dp; border-radius: 3dp; white-space: nowrap; drag: drag; cursor: move; pointer-events: auto; z-index: 10; }
.hud-editing .edit-grip { display: block; }
</style>
</head>
<body class="radar movable" data-model="radar">
<body class="radar movable" data-model="radar" data-class-cockpit="cockpit">
<div class="win-head edit-grip">Radar &#10021;</div>
<div class="frame">
<div class="head">
+7 -2
View File
@@ -17,13 +17,18 @@
.nb img { transform: perspective(240dp) rotateY(0deg) scale(1); transition: transform 0.2s cubic-out; }
.nb.active img { image-color: #f2b13c; }
.nb .tip { top: 46dp; left: 0; right: auto; bottom: auto; width: 230dp; white-space: normal; }
/* REM: the cockpit's button strip (body.cockpit while the bar draws on the cockpit's panel "buttons",
rem_ui_nnbar.cpp PlaceOnStrip): the display is the frame, the icons stand side by side with the other
bar's, the tool tips open upwards */
.cockpit .nnbar { decorator: none; padding: 0; }
.cockpit .nb .tip { top: auto; bottom: 50dp; }
.edit-grip { display: none; position: absolute; left: 0; top: 0; padding: 2dp 8dp; background-color: #f2b13c; color: #05080d; font-family: "Saira SemiCondensed"; font-weight: 600; font-size: 13dp; border-radius: 3dp; white-space: nowrap; drag: drag; cursor: move; pointer-events: auto; z-index: 10; }
.hud-editing .edit-grip { display: block; }
</style>
</head>
<body class="nnstrip movable" data-model="rembar">
<body class="nnstrip movable" data-class-cockpit="cockpit" data-model="rembar">
<div class="win-head edit-grip">REM bar &#10021;</div>
<div class="nnbar" data-if="shown" data-style-width="icons.size * 42 + 32 + 'dp'">
<div class="nnbar" data-if="shown" data-style-width="icons.size * 42 + (cockpit ? 0 : 32) + 'dp'">
<div class="nb" data-for="i : icons" data-class-active="i.active" data-action="nn" data-attr-data-arg="i.cmd">
<img data-attr-src="i.icon"/>
<div class="tip" data-if="i.label != ''">{{ i.label }}</div>