Skip to content

Commit

Permalink
fix: windows are closed by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ActuallyHappening committed Jul 20, 2023
1 parent c874efa commit d1e5ca4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/board/cells/markers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ fn spawn_mark(
commands: &mut Commands,
(meshes, materials, ass): &mut ResSpawning,
) {

if !options.show_markers { return; }
if !options.show_markers {
return;
}

if let Some(mark) = cached_info::get(&options.with_start(at)) {
let quad = shape::Quad::new(Vec2::new(CELL_SIZE, CELL_SIZE) * 0.7);
Expand Down
4 changes: 3 additions & 1 deletion src/board/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl VizOptions {
if ui.button(no_text).clicked() {
*should_show_markers = false;
}
});
});
}

pub fn sys_viz_options_ui(
Expand All @@ -125,6 +125,7 @@ impl VizOptions {
) {
egui::Window::new("Visualization options")
.default_pos(Pos2::new(4200., 4200.))
.default_open(false)
.show(contexts.ctx_mut(), |ui| {
ui.heading("Visualization options:");

Expand All @@ -151,6 +152,7 @@ impl ManualMoves {

egui::Window::new("Save / Loading")
.default_pos(Pos2::new(4200., 4200.))
.default_open(false)
.show(contexts.ctx_mut(), |ui| {
egui::ScrollArea::vertical().show(ui, |ui| {
ui.heading("Manually saving:");
Expand Down

0 comments on commit d1e5ca4

Please sign in to comment.