fix display mode crash, make zoom rectangular instead of click based

This commit is contained in:
csd4ni3l
2025-06-23 21:16:55 +02:00
parent 666a275810
commit dbdee7d054
4 changed files with 91 additions and 26 deletions

View File

@@ -27,6 +27,7 @@ class FractalChooser(arcade.gui.UIView):
for n, fractal_name in enumerate(iter_fractals):
row = n // 3
col = n % 3
self.iter_fractal_buttons.append(self.grid.add(arcade.gui.UITextureButton(texture=button_texture, texture_hovered=button_hovered_texture, text=fractal_name.replace("_", " ").capitalize(), style=button_style, width=200, height=200), row=row, column=col))
self.iter_fractal_buttons[-1].on_click = lambda event, fractal_name=fractal_name: self.iter_fractal(fractal_name)