mirror of
https://github.com/csd4ni3l/fractal-viewer.git
synced 2026-01-01 12:13:43 +01:00
fix display mode crash, make zoom rectangular instead of click based
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user