make more ui disableable

This commit is contained in:
Crispy 2024-12-23 00:53:59 +01:00
parent 6fc41bdb17
commit b5600b301d
3 changed files with 38 additions and 32 deletions

View file

@ -207,6 +207,7 @@ impl Game {
for (solution_index, solution) in solutions.iter().enumerate() {
if simple_option_button(
d,
&mouse,
level_list_width + 10,
solution_y,
entry_width,
@ -263,6 +264,7 @@ impl Game {
let bounds = Rectangle::new(column_x as f32, y as f32, 220., 30.);
if text_input(
d,
&mouse,
bounds,
&mut solution.name,
&mut self.editing_solution_name,