mirror of
https://github.com/baketnk/frame-yap.git
synced 2026-10-06 01:00:04 +02:00
Add Settings -> About screen with version, license and credits
Static page: build version (with git commit when untagged/dirty), source URL, MIT license, selected model's manifest license, font license and a pointer to docs/third-party.md. Recording controls stay live; Settings returns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9ec5dd03ba
commit
0f36a45358
5 files changed
+62
-5
No files matched your search
@@ -518,5 +518,24 @@ int main(int argc, char** argv) {
|
||||
model_panel.model_busy = true;
|
||||
chooser.render(model_panel);
|
||||
no_action(chooser.pointer_up(0, 700, 546)); // change invalidates approval
|
||||
// About: reached only from Settings; display-only, recording stays usable.
|
||||
PanelSurface about(argv[1], Mount::World, {}, {.enabled = false});
|
||||
Panel about_panel{"Ready", "", "", true, false};
|
||||
about.render(about_panel);
|
||||
no_action(click(about, 420, 400)); // hidden on Review
|
||||
assert(!about.render(about_panel));
|
||||
no_action(click(about, 290, 160)); about.render(about_panel); // Settings
|
||||
const auto settings_pixels = about.pixels();
|
||||
no_action(click(about, 420, 400)); // About
|
||||
assert(about.render(about_panel));
|
||||
const auto about_pixels = about.pixels();
|
||||
assert(about_pixels != settings_pixels);
|
||||
no_action(click(about, 100, 250)); // Settings' World-space button is not live under About
|
||||
no_action(click(about, 700, 400)); // nor Lasers anytime
|
||||
about.set_version("0.1.202609261200");
|
||||
assert(about.render(about_panel) && about.pixels() != about_pixels);
|
||||
assert(click(about, 100, 610).action == UiAction::BeginRecord);
|
||||
no_action(click(about, 290, 160)); about.render(about_panel); // Settings returns
|
||||
assert(about.pixels() == settings_pixels);
|
||||
std::cout << "panel checks passed (no OpenVR, microphone or input injection)\n";
|
||||
}
|
||||
Reference in new issue
Block a user