i18n: translate progress labels, preview diagnostics and play button; fixture example clippy
@@ -99,7 +99,8 @@ impl App for Fixture {
99
99
fn update(&mut self, ctx: &eframe::egui::Context, frame: &mut eframe::Frame) {
100
100
self.editor.update(ctx, frame);
101
101
ctx.request_repaint();
102
match self.phase {
102
let phase = self.phase;
103
match phase {
103
104
0 => {
104
105
if self.screenshot(ctx, "live-body.png") {
105
106
self.editor.render_all_angles();
@@ -112,11 +113,12 @@ impl App for Fixture {
112
113
self.phase = 2;
113
114
}
114
115
}
115
2 => {
116
if self.screenshot(ctx, "production-ui.png") {
117
self.phase = 3;
118
ctx.send_viewport_cmd(eframe::egui::ViewportCommand::Close);
116
2 if self.screenshot(ctx, "production-ui.png") => {
117
if let Some(error) = &self.error {
118
println!("RENDER ERROR {error}");
119
119
}
120
self.phase = 3;
121
ctx.send_viewport_cmd(eframe::egui::ViewportCommand::Close);
120
122
}
121
123
_ => {}
122
124
}
@@ -99,7 +99,8 @@ impl App for Fixture {99
fn update(&mut self, ctx: &eframe::egui::Context, frame: &mut eframe::Frame) {99
fn update(&mut self, ctx: &eframe::egui::Context, frame: &mut eframe::Frame) {100
self.editor.update(ctx, frame);100
self.editor.update(ctx, frame);101
ctx.request_repaint();101
ctx.request_repaint();102
match self.phase {102
let phase = self.phase;103
match phase {103
0 => {104
0 => {104
if self.screenshot(ctx, "live-body.png") {105
if self.screenshot(ctx, "live-body.png") {105
self.editor.render_all_angles();106
self.editor.render_all_angles();@@ -112,11 +113,12 @@ impl App for Fixture {112
self.phase = 2;113
self.phase = 2;113
}114
}114
}115
}115
2 => {116
2 if self.screenshot(ctx, "production-ui.png") => {116
if self.screenshot(ctx, "production-ui.png") {117
if let Some(error) = &self.error {117
self.phase = 3;118
println!("RENDER ERROR {error}");118
ctx.send_viewport_cmd(eframe::egui::ViewportCommand::Close);119
}119
}120
self.phase = 3;121
ctx.send_viewport_cmd(eframe::egui::ViewportCommand::Close);120
}122
}121
_ => {}123
_ => {}122
}124
}@@ -813,4 +813,7 @@ pub const TABLE: &[(&str, &str)] = &[
813
813
("Instellingen", "Settings"),
814
814
("Taal", "Language"),
815
815
("Sluiten", "Close"),
816
("voorste materiaal niet als texture × factor getekend: {surface_front:?}", "front material not drawn as texture × factor: {surface_front:?}"),
817
("materiaal per primitive verwisseld: {surface_swap:?}", "material per primitive swapped: {surface_swap:?}"),
818
("GPU depth PASS: native {native_bits}-bit, front={near:?}, next-frame={next:?}, reversed={reverse:?}, behind-layer={hidden:?}, textured-front={textured:?}, alpha-cutout={cutout:?}, shiny={shiny:?}, matte={matte:?}, body-surface texture×factor={surface_front:?}, body-surface factor-only={surface_swap:?}", "GPU depth PASS: native {native_bits}-bit, front={near:?}, next-frame={next:?}, reversed={reverse:?}, behind-layer={hidden:?}, textured-front={textured:?}, alpha-cutout={cutout:?}, shiny={shiny:?}, matte={matte:?}, body-surface texture×factor={surface_front:?}, body-surface factor-only={surface_swap:?}"),
816
819
];
@@ -813,4 +813,7 @@ pub const TABLE: &[(&str, &str)] = &[813
("Instellingen", "Settings"),813
("Instellingen", "Settings"),814
("Taal", "Language"),814
("Taal", "Language"),815
("Sluiten", "Close"),815
("Sluiten", "Close"),816
("voorste materiaal niet als texture × factor getekend: {surface_front:?}", "front material not drawn as texture × factor: {surface_front:?}"),817
("materiaal per primitive verwisseld: {surface_swap:?}", "material per primitive swapped: {surface_swap:?}"),818
("GPU depth PASS: native {native_bits}-bit, front={near:?}, next-frame={next:?}, reversed={reverse:?}, behind-layer={hidden:?}, textured-front={textured:?}, alpha-cutout={cutout:?}, shiny={shiny:?}, matte={matte:?}, body-surface texture×factor={surface_front:?}, body-surface factor-only={surface_swap:?}", "GPU depth PASS: native {native_bits}-bit, front={near:?}, next-frame={next:?}, reversed={reverse:?}, behind-layer={hidden:?}, textured-front={textured:?}, alpha-cutout={cutout:?}, shiny={shiny:?}, matte={matte:?}, body-surface texture×factor={surface_front:?}, body-surface factor-only={surface_swap:?}"),816
];819
];