There's a bug somewhere

Unsure where exactly, but currently it looks like E1M1 has a spider mastermind
This commit is contained in:
2023-06-25 14:37:15 +01:00
parent a1a3f8d7ff
commit ec5e420c04
2 changed files with 103 additions and 8 deletions

View File

@@ -164,7 +164,7 @@ impl eframe::App for RustDoomLauncher {
self.add_stuff_window_displayed = true;
}
});
ui.horizontal_wrapped(|ui| {
ui.horizontal(|ui| {
ui.vertical(|ui| {
ui.set_max_width(100.0);
ui.label("Launchers");
@@ -265,6 +265,9 @@ impl eframe::App for RustDoomLauncher {
.add_pwads(&self.pwad_manager.get_current())
}
});
let mut text = "Placeholder for WAD info stuffs";
let window_size = frame.info().window_info.size;
ui.add(egui::TextEdit::multiline(&mut text).desired_width(window_size[0]/1.6).desired_rows(20));
});
ui.separator();
ui.horizontal_wrapped(|ui| {
@@ -322,8 +325,6 @@ impl eframe::App for RustDoomLauncher {
} else {
ui.label("Select an iwad plz");
}
// This feels ver much more C-like, but I think it works?
// Probably should have a little bit more checking around the unwrap calls
let mut remove: Option<usize> = None;
for (pos, pwad) in self.pwad_manager.get_current().iter().enumerate() {
if ui