From 79fe26414b827115a57d05fd38dca9737e605603 Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Sun, 13 Oct 2024 13:34:08 +0200 Subject: [PATCH] show version in corner of level list --- src/main.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 132552e..048e5f6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -98,6 +98,14 @@ impl Game { fn draw(&mut self, d: &mut RaylibDrawHandle) { d.clear_background(BG_DARK); + d.draw_text( + concat!("Marble Machinations v", env!("CARGO_PKG_VERSION")), + d.get_screen_width() - 275, + d.get_screen_height() - 20, + 20, + Color::GRAY, + ); + let level_list_width = (d.get_screen_width() / 3).min(400); let screen_height = d.get_screen_height(); d.draw_rectangle(0, 0, level_list_width, screen_height, BG_MEDIUM); @@ -226,7 +234,7 @@ impl Game { &mut self.editing_solution_name, 24, true, - ){ + ) { solution.save(); } let id_text = format!("{}", solution.id());