diff --git a/src/editor.rs b/src/editor.rs index 832c6b2..aa70434 100644 --- a/src/editor.rs +++ b/src/editor.rs @@ -40,7 +40,7 @@ pub struct Editor { exit_state: ExitState, exit_menu: bool, complete_popup: Popup, - fail_popup: Popup, + // fail_popup: Popup, score: Option, } @@ -103,7 +103,7 @@ impl Editor { exit_state: ExitState::Dont, exit_menu: false, complete_popup: Popup::Start, - fail_popup: Popup::Start, + // fail_popup: Popup::Start, score: solution.score, } } @@ -370,27 +370,27 @@ impl Editor { ); if self.exit_menu { - if simple_button(d, 5, 5, 80, 30) { + if simple_button(d, 5, 5, 75, 30) { self.exit_menu = false; } d.draw_text("cancel", 10, 10, 20, Color::WHITE); - if simple_button(d, 90, 5, 80, 30) { + if simple_button(d, 85, 5, 60, 30) { self.exit_state = ExitState::ExitAndSave; } - d.draw_text("save", 95, 10, 20, Color::WHITE); - if simple_button(d, 175, 5, 80, 30) { + d.draw_text("save", 90, 10, 20, Color::WHITE); + if simple_button(d, 150, 5, 80, 30) { self.exit_state = ExitState::ExitNoSave; } - d.draw_text("revert", 180, 10, 20, Color::WHITE); + d.draw_text("revert", 155, 10, 20, Color::WHITE); } else { - if simple_button(d, 5, 5, 80, 30) { + if simple_button(d, 5, 5, 75, 30) { self.exit_menu = true; } d.draw_text("exit", 10, 10, 20, Color::WHITE); - if simple_button(d, 90, 5, 80, 30) { + if simple_button(d, 85, 5, 60, 30) { self.exit_state = ExitState::Save; } - d.draw_text("save", 95, 10, 20, Color::WHITE); + d.draw_text("save", 90, 10, 20, Color::WHITE); } match self.sim_state {