show version in corner of level list

This commit is contained in:
Crispy 2024-10-13 13:34:08 +02:00
parent 15f6cc70d4
commit 79fe26414b

View file

@ -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());