Cells face where they move; a click outside closes the evolution window
Foundation / checks (checks) (push) Successful in 45m19s
Foundation / checks (deploy) (push) Successful in 3m45s
Foundation / checks (ecs) (push) Successful in 2m16s
Foundation / checks (network) (push) Successful in 19m17s
Foundation / checks (postgres) (push) Successful in 43m23s
Foundation / checks (tsan) (push) Successful in 11m39s
Foundation / checks (client) (push) Successful in 17m3s
Foundation / postgres-tools (push) Successful in 29s
Foundation / server-image (push) Successful in 3m8s
Foundation / image (push) Successful in 3m25s

The microscope view orients each cell along its last movement of at least 20 um, with
the flagella trailing, easing into turns. The heading is projected with the current
camera, so panning never turns a cell; a cell that has not moved keeps its seeded
orientation. A left click outside the evolution window closes it (the offer stays;
E or the callout reopens it), except on the frame it opens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-16 11:35:52 -04:00
co-authored by Claude Opus 5.5
parent 7929dea2fc
commit 521372607a
7 changed files with 132 additions and 4 deletions
+16
View File
@@ -517,6 +517,22 @@ void cellular_panels(const std::filesystem::path& review) {
CHECK(app->request_screenshot((review / "cellular-evolution.bmp").string()));
draw();
}
// A click outside closes it; E opens it again.
const float outside_x = evolution->Pos.x / 2;
const float outside_y = evolution->Pos.y + evolution->Size.y / 2;
mouse(id, SDL_EVENT_MOUSE_MOTION, outside_x, outside_y);
mouse(id, SDL_EVENT_MOUSE_BUTTON_DOWN, outside_x, outside_y);
mouse(id, SDL_EVENT_MOUSE_BUTTON_UP, outside_x, outside_y);
for (int i = 0; i < 3; ++i)
draw();
CHECK(!form.evolution_open);
(void)app->take_navigation();
CHECK(SDL_PushEvent(&e_key));
draw();
CHECK(SDL_PushEvent(&e_up));
for (int i = 0; i < 3; ++i)
draw();
CHECK(form.evolution_open);
// Click the first production choice. Pointer ownership prevents world selection.
const auto probe = [&](const ImGuiWindow* panel, float x_fraction, const auto& done) {
const float x = panel->Pos.x + panel->Size.x * x_fraction;