UI grid stage 3c: damage-control selection page in three columns, clickable submarine ESM rows (1.3.182)
The damage-control "Selection & teams" page now shows compartment cards on the left (state stripe, water and fire lamps, teams on scene), the selected compartment in the middle and the three repair teams on the right (destination, on the way with seconds left, on scene or standing by). A click selects a compartment or a team; Enter still sends it. On the submarine's Mast & ESM page a click on an emitter row selects it. Manual (EN/DE), PDFs, station shortcuts, README, changelog and screenshots updated. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AYDCcBWFmT4ipVCfJeKESR
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
## Authority and scope
|
||||
|
||||
- This is U-Jagd 1.3.180 (`src/core/version.py`); saves are written as v50 and older saves from v38 on are lifted to v50 on load (`src/core/save_migrate.py`). Treat these as compatibility contracts, not changelog entries.
|
||||
- This is U-Jagd 1.3.182 (`src/core/version.py`); saves are written as v50 and older saves from v38 on are lifted to v50 on load (`src/core/save_migrate.py`). Treat these as compatibility contracts, not changelog entries.
|
||||
- Resolve conflicts in this order: executable code and focused tests; packaged JSON/runtime resources; `pyproject.toml` and provenance/license notices; `README.md`; design/history documents under `docs/`. A plan or old comment is not an implementation contract.
|
||||
- Preserve explicit compatibility tests and user data unless a task intentionally changes the contract. Add a regression test for behavior changes.
|
||||
- Older phase/milestone labels under `docs/GDD.md`, `docs/implementation-plan.md`, `docs/plan-0.1.6.md`, and `docs/plan-0.1.7.md` are historical. Current resumable work is tracked in `docs/plan-1.3.md` and `docs/resume.md`.
|
||||
|
||||
@@ -4,6 +4,18 @@
|
||||
|
||||
Alle Versionen von U-Jagd, die neueste zuerst. Die [README](README.de.md) zeigt nur die neueste.
|
||||
|
||||
## 1.3.182
|
||||
|
||||
Version 1.3.182 bringt die drei Spalten zur Seite Auswahl & Teams der
|
||||
Schadensabwehr. Links stehen die Abteilungen als Karten mit Zustandsstreifen,
|
||||
Lampen für Wasser und Brand und den Trupps vor Ort, in der Mitte die Details
|
||||
der gewählten Abteilung und rechts die drei Leckwehrtrupps mit ihrem Ziel und
|
||||
ob sie unterwegs sind, vor Ort arbeiten oder bereitstehen. Ein Klick wählt eine
|
||||
Abteilung oder einen Trupp; Enter schickt den Trupp wie bisher los. Auf der
|
||||
Seite Mast & ESM des U-Boots wählt ein Klick auf eine Zeile der Senderliste
|
||||
diesen Sender. Tasten bleiben gleich. Spielstände sind v50; v38 bis v49 laden
|
||||
weiter.
|
||||
|
||||
## 1.3.180
|
||||
|
||||
Version 1.3.180 bringt die drei Spalten zu ELOKA, Funkraum und der
|
||||
|
||||
@@ -4,6 +4,17 @@
|
||||
|
||||
Every U-Jagd release, newest first. The [README](README.md) shows only the latest one.
|
||||
|
||||
## 1.3.182
|
||||
|
||||
Release 1.3.182 brings the three-column layout to the damage-control
|
||||
selection page. Compartments sit as cards on the left with their state stripe,
|
||||
water and fire lamps and the teams on scene, the selected compartment's details
|
||||
in the middle and the three repair teams on the right with their destination
|
||||
and whether they are on the way, on scene or standing by. A click selects a
|
||||
compartment or a team; Enter still sends the team. On the submarine's Mast &
|
||||
ESM page a click on a row of the emitter list selects that emitter. Keys are
|
||||
unchanged. Saves are v50; v38 to v49 saves still load.
|
||||
|
||||
## 1.3.180
|
||||
|
||||
Release 1.3.180 brings the three-column layout to Electronic warfare, the
|
||||
|
||||
@@ -14,16 +14,17 @@ Sie führen eine fiktive Fregatte und wechseln zwischen neun Arbeitsplätzen, um
|
||||
zu navigieren, zu suchen, Kontakte zu klassifizieren, Ziele zu bekämpfen und das
|
||||
Schiff einsatzfähig zu halten.
|
||||
|
||||
Aktuelle Version: **1.3.180**
|
||||
Aktuelle Version: **1.3.182**
|
||||
|
||||
Version 1.3.180 bringt die drei Spalten zu ELOKA, Funkraum und der
|
||||
Waffenseite der Fregatte. ELOKA zeigt die Auffassungen links als Karten (ein
|
||||
Klick wählt), in der Mitte die Bedrohungsrose und rechts die gewählte
|
||||
Auffassung mit Signal und den Lampen für ESM und Störer. Der Funkraum hat links
|
||||
die HF-Peilsignale als Karten, in der Mitte die Kreuzpeilkarte und rechts die
|
||||
Peilrose mit dem Peilprotokoll. Die Waffenseite der Fregatte zeigt ihre
|
||||
Sonarkontakte als Karten über den Einsatzstufen (ein Klick wählt, M weist zu).
|
||||
Tasten bleiben gleich. Spielstände sind v50; v38 bis v49 laden weiter.
|
||||
Version 1.3.182 bringt die drei Spalten zur Seite Auswahl & Teams der
|
||||
Schadensabwehr. Links stehen die Abteilungen als Karten mit Zustandsstreifen,
|
||||
Lampen für Wasser und Brand und den Trupps vor Ort, in der Mitte die Details
|
||||
der gewählten Abteilung und rechts die drei Leckwehrtrupps mit ihrem Ziel und
|
||||
ob sie unterwegs sind, vor Ort arbeiten oder bereitstehen. Ein Klick wählt eine
|
||||
Abteilung oder einen Trupp; Enter schickt den Trupp wie bisher los. Auf der
|
||||
Seite Mast & ESM des U-Boots wählt ein Klick auf eine Zeile der Senderliste
|
||||
diesen Sender. Tasten bleiben gleich. Spielstände sind v50; v38 bis v49 laden
|
||||
weiter.
|
||||
|
||||
Frühere Versionen: [CHANGELOG.de.md](CHANGELOG.de.md).
|
||||
|
||||
|
||||
@@ -12,16 +12,16 @@ around the ClockworkPi uConsole's 1280 x 720 workspace. You command a fictional
|
||||
frigate and move between nine workstations to navigate, search, classify,
|
||||
engage, and keep the ship operational.
|
||||
|
||||
Current release: **1.3.180**
|
||||
Current release: **1.3.182**
|
||||
|
||||
Release 1.3.180 brings the three-column layout to Electronic warfare, the
|
||||
radio room and the frigate's Weapons page. EW shows its intercepts as cards on
|
||||
the left (a click selects one), the threat rose in the middle and the selected
|
||||
intercept with its signal and the ESM/jammer lamps on the right. The radio
|
||||
room has HF/DF signal cards on the left, the cross-fix chart in the middle and
|
||||
the DF rose with the bearing log on the right. The frigate's Weapons page lists
|
||||
its sonar contacts as cards above the engagement stages (a click selects one,
|
||||
M assigns it). Keys are unchanged. Saves are v50; v38 to v49 saves still load.
|
||||
Release 1.3.182 brings the three-column layout to the damage-control
|
||||
selection page. Compartments sit as cards on the left with their state stripe,
|
||||
water and fire lamps and the teams on scene, the selected compartment's details
|
||||
in the middle and the three repair teams on the right with their destination
|
||||
and whether they are on the way, on scene or standing by. A click selects a
|
||||
compartment or a team; Enter still sends the team. On the submarine's Mast &
|
||||
ESM page a click on a row of the emitter list selects that emitter. Keys are
|
||||
unchanged. Saves are v50; v38 to v49 saves still load.
|
||||
|
||||
Earlier releases: [CHANGELOG.md](CHANGELOG.md).
|
||||
|
||||
|
||||
@@ -7488,5 +7488,10 @@
|
||||
"commander.web.theme_switch": "Dunkel/Hell",
|
||||
"opz.card.kind": "{affiliation} {domain}",
|
||||
"opz.no_tracks": "Keine Tracks",
|
||||
"uboot.card.range_quality": "{range} NM · Güte {quality}%"
|
||||
"uboot.card.range_quality": "{range} NM · Güte {quality}%",
|
||||
"damage.panel.compartments": "ABTEILUNGEN",
|
||||
"damage.panel.teams": "LECKWEHRTRUPPS",
|
||||
"damage.card.team_ready": "In Bereitschaft",
|
||||
"damage.card.team_en_route": "Unterwegs · {eta} s",
|
||||
"damage.teams.hint": "Trupp anklicken, links eine Abteilung wählen, Enter schickt ihn los."
|
||||
}
|
||||
@@ -7488,5 +7488,10 @@
|
||||
"commander.web.theme_switch": "Dark/light",
|
||||
"opz.card.kind": "{affiliation} {domain}",
|
||||
"opz.no_tracks": "No tracks",
|
||||
"uboot.card.range_quality": "{range} NM · Q {quality}%"
|
||||
"uboot.card.range_quality": "{range} NM · Q {quality}%",
|
||||
"damage.panel.compartments": "COMPARTMENTS",
|
||||
"damage.panel.teams": "REPAIR TEAMS",
|
||||
"damage.card.team_ready": "Standing by",
|
||||
"damage.card.team_en_route": "On the way · {eta} s",
|
||||
"damage.teams.hint": "Click a team, pick a compartment on the left, then Enter sends it."
|
||||
}
|
||||
@@ -6,7 +6,7 @@ Die Schadensabwehr hält das Schiff nach einem Treffer schwimmfähig und die Sta
|
||||
|
||||
## Anzeigen und Instrumente {#damage-displays}
|
||||
|
||||
Seite 1 ist die Leckwehrtafel: ein Seitenriss des Schiffs, Bug rechts, mit Decks, Aufbauten und Masten, jede Abteilung nummeriert auf ihrer wirklichen Länge und Höhe, daneben ein Querschnitt, der mit dem Schiff krängt und die Rumpfräume an Backbord und Steuerbord zeigt. Außen steht die See bis zur Wasserlinie mit Tiefgangsmarken an Bug und Heck; in jeder Abteilung steht das Leckwasser auf seiner Höhe und neigt sich mit dem Trimm, ein Brand glüht und flackert mit Rauch unter der Decke, und eine zerstörte Abteilung ist schraffiert. Ein aufgerissenes Loch zeigt, wo der Rumpf offen ist, und Wasser strömt hinein, solange die Abteilung vollläuft; hat ein Trupp ein Leckpflaster gesetzt, liegt dort eine Platte, und ein lenzender Trupp pumpt Wasser über Bord. Tiefgang und Trimm stehen unter dem Seitenriss, die Krängung unter dem Querschnitt. Unter den Bildern trägt die Karte jeder Abteilung eine Zustands-LED, Flutung und Brand mit ihren LEDs sowie nummerierte Plaketten für die Trupps vor Ort; eine Legende erklärt die LEDs. Seite 2 zeigt Details je Abteilung (Flutung, Brand, Tendenz, Trupps vor Ort, Krängung); Seite 3 ist der Wachplan der Besatzung. Im Browser beginnt die Karte Schaden mit einer Warn- und Meldetafel (Brände, Wassereinbruch, ausgefallen, verschlechtert, Gesamtschaden, Krängung, Trimm, Gegenfluten, Trupps aktiv, Schiff gesunken) über demselben Seitenriss mit Querschnitt und Rundinstrumenten für Krängung, Trimm und Gesamtschaden; ein Klick auf eine Abteilung schickt den gewählten Trupp dorthin.
|
||||
Seite 1 ist die Leckwehrtafel: ein Seitenriss des Schiffs, Bug rechts, mit Decks, Aufbauten und Masten, jede Abteilung nummeriert auf ihrer wirklichen Länge und Höhe, daneben ein Querschnitt, der mit dem Schiff krängt und die Rumpfräume an Backbord und Steuerbord zeigt. Außen steht die See bis zur Wasserlinie mit Tiefgangsmarken an Bug und Heck; in jeder Abteilung steht das Leckwasser auf seiner Höhe und neigt sich mit dem Trimm, ein Brand glüht und flackert mit Rauch unter der Decke, und eine zerstörte Abteilung ist schraffiert. Ein aufgerissenes Loch zeigt, wo der Rumpf offen ist, und Wasser strömt hinein, solange die Abteilung vollläuft; hat ein Trupp ein Leckpflaster gesetzt, liegt dort eine Platte, und ein lenzender Trupp pumpt Wasser über Bord. Tiefgang und Trimm stehen unter dem Seitenriss, die Krängung unter dem Querschnitt. Unter den Bildern trägt die Karte jeder Abteilung eine Zustands-LED, Flutung und Brand mit ihren LEDs sowie nummerierte Plaketten für die Trupps vor Ort; eine Legende erklärt die LEDs. Seite 2 hat drei Spalten: links eine Karte je Abteilung mit Zustandsstreifen, den LEDs für Wasser und Brand und den Trupps vor Ort, in der Mitte die Details der gewählten Abteilung (Flutung, Brand, Tendenz, Trupps vor Ort, Krängung), rechts die drei Leckwehrtrupps mit ihrem Ziel und ob sie unterwegs sind (mit den restlichen Sekunden), vor Ort arbeiten oder bereitstehen. Ein Klick auf eine Abteilungskarte wählt sie, ein Klick auf eine Truppkarte wählt den Trupp, und Enter schickt ihn los; ein Klick allein schickt keinen Trupp; Seite 3 ist der Wachplan der Besatzung. Im Browser beginnt die Karte Schaden mit einer Warn- und Meldetafel (Brände, Wassereinbruch, ausgefallen, verschlechtert, Gesamtschaden, Krängung, Trimm, Gegenfluten, Trupps aktiv, Schiff gesunken) über demselben Seitenriss mit Querschnitt und Rundinstrumenten für Krängung, Trimm und Gesamtschaden; ein Klick auf eine Abteilung schickt den gewählten Trupp dorthin.
|
||||
|
||||
```text
|
||||
Bug Heck
|
||||
|
||||
@@ -6,7 +6,7 @@ Damage control keeps the ship afloat and the stations working after a hit. Three
|
||||
|
||||
## Displays and instruments {#damage-displays}
|
||||
|
||||
Page 1 is the damage-control board: a side profile of the ship, bow to the right, with its decks, superstructure and masts, every compartment numbered at its real length and height, and beside it a cross-section that lists with the ship and holds the port and starboard hull voids. The sea stands outside up to the waterline with draft marks at bow and stern; floodwater stands at its level in each compartment and tilts with the trim, a fire glows and flickers with smoke under the deckhead, and a destroyed compartment is hatched. A torn hole shows where the hull is open and water rushes in as long as it floods; once a team has fitted a patch it shows as a plate, and a team pumping sends water over the side. Draft and trim are written under the profile, the list under the cross-section. Under the pictures each compartment's card carries a state LED, the flood and fire values with their LEDs and numbered badges for the teams on scene; a legend explains the LEDs. Page 2 lists details per compartment (flooding, fire, trend, teams on scene, heel); page 3 is the crew's watch bill. In the browser the Damage card opens with an annunciator panel (fires, flooding, lost, getting worse, total damage, list, trim, counter-flooding, teams busy, ship sunk) above the same side profile and cross-section, and gauges for list, trim and total damage; a click on a compartment sends the selected team there.
|
||||
Page 1 is the damage-control board: a side profile of the ship, bow to the right, with its decks, superstructure and masts, every compartment numbered at its real length and height, and beside it a cross-section that lists with the ship and holds the port and starboard hull voids. The sea stands outside up to the waterline with draft marks at bow and stern; floodwater stands at its level in each compartment and tilts with the trim, a fire glows and flickers with smoke under the deckhead, and a destroyed compartment is hatched. A torn hole shows where the hull is open and water rushes in as long as it floods; once a team has fitted a patch it shows as a plate, and a team pumping sends water over the side. Draft and trim are written under the profile, the list under the cross-section. Under the pictures each compartment's card carries a state LED, the flood and fire values with their LEDs and numbered badges for the teams on scene; a legend explains the LEDs. Page 2 has three columns: on the left a card per compartment with its state stripe, the water and fire LEDs and the teams on scene, in the middle the details of the selected compartment (flooding, fire, trend, teams on scene, heel), on the right the three repair teams with their destination and whether they are on the way (with the seconds left), on scene or standing by. A click on a compartment card selects it, a click on a team card picks the team, and Enter sends it; neither click sends a team by itself; page 3 is the crew's watch bill. In the browser the Damage card opens with an annunciator panel (fires, flooding, lost, getting worse, total damage, list, trim, counter-flooding, teams busy, ship sunk) above the same side profile and cross-section, and gauges for list, trim and total damage; a click on a compartment sends the selected team there.
|
||||
|
||||
```text
|
||||
bow stern
|
||||
|
||||
@@ -30,7 +30,7 @@ Der Maschinenraum fährt Telegraph, Schnorchel und Laderate, Schleichfahrt, die
|
||||
|
||||
## Mast & ESM {#sub-esm}
|
||||
|
||||
Mast & ESM fährt den Mast an Sehrohrtiefe aus, hört auf der ESM-Rose nach Radaren, klassifiziert die Sender, plottet Kreuzpeilungen und schaut durchs Sehrohr.
|
||||
Mast & ESM fährt den Mast an Sehrohrtiefe aus, hört auf der ESM-Rose nach Radaren, klassifiziert die Sender, plottet Kreuzpeilungen und schaut durchs Sehrohr. Ein Klick auf eine Zeile der Senderliste wählt diesen Sender, wie ↑/↓.
|
||||
|
||||
<!-- sop:uboot_esm -->
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ The engine room runs the telegraph, snorkel and charge rate, silent running, the
|
||||
|
||||
## Mast & ESM {#sub-esm}
|
||||
|
||||
Mast & ESM raises the mast at periscope depth, listens for radars on the ESM rose, classifies the emitters, plots cross-fixes and looks through the periscope.
|
||||
Mast & ESM raises the mast at periscope depth, listens for radars on the ESM rose, classifies the emitters, plots cross-fixes and looks through the periscope. A click on a row of the emitter list selects that emitter, like ↑/↓.
|
||||
|
||||
<!-- sop:uboot_esm -->
|
||||
|
||||
|
||||
@@ -564,7 +564,7 @@ Die Schadensabwehr hält das Schiff nach einem Treffer schwimmfähig und die Sta
|
||||
|
||||
### Anzeigen und Instrumente
|
||||
|
||||
Seite 1 ist die Leckwehrtafel: ein Seitenriss des Schiffs, Bug rechts, mit Decks, Aufbauten und Masten, jede Abteilung nummeriert auf ihrer wirklichen Länge und Höhe, daneben ein Querschnitt, der mit dem Schiff krängt und die Rumpfräume an Backbord und Steuerbord zeigt. Außen steht die See bis zur Wasserlinie mit Tiefgangsmarken an Bug und Heck; in jeder Abteilung steht das Leckwasser auf seiner Höhe und neigt sich mit dem Trimm, ein Brand glüht und flackert mit Rauch unter der Decke, und eine zerstörte Abteilung ist schraffiert. Ein aufgerissenes Loch zeigt, wo der Rumpf offen ist, und Wasser strömt hinein, solange die Abteilung vollläuft; hat ein Trupp ein Leckpflaster gesetzt, liegt dort eine Platte, und ein lenzender Trupp pumpt Wasser über Bord. Tiefgang und Trimm stehen unter dem Seitenriss, die Krängung unter dem Querschnitt. Unter den Bildern trägt die Karte jeder Abteilung eine Zustands-LED, Flutung und Brand mit ihren LEDs sowie nummerierte Plaketten für die Trupps vor Ort; eine Legende erklärt die LEDs. Seite 2 zeigt Details je Abteilung (Flutung, Brand, Tendenz, Trupps vor Ort, Krängung); Seite 3 ist der Wachplan der Besatzung. Im Browser beginnt die Karte Schaden mit einer Warn- und Meldetafel (Brände, Wassereinbruch, ausgefallen, verschlechtert, Gesamtschaden, Krängung, Trimm, Gegenfluten, Trupps aktiv, Schiff gesunken) über demselben Seitenriss mit Querschnitt und Rundinstrumenten für Krängung, Trimm und Gesamtschaden; ein Klick auf eine Abteilung schickt den gewählten Trupp dorthin.
|
||||
Seite 1 ist die Leckwehrtafel: ein Seitenriss des Schiffs, Bug rechts, mit Decks, Aufbauten und Masten, jede Abteilung nummeriert auf ihrer wirklichen Länge und Höhe, daneben ein Querschnitt, der mit dem Schiff krängt und die Rumpfräume an Backbord und Steuerbord zeigt. Außen steht die See bis zur Wasserlinie mit Tiefgangsmarken an Bug und Heck; in jeder Abteilung steht das Leckwasser auf seiner Höhe und neigt sich mit dem Trimm, ein Brand glüht und flackert mit Rauch unter der Decke, und eine zerstörte Abteilung ist schraffiert. Ein aufgerissenes Loch zeigt, wo der Rumpf offen ist, und Wasser strömt hinein, solange die Abteilung vollläuft; hat ein Trupp ein Leckpflaster gesetzt, liegt dort eine Platte, und ein lenzender Trupp pumpt Wasser über Bord. Tiefgang und Trimm stehen unter dem Seitenriss, die Krängung unter dem Querschnitt. Unter den Bildern trägt die Karte jeder Abteilung eine Zustands-LED, Flutung und Brand mit ihren LEDs sowie nummerierte Plaketten für die Trupps vor Ort; eine Legende erklärt die LEDs. Seite 2 hat drei Spalten: links eine Karte je Abteilung mit Zustandsstreifen, den LEDs für Wasser und Brand und den Trupps vor Ort, in der Mitte die Details der gewählten Abteilung (Flutung, Brand, Tendenz, Trupps vor Ort, Krängung), rechts die drei Leckwehrtrupps mit ihrem Ziel und ob sie unterwegs sind (mit den restlichen Sekunden), vor Ort arbeiten oder bereitstehen. Ein Klick auf eine Abteilungskarte wählt sie, ein Klick auf eine Truppkarte wählt den Trupp, und Enter schickt ihn los; ein Klick allein schickt keinen Trupp; Seite 3 ist der Wachplan der Besatzung. Im Browser beginnt die Karte Schaden mit einer Warn- und Meldetafel (Brände, Wassereinbruch, ausgefallen, verschlechtert, Gesamtschaden, Krängung, Trimm, Gegenfluten, Trupps aktiv, Schiff gesunken) über demselben Seitenriss mit Querschnitt und Rundinstrumenten für Krängung, Trimm und Gesamtschaden; ein Klick auf eine Abteilung schickt den gewählten Trupp dorthin.
|
||||
|
||||
```text
|
||||
Bug Heck
|
||||
@@ -1179,7 +1179,7 @@ Der Maschinenraum fährt Telegraph, Schnorchel und Laderate, Schleichfahrt, die
|
||||
|
||||
### Mast & ESM
|
||||
|
||||
Mast & ESM fährt den Mast an Sehrohrtiefe aus, hört auf der ESM-Rose nach Radaren, klassifiziert die Sender, plottet Kreuzpeilungen und schaut durchs Sehrohr.
|
||||
Mast & ESM fährt den Mast an Sehrohrtiefe aus, hört auf der ESM-Rose nach Radaren, klassifiziert die Sender, plottet Kreuzpeilungen und schaut durchs Sehrohr. Ein Klick auf eine Zeile der Senderliste wählt diesen Sender, wie ↑/↓.
|
||||
|
||||
1. Den Mast (P) nur an Sehrohrtiefe und nur kurz ausfahren.
|
||||
2. Die ESM-Rose beobachten: ein Hauptkeulentreffer heißt, das Radar sieht den Mast vielleicht schon.
|
||||
|
||||
@@ -563,7 +563,7 @@ Damage control keeps the ship afloat and the stations working after a hit. Three
|
||||
|
||||
### Displays and instruments
|
||||
|
||||
Page 1 is the damage-control board: a side profile of the ship, bow to the right, with its decks, superstructure and masts, every compartment numbered at its real length and height, and beside it a cross-section that lists with the ship and holds the port and starboard hull voids. The sea stands outside up to the waterline with draft marks at bow and stern; floodwater stands at its level in each compartment and tilts with the trim, a fire glows and flickers with smoke under the deckhead, and a destroyed compartment is hatched. A torn hole shows where the hull is open and water rushes in as long as it floods; once a team has fitted a patch it shows as a plate, and a team pumping sends water over the side. Draft and trim are written under the profile, the list under the cross-section. Under the pictures each compartment's card carries a state LED, the flood and fire values with their LEDs and numbered badges for the teams on scene; a legend explains the LEDs. Page 2 lists details per compartment (flooding, fire, trend, teams on scene, heel); page 3 is the crew's watch bill. In the browser the Damage card opens with an annunciator panel (fires, flooding, lost, getting worse, total damage, list, trim, counter-flooding, teams busy, ship sunk) above the same side profile and cross-section, and gauges for list, trim and total damage; a click on a compartment sends the selected team there.
|
||||
Page 1 is the damage-control board: a side profile of the ship, bow to the right, with its decks, superstructure and masts, every compartment numbered at its real length and height, and beside it a cross-section that lists with the ship and holds the port and starboard hull voids. The sea stands outside up to the waterline with draft marks at bow and stern; floodwater stands at its level in each compartment and tilts with the trim, a fire glows and flickers with smoke under the deckhead, and a destroyed compartment is hatched. A torn hole shows where the hull is open and water rushes in as long as it floods; once a team has fitted a patch it shows as a plate, and a team pumping sends water over the side. Draft and trim are written under the profile, the list under the cross-section. Under the pictures each compartment's card carries a state LED, the flood and fire values with their LEDs and numbered badges for the teams on scene; a legend explains the LEDs. Page 2 has three columns: on the left a card per compartment with its state stripe, the water and fire LEDs and the teams on scene, in the middle the details of the selected compartment (flooding, fire, trend, teams on scene, heel), on the right the three repair teams with their destination and whether they are on the way (with the seconds left), on scene or standing by. A click on a compartment card selects it, a click on a team card picks the team, and Enter sends it; neither click sends a team by itself; page 3 is the crew's watch bill. In the browser the Damage card opens with an annunciator panel (fires, flooding, lost, getting worse, total damage, list, trim, counter-flooding, teams busy, ship sunk) above the same side profile and cross-section, and gauges for list, trim and total damage; a click on a compartment sends the selected team there.
|
||||
|
||||
```text
|
||||
bow stern
|
||||
@@ -1178,7 +1178,7 @@ The engine room runs the telegraph, snorkel and charge rate, silent running, the
|
||||
|
||||
### Mast & ESM
|
||||
|
||||
Mast & ESM raises the mast at periscope depth, listens for radars on the ESM rose, classifies the emitters, plots cross-fixes and looks through the periscope.
|
||||
Mast & ESM raises the mast at periscope depth, listens for radars on the ESM rose, classifies the emitters, plots cross-fixes and looks through the periscope. A click on a row of the emitter list selects that emitter, like ↑/↓.
|
||||
|
||||
1. Raise the mast (P) only at periscope depth and only for a short time.
|
||||
2. Watch the ESM rose: a main-beam hit means the radar may already see the mast.
|
||||
|
||||
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 113 KiB |
|
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 108 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 89 KiB |
@@ -1,4 +1,4 @@
|
||||
# U-Jagd 1.3.180 - Stations- und Tastenkürzel
|
||||
# U-Jagd 1.3.182 - Stations- und Tastenkürzel
|
||||
|
||||
Druckfassung: [`station-shortcuts.de.pdf`](station-shortcuts.de.pdf).
|
||||
Maßgeblich ist die implementierte lokale Bedienung. Stationsnummern und
|
||||
|
||||
@@ -4,7 +4,7 @@ This module is deliberately dependency-free because setuptools imports the
|
||||
version while building the project.
|
||||
"""
|
||||
|
||||
APP_VERSION = "1.3.180"
|
||||
APP_VERSION = "1.3.182"
|
||||
SAVE_VERSION = 50
|
||||
SAVE_SCHEMA = "u-jagd-save-v50"
|
||||
SPLASH_TEXT = (
|
||||
|
||||
@@ -28,6 +28,12 @@ from src.ui.stations.common import (
|
||||
# Lamp cards under the profile, stern to bow, then the hull voids.
|
||||
CARD_ORDER = ("flightdeck", "engine", "radio", "opz", "weapons",
|
||||
"bridge", "sonar", "hull_left", "hull_right")
|
||||
# Selection page of a wide station: compartment cards left, the selected
|
||||
# compartment in the middle, the repair teams right (px).
|
||||
DAMAGE_CARDS_W = 320
|
||||
DAMAGE_TEAMS_W = 300
|
||||
TEAM_CARD_H = 50
|
||||
TEAM_CARD_PITCH = 56
|
||||
|
||||
|
||||
def damage_regions(game=None, station_rect=None, page=0) -> dict:
|
||||
@@ -45,9 +51,17 @@ def damage_regions(game=None, station_rect=None, page=0) -> dict:
|
||||
bottom = station.bottom - 58
|
||||
x0 = station.x + 16
|
||||
full_w = station.w - 32
|
||||
cards = teams = pygame.Rect(0, 0, 0, 0)
|
||||
if page == 0:
|
||||
schematic = pygame.Rect(x0, top, full_w, max(1, bottom - top))
|
||||
detail = pygame.Rect(0, 0, 0, 0)
|
||||
elif station.w >= 1000:
|
||||
gap = 10
|
||||
height = max(1, bottom - top)
|
||||
cards = pygame.Rect(x0, top, DAMAGE_CARDS_W, height)
|
||||
teams = pygame.Rect(x0 + full_w - DAMAGE_TEAMS_W, top, DAMAGE_TEAMS_W, height)
|
||||
detail = pygame.Rect(cards.right + gap, top, teams.x - gap - cards.right - gap, height)
|
||||
schematic = pygame.Rect(0, 0, 0, 0)
|
||||
else:
|
||||
detail_w = 760
|
||||
detail = pygame.Rect(station.centerx - detail_w // 2, top,
|
||||
@@ -85,10 +99,33 @@ def damage_regions(game=None, station_rect=None, page=0) -> dict:
|
||||
compartments[key] = {"polygon": polygon, "callout": callout, "anchor": anchor}
|
||||
compartments = {key: compartments[key] for key, _ in COMPARTMENTS}
|
||||
return {"station": station, "schematic": schematic, "detail": detail,
|
||||
"profile": profile, "section": section, "compartments": compartments,
|
||||
"cards": cards, "teams": teams, "profile": profile, "section": section, "compartments": compartments,
|
||||
"footer": pygame.Rect(station.x + 16, station.bottom - 56, station.w - 32, 48)}
|
||||
|
||||
|
||||
def damage_selection_cards(game, station_rect=None) -> list:
|
||||
"""(compartment key, rect) of every card in the left column of the
|
||||
selection page; empty on a narrow station."""
|
||||
column = damage_regions(game, station_rect or config.FULL_STATION_RECT, page=1)["cards"]
|
||||
if column.w <= 0:
|
||||
return []
|
||||
keys = list(game.damage.compartments)
|
||||
pitch = max(1, (column.h - 42) // len(keys))
|
||||
return [(key, pygame.Rect(column.x + 6, column.y + 36 + index * pitch,
|
||||
column.w - 12, pitch - 4))
|
||||
for index, key in enumerate(keys)]
|
||||
|
||||
|
||||
def damage_team_cards(game, station_rect=None) -> list:
|
||||
"""(team number, rect) of the repair-team cards in the right column."""
|
||||
column = damage_regions(game, station_rect or config.FULL_STATION_RECT, page=1)["teams"]
|
||||
if column.w <= 0:
|
||||
return []
|
||||
return [(team, pygame.Rect(column.x + 6, column.y + 36 + index * TEAM_CARD_PITCH,
|
||||
column.w - 12, TEAM_CARD_H))
|
||||
for index, team in enumerate(sorted(game.damage.teams))]
|
||||
|
||||
|
||||
def damage_compartment_at(game, pos, page=0):
|
||||
"""Return compartment ID for polygon OR callout, otherwise None; no mutation."""
|
||||
if page not in (0, 1):
|
||||
@@ -151,6 +188,9 @@ def draw_damage_view(game, tr=None) -> None:
|
||||
pointer.add_hotspot(card) # damage_compartment_at takes the click
|
||||
_draw_legend(s, pygame.Rect(plan.x, plan.bottom - 30, plan.w, 24))
|
||||
else:
|
||||
if regions["cards"].w > 0:
|
||||
_draw_selection_cards(game, s, regions["cards"], rect)
|
||||
_draw_team_cards(game, s, regions["teams"], rect)
|
||||
detail = layout.box(s, regions["detail"],
|
||||
"panel.selection_actions", border=_state_color(selected.state))
|
||||
dx, dy, dw, _ = detail
|
||||
@@ -216,6 +256,89 @@ def draw_damage_view(game, tr=None) -> None:
|
||||
|
||||
|
||||
|
||||
def _pick_compartment(game, key) -> None:
|
||||
game.dmg_cursor = list(game.damage.compartments).index(key)
|
||||
|
||||
|
||||
def _pick_team(game, team) -> None:
|
||||
game.dmg_team = team
|
||||
|
||||
|
||||
def _card_frame(s, card, chosen, stripe) -> None:
|
||||
pygame.draw.rect(s, config.COLOR_TAB_ACTIVE if chosen else theme.c("raised"),
|
||||
card, border_radius=4)
|
||||
pygame.draw.rect(s, theme.c("focus") if chosen else theme.c("line"),
|
||||
card, 2 if chosen else 1, border_radius=4)
|
||||
pygame.draw.rect(s, stripe, (card.x + 3, card.y + 5, 3, card.h - 10))
|
||||
|
||||
|
||||
def _draw_selection_cards(game, s, column, station_rect) -> None:
|
||||
"""Left column of the selection page: one card per compartment (state
|
||||
stripe, name, water and fire, teams on scene); a click selects it."""
|
||||
layout.box(s, column, "damage.panel.compartments")
|
||||
for index, (key, card) in enumerate(damage_selection_cards(game, station_rect)):
|
||||
c = game.damage.compartments[key]
|
||||
chosen = index == game.dmg_cursor
|
||||
_card_frame(s, card, chosen, _state_color(c.state))
|
||||
two_lines = card.h >= 42
|
||||
name_w = card.w - 18 - (0 if two_lines else 104)
|
||||
layout.blit_line(s, message("damage.schematic.callout", number=f"{index + 1:02}",
|
||||
name=localize("damage.short." + key)),
|
||||
(card.x + 12, card.y + (3 if two_lines else (card.h - 19) // 2),
|
||||
name_w, 19), config.COLOR_TEXT, size=15)
|
||||
teams = game.damage.teams_on(key)
|
||||
if two_lines:
|
||||
_draw_hazards(s, card.x + 12, card.y + 24, c)
|
||||
if teams:
|
||||
console.badges(s, card.right - 42, card.bottom - 23, teams)
|
||||
else:
|
||||
_draw_hazards(s, card.right - 104, card.y + (card.h - 19) // 2, c)
|
||||
pointer.add_action(card, lambda _pos, picked=key: _pick_compartment(game, picked))
|
||||
|
||||
|
||||
def _draw_hazards(s, x, y, c) -> None:
|
||||
"""Water and fire of a compartment as two lamps with their percentages
|
||||
(the lamp colours of the ship plan's legend)."""
|
||||
for index, (level, value) in enumerate(
|
||||
(("caution" if c.flood > 0 else "off", c.flood),
|
||||
("alarm" if c.fire > 0 else "off", c.fire))):
|
||||
base = x + index * 52
|
||||
console.led(s, (base + 5, y + 10), 5, level)
|
||||
color = console.level_color(level) if level != "off" else config.COLOR_TEXT_DIM
|
||||
layout.blit_line(s, raw_text(f"{value:.0f}%"), (base + 13, y, 38, 19), color, size=13)
|
||||
|
||||
|
||||
def _draw_team_cards(game, s, column, station_rect) -> None:
|
||||
"""Right column of the selection page: the three repair teams with their
|
||||
destination and whether they are on the way or working; a click picks the
|
||||
team that Enter sends."""
|
||||
layout.box(s, column, "damage.panel.teams")
|
||||
damage = game.damage
|
||||
cards = damage_team_cards(game, station_rect)
|
||||
for team, card in cards:
|
||||
destination = damage.teams[team]
|
||||
chosen = team == game.dmg_team
|
||||
eta = float(damage.team_eta.get(team, 0.0))
|
||||
if destination is None:
|
||||
state, color = localize("damage.card.team_ready"), config.COLOR_TEXT_DIM
|
||||
elif eta > 0.0:
|
||||
state, color = message("damage.card.team_en_route", eta=f"{eta:.0f}"), config.COLOR_WARN
|
||||
else:
|
||||
state, color = localize("ui.on_scene"), config.COLOR_OK
|
||||
_card_frame(s, card, chosen, color)
|
||||
where = (_compartment_name(destination, damage.compartments[destination].name)
|
||||
if destination is not None else localize("damage.free"))
|
||||
layout.blit_line(s, message("damage.team_destination", team=team, destination=where),
|
||||
(card.x + 12, card.y + 4, card.w - 20, 21), config.COLOR_TEXT, size=16)
|
||||
layout.blit_line(s, state, (card.x + 12, card.y + 27, card.w - 20, 19), color, size=13)
|
||||
pointer.add_action(card, lambda _pos, picked=team: _pick_team(game, picked))
|
||||
if cards:
|
||||
bottom = cards[-1][1].bottom + 12
|
||||
layout.blit_block(s, "damage.teams.hint", column.x + 12, bottom, column.w - 24,
|
||||
max(1, column.bottom - bottom - 8), color=config.COLOR_TEXT_DIM,
|
||||
size=14, min_size=layout.MIN_OPERATIONAL_FONT)
|
||||
|
||||
|
||||
def _state_level(c) -> str:
|
||||
return ("alarm" if c.state in ("ZERSTOERT", "FLUTEND") else
|
||||
"caution" if c.state != "OK" else "on")
|
||||
|
||||
@@ -1396,8 +1396,13 @@ def _draw_esm_page(s, game, boat, x, y, w, h) -> None:
|
||||
live = esm.live(emitter, now)
|
||||
color = (config.COLOR_DANGER if emitter in threats else config.COLOR_WARN if live
|
||||
else config.COLOR_TEXT_DIM)
|
||||
row_rect = pygame.Rect(lx - 2, row_y, lw + 4, 20)
|
||||
if emitter is chosen:
|
||||
pygame.draw.rect(s, config.COLOR_SONAR_RING, (lx - 2, row_y, lw + 4, 20), 1)
|
||||
pygame.draw.rect(s, config.COLOR_TAB_ACTIVE, row_rect, border_radius=3)
|
||||
pygame.draw.rect(s, theme.c("focus"), row_rect, 1, border_radius=3)
|
||||
# A click on the row selects the emitter, like the arrow keys.
|
||||
pointer.add_action(row_rect, lambda _pos, number=boat_esm.emitter_number(
|
||||
track.track_key): setattr(boat, "esm_selected", number))
|
||||
layout.blit_line(s, message(
|
||||
"uboot.esm.row", label=boat_esm.emitter_label(track.track_key),
|
||||
bearing=_fmt(track.bearing % 360.0, "{:03.0f}"),
|
||||
|
||||
@@ -86,7 +86,7 @@ def test_source_and_wheel_contain_editor_templates(tmp_path):
|
||||
(ROOT / "data/contact_analysis" / name).read_bytes()
|
||||
assert any(name.endswith(".dist-info/licenses/THIRD_PARTY_NOTICES.md")
|
||||
for name in wheel_names)
|
||||
assert any(name.endswith("-1.3.180.dist-info/METADATA") for name in wheel_names)
|
||||
assert any(name.endswith("-1.3.182.dist-info/METADATA") for name in wheel_names)
|
||||
|
||||
source = next(tmp_path.glob("u_jagd-*.tar.gz"))
|
||||
with tarfile.open(source) as archive:
|
||||
@@ -139,7 +139,7 @@ def test_source_and_wheel_contain_editor_templates(tmp_path):
|
||||
[sys.executable, "-c",
|
||||
"from importlib import resources; "
|
||||
"assert resources.files('data.editor_templates').joinpath('mission.json').is_file(); "
|
||||
"from src.core.version import APP_VERSION; assert APP_VERSION == '1.3.180'; "
|
||||
"from src.core.version import APP_VERSION; assert APP_VERSION == '1.3.182'; "
|
||||
"from src.commander.server import CommanderServer; "
|
||||
"server=CommanderServer(); server.start('127.0.0.1',0); server.stop(); "
|
||||
"from src.core import manual; page=manual.html_page('de'); assert 'station-sonar' in page; "
|
||||
|
||||
@@ -14,9 +14,9 @@ from src.world.real_coast import sector_for_seed
|
||||
|
||||
|
||||
def test_release_version_and_exact_splash_text():
|
||||
assert APP_VERSION == "1.3.180"
|
||||
assert APP_VERSION == "1.3.182"
|
||||
assert SPLASH_TEXT == (
|
||||
"Anti Sub Marine Warfare on uConsole by Dominik Bornhäußer Version 1.3.180"
|
||||
"Anti Sub Marine Warfare on uConsole by Dominik Bornhäußer Version 1.3.182"
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ from src.core.station import Station
|
||||
from src.sensors.esm import ESMMeasurement
|
||||
from src.sonar.contact import Contact
|
||||
from src.ui import layout, pointer
|
||||
from src.ui.stations import eloka, radio
|
||||
from src.ui.stations import damage, eloka, radio
|
||||
from src.ui import weapons_view
|
||||
|
||||
|
||||
@@ -105,3 +105,49 @@ def test_frigate_weapons_contact_cards_select_like_left_right():
|
||||
for target in pointer.targets():
|
||||
assert target.rect.right <= config.SCREEN_W
|
||||
game.audio.shutdown()
|
||||
|
||||
|
||||
def test_damage_selection_page_has_compartment_and_team_cards():
|
||||
game = _game()
|
||||
game.station, game.station_page = Station.DAMAGE, 1
|
||||
assert not _draw_checked(game)
|
||||
with layout.bottom_panel_regions(game.bottom_panel_mode()):
|
||||
station = pygame.Rect(config.FULL_STATION_RECT)
|
||||
regions = damage.damage_regions(game, station, page=1)
|
||||
assert regions["cards"].right < regions["detail"].x < regions["detail"].right < regions["teams"].x
|
||||
cards = damage.damage_selection_cards(game, station)
|
||||
assert [key for key, _rect in cards] == list(game.damage.compartments)
|
||||
assigned = dict(game.damage.teams)
|
||||
_click(game, cards[5][1].center)
|
||||
assert game.dmg_cursor == 5
|
||||
teams = damage.damage_team_cards(game, station)
|
||||
_click(game, teams[2][1].center)
|
||||
assert game.dmg_team == teams[2][0]
|
||||
# Selecting never sends a team; Enter does.
|
||||
assert game.damage.teams == assigned
|
||||
game.audio.shutdown()
|
||||
|
||||
|
||||
def test_submarine_esm_row_click_selects_the_emitter():
|
||||
from test_boat_esm import _mast_up_near_frigate
|
||||
from test_uboot_scope import _local_boat
|
||||
from src.core import uboot_local
|
||||
from src.ui import uboot_view
|
||||
game, boat = _local_boat()
|
||||
_mast_up_near_frigate(game, boat, 8.0, bearing=90.0)
|
||||
for _ in range(100):
|
||||
game._update(0.1)
|
||||
uboot_local.set_local_station(game, "uboot_esm")
|
||||
boat.command_page = 0
|
||||
with layout.capture_geometry() as boxes:
|
||||
game.draw()
|
||||
listing = next(pygame.Rect(row["rect"]) for row in boxes
|
||||
if row["title"] == "uboot.panel.esm")
|
||||
rows = [target for target in pointer.targets("station")
|
||||
if target.action is not None and listing.contains(target.rect)
|
||||
and target.rect.h == 20]
|
||||
assert len(rows) == len(boat.esm.ordered()) >= 1
|
||||
last = boat.esm.ordered()[len(rows) - 1]
|
||||
_click(game, rows[-1].rect.center)
|
||||
assert uboot_view.esm_selection(boat)[1] is last
|
||||
game.audio.shutdown()
|
||||