added basic laod save functionality
This commit is contained in:
@@ -226,6 +226,8 @@ pub struct SidePanelResult {
|
||||
pub reset_clicked: bool,
|
||||
pub clear_clicked: bool,
|
||||
pub export_clicked: bool,
|
||||
pub save_clicked: bool,
|
||||
pub load_clicked: bool,
|
||||
}
|
||||
|
||||
pub fn draw_side_panel(
|
||||
@@ -354,6 +356,16 @@ fn draw_generate_tab(
|
||||
}
|
||||
});
|
||||
|
||||
ui.add_space(8.0);
|
||||
ui.horizontal(|ui| {
|
||||
if ui.button("Save State").clicked() {
|
||||
result.save_clicked = true;
|
||||
}
|
||||
if ui.button("Load State").clicked() {
|
||||
result.load_clicked = true;
|
||||
}
|
||||
});
|
||||
|
||||
ui.add_space(12.0);
|
||||
ui.separator();
|
||||
ui.add_space(8.0);
|
||||
|
||||
Reference in New Issue
Block a user