show version in corner of level list
This commit is contained in:
parent
15f6cc70d4
commit
79fe26414b
1 changed files with 9 additions and 1 deletions
10
src/main.rs
10
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());
|
||||
|
|
Loading…
Reference in a new issue