added export functionality

This commit is contained in:
grimsace
2026-03-06 11:42:20 -06:00
parent 185710ae86
commit f14a8f653b
5 changed files with 843 additions and 0 deletions
+6
View File
@@ -1,3 +1,4 @@
mod exporter;
mod layout;
mod seed;
mod settings;
@@ -68,6 +69,11 @@ impl eframe::App for DungeonApp {
if panel_result.reset_clicked || panel_result.settings_changed {
self.regenerate_layout();
}
if panel_result.export_clicked {
if let Err(err) = exporter::export_with_dialog(&self.layout, &self.settings) {
eprintln!("{err}");
}
}
egui::SidePanel::right("legend_panel")
.resizable(false)