diff --git a/cooperative_cuisine/pygame_2d_vis/gui.py b/cooperative_cuisine/pygame_2d_vis/gui.py index 8d3b49c5638436aab0d7f9f625680eebe8a96fe6..b46340e0cb1c02d8b13520b9a524ce2583af9723 100644 --- a/cooperative_cuisine/pygame_2d_vis/gui.py +++ b/cooperative_cuisine/pygame_2d_vis/gui.py @@ -1546,7 +1546,7 @@ class PyGameGUI: "translations.level_name", text_kwargs={"level": self.level_info["name"]} ) - graph_width = self.window_width * 0.55 + graph_width = self.window_width * 0.6 rows = 0 for rg in self.level_info["recipe_graphs"]: rows += len(np.unique(np.array(list(rg["layout"].values()))[:, 1])) @@ -2128,8 +2128,7 @@ class PyGameGUI: if event.type == pygame.JOYDEVICEREMOVED: self.remove_joystick(event) - # Press enter key or controller start button instead of mouse button press - if ( + if self.visualization_config["Gui"]["press_button_to_continue"] and ( event.type == pygame.JOYBUTTONDOWN and any([joy.get_button(7) for joy in self.joysticks.values()]) or (event.type == pygame.KEYDOWN and event.key == pygame.K_RETURN)