qa: package + document controls (0.1.0 release check PASS)

- Docs/controls.md: full binding table + headless input-test note.
- AGigLineHUD: draw a control legend bottom-right every frame
  (WASD move / Mouse look / Space jump / R reset / Esc pause).
- Verified on the packaged Development build: launches straight into DemoMap, no
  missing-asset or linker errors; controls text confirmed in the capture
  (bottom-right bbox 426x12 px). Evidence in Docs/release-checks.md +
  Docs/perf/0.1.0-packaged-hud-controls.png.
This commit is contained in:
zwitschi committed 2026-11-08 15:22:25 +01:00
1 parent 3bc7061ffb
commit 77f1d06749
6 files changed
+83 -3

No files matched your search

@@ -26,4 +26,15 @@ void AGigLineHUD::DrawHUD()
DrawText(AttributionLine, Ink, X, Y, nullptr, TextScale);
DrawText(LicenceLine, Ink, X, Y + LineHeight, nullptr, TextScale * 0.82f);
// Control legend, bottom-right (0.1.0 release check: controls shown in-game).
if (!ControlsLine.IsEmpty())
{
float IgnoredW = 0.0f, ControlsH = 0.0f;
GetTextSize(ControlsLine, IgnoredW, ControlsH, nullptr, TextScale * 0.82f);
const float CX = Canvas->ClipX - MarginPx - IgnoredW;
const float CY = Canvas->ClipY - MarginPx - ControlsH;
DrawText(ControlsLine, Shadow, CX + 1.0f, CY + 1.0f, nullptr, TextScale * 0.82f);
DrawText(ControlsLine, Ink, CX, CY, nullptr, TextScale * 0.82f);
}
}
+8
View File
@@ -28,6 +28,14 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Attribution")
FString AttributionLine = TEXT("\u00A9 OpenStreetMap contributors");
/**
* Control legend, shown bottom-right so the 0.1.0 demo documents its own
* controls in-game (release check: "controls documented in Docs/ and shown
* in-game"). Keep in sync with Docs/controls.md.
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Controls")
FString ControlsLine = TEXT("WASD move \u00B7 Mouse look \u00B7 Space jump \u00B7 R reset \u00B7 Esc pause");
/** Licence line, including where the licence can be read. */
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Attribution")
FString LicenceLine = TEXT("Data \u00A9 OpenStreetMap contributors, ODbL 1.0 \u2014 openstreetmap.org/copyright");