mirror of
https://github.com/csd4ni3l/fractal-viewer.git
synced 2026-01-01 04:13:41 +01:00
Remove unnecesseray double UIAnchorLayout with controller support and setting of controller events on window
This commit is contained in:
@@ -25,9 +25,6 @@ class IterFractalViewer(arcade.gui.UIView):
|
||||
|
||||
def on_show_view(self):
|
||||
super().on_show_view()
|
||||
self.window.on_stick_motion = self.on_stick_motion
|
||||
self.window.on_button_press = self.on_button_press
|
||||
self.window.on_button_release = self.on_button_release
|
||||
|
||||
self.shader_program, self.fractal_image = create_iter_calc_shader(
|
||||
self.fractal_name,
|
||||
|
||||
@@ -17,9 +17,7 @@ class SierpinskyCarpetViewer(arcade.gui.UIView):
|
||||
self.zoom = 1.0
|
||||
self.click_center = (self.width / 2, self.height / 2)
|
||||
self.has_controller = False
|
||||
|
||||
self.window.on_stick_motion = self.on_stick_motion
|
||||
|
||||
|
||||
def on_show_view(self):
|
||||
super().on_show_view()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user