Add read-only image previews and linked asset navigation (by Codex)
This commit is contained in:
1 parent
e306c2c4a2
commit
f21247a244
12 files changed
+152
-5
No files matched your search
@@ -34,6 +34,7 @@ Das vollständige Paket `OpenBMHEditor-0.5.3-<plattform>.zip` entpacken und `Ope
|
||||
- Rückgängig/Wiederholen gilt gemeinsam für native Oberfläche und MCP. Noch nicht angewendete Eingaben werden bei externen Änderungen nicht automatisch ersetzt; eine veraltete Änderung muss nach Aktualisierung erneut geprüft werden.
|
||||
- **Bilder** und die Bildaktionen am Datensatz unterstützen PNG, JPEG, WebP und eigenständige SVG. Vor dem Import: Ausschnitt ziehen oder Werte eingeben, frei drehen, spiegeln. Ein unveränderter Import behält seine Originalbytes. Bearbeitete Rasterbilder werden PNG, SVG bleibt Vektor. Das Original und die Transformationswerte bleiben für erneutes Bearbeiten im Paket. Classic-Porträts werden aus ihren eingefrorenen Rezepten angezeigt; eine Umbenennung ändert das Gesicht nicht.
|
||||
- Bildänderungen am Spieler, Verein oder Wettbewerb erhalten eine eigene Zuordnung. Gemeinsame Platzhalter und Bilder anderer Datensätze bleiben dabei erhalten. Im Bereich **Bilder** kann ein gemeinsam verwendetes Bild bewusst zentral bearbeitet werden.
|
||||
- Ein Klick auf ein Wappen, Porträt, einen Pokal oder ein Bild in der Liste öffnet eine große, schreibgeschützte **Bildvorschau**. **Zum Asset** öffnet den zugehörigen Eintrag im Bereich **Bilder**. Bei zusammengesetzten Classic-Porträts ohne einzelne Bilddatei führt die Schaltfläche zur allgemeinen Bildübersicht. Das Anschauen verändert keine Daten; beim Wechsel bleiben offene Eingaben durch die Übernehmen-/Verwerfen-Abfrage geschützt.
|
||||
|
||||
**Speichern** erzeugt ausschließlich `.obw` im Profil **`editor-world-v1`, Format 1.1**. Editorwelten sind **noch nicht im Classic-Spiel startbar**. Die Bezeichnung ist im Editor sichtbar. Unbekannte Erweiterungen, nicht bearbeitete Dokumente, Quellnachweise und Bilder bleiben erhalten. Noch nicht im Formular angebotene Regeln, Kalender- und Finanzdaten werden erhalten, aber nicht als vollständig editierbare Bereiche ausgegeben.
|
||||
|
||||
@@ -130,6 +131,8 @@ Use **Regulations** to inspect promotion, relegation, playoffs, international qu
|
||||
|
||||
The editor retains full squads, original image data, source claims and unknown extensions. Its 24-player view does not remove players. Image import offers normalized crop, arbitrary rotation and mirroring; re-editing uses the preserved source. Classic portraits keep their frozen appearance recipe. Unsupported editing areas are preserved rather than replaced.
|
||||
|
||||
Click a crest, portrait, trophy or list thumbnail to open a large read-only image preview. **View asset** opens its linked asset record; composed Classic portraits without a single image file lead to the image library. Viewing preserves the world and pending property edits.
|
||||
|
||||
In **Options**, switch the interface to **English**, choose one of the three themes, and enable/disable the integrated local MCP server. **Copy connection** provides the authenticated configuration. The server defaults to loopback port 8765; use port 0 for a free port. GUI and MCP share the same world, validation and undo history. It supports MCP Streamable HTTP 2025-11-25/2025-06-18 and optional stdio mode. Use `expected_revision` for concurrent edits.
|
||||
|
||||
Build with the three commands above, including `-DOPENBMH_BUILD_EDITOR=ON`. Windows uses Direct3D 11 with automatic WARP software fallback. Linux requires OpenGL 3.3; macOS requires OpenGL 4.1, plus the documented platform development dependencies. Editor 0.5.3 is unsigned and does not bundle any real-world dataset or proprietary game assets.
|
||||
@@ -0,0 +1,27 @@
|
||||
# Native read-only image preview
|
||||
|
||||
Editor 0.5.3, captured from the native RmlUI application at 1440×900.
|
||||
All pictures and records are authored synthetic demo data. No game installation,
|
||||
real crest, portrait, savegame or personal profile is included.
|
||||
|
||||
| View | Native screenshot |
|
||||
|---|---|
|
||||
| Before: small image in the club inspector | [Club inspector](before-club-image.png) |
|
||||
| After: large read-only preview, Midnight / German | [Midnight](preview-midnight-de.png) |
|
||||
| Silver / English | [Silver](preview-silver-en.png) |
|
||||
| Matchday / German | [Matchday](preview-matchday-de.png) |
|
||||
| Jump to the exact linked image record | [Linked asset](linked-asset.png) |
|
||||
|
||||
Clicking the inspector image or a list thumbnail opens the same viewer. Images
|
||||
retain their aspect ratio; there are no editing controls. Close, the window's
|
||||
close button and Escape return to the current form. **View asset** opens the
|
||||
linked asset, clearing unrelated country/league/team filters. Composed Classic
|
||||
portraits without a single backing asset offer the general image library.
|
||||
|
||||
`tests/editor_gui_smoke.py` exercises the actual mouse and keyboard path. MCP
|
||||
observes that opening/closing the preview leaves the world and history unchanged.
|
||||
The test also preserves a pending property draft, cancels a guarded asset jump,
|
||||
checks the selected club's exact asset, and opens the different asset from an
|
||||
unselected row. These checks complement the core, comparison and regulations
|
||||
tests. The synthetic demo starts unsaved; the asterisk in these captures reflects
|
||||
that initial state rather than a modification caused by the preview.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 141 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 128 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 83 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 88 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 92 KiB |
Reference in new issue
Block a user