mod alerts;
mod bands;
mod birth;
mod drafts;
mod drift;
mod echo;
mod elision;
mod first_run;
mod fixture;
mod floor;
mod focus;
mod follow;
mod geometry;
mod hover;
mod inbox_composer;
mod legible;
mod masthead;
mod mint_seed;
mod modal;
mod name_column;
mod naming;
mod one_rendering;
mod orphan;
mod overlap;
mod picker;
mod raise;
mod reach;
mod recall;
mod refusal;
mod remedies;
mod screen;
mod search_tab;
mod settings;
mod sink;
mod slash;
mod smoke;
mod start_draft;
mod started;
mod tabs;
mod unfold;
mod walk;
mod walls;
mod width;
mod wire;
mod wound;
use super::render;
use crate::cli_outbound::Cli;
use fixture::World;
fn input() -> egui::RawInput {
crate::paint_probe::screen_sized(1600.0, 2400.0)
}
fn painted(world: &mut World, lernie: &Cli, bl: &Cli) -> String {
let bz = Cli::new("bz");
let ctx = egui::Context::default();
let frame = |world: &mut World| {
ctx.run(input(), |ctx| {
render(ctx, &mut world.model, &mut world.state, lernie, bl, &bz);
})
};
let _ = frame(world);
let _ = frame(world);
world.drain(&mut |world| {
let _ = frame(world);
});
for _ in 0..4 {
let _ = frame(world);
}
crate::paint_probe::text_of(&frame(world))
}
pub(super) const SIZES: [(f32, f32); 5] = [
(420.0, 320.0),
(480.0, 1400.0),
(800.0, 500.0),
(1150.0, 760.0),
(2560.0, 1700.0),
];
pub(super) fn window(
w: f32,
h: f32,
trail: bool,
tab: crate::keymap::CenterTab,
inspector: crate::keymap::InspectorTab,
) -> egui::FullOutput {
let (lernie, bl, bz) = (Cli::new("lernie"), Cli::new("bl"), Cli::new("bz"));
let mut world = fixture::world();
let ws = world.ws.clone();
world.model.focus_agent(&ws, "c-1");
world.model.select_tab(inspector);
world.state.activity_open = trail;
let ctx = egui::Context::default();
super::center::focus(&world.model, &mut world.state, tab);
let frame = |world: &mut World| {
ctx.run(crate::paint_probe::screen_sized(w, h), |ctx| {
render(ctx, &mut world.model, &mut world.state, &lernie, &bl, &bz);
})
};
for _ in 0..4 {
let _ = frame(&mut world);
world.settle();
}
frame(&mut world)
}