limit length of solution names

This commit is contained in:
Crispy 2024-10-08 22:24:41 +02:00
parent 9f21c2b258
commit 4c4563c326
3 changed files with 15 additions and 10 deletions

View file

@ -93,7 +93,7 @@ impl Game {
fn draw(&mut self, d: &mut RaylibDrawHandle) {
d.clear_background(Color::new(64, 64, 64, 255));
let level_list_width = d.get_screen_width() / 4; // woah! Reactive UI! so fancy
let level_list_width = d.get_screen_width() / 3;
let screen_height = d.get_screen_height();
d.draw_rectangle(0, 0, level_list_width, screen_height, Color::GRAY);
@ -208,6 +208,7 @@ impl Game {
bounds,
&mut solution.name,
&mut self.editing_solution_name,
24,
true,
);
d.draw_text(solution.id(), column_x, y + 35, 10, Color::GRAY);