Add Lorenz attractor, fix add point button style in Voronoi DIagram

This commit is contained in:
csd4ni3l
2025-09-27 13:02:21 +02:00
parent 0ff5c15862
commit ab806e1b54
4 changed files with 194 additions and 1 deletions

View File

@@ -73,6 +73,9 @@ class Main(arcade.gui.UIView):
self.voronoi_diagram_simulator_button = self.box.add(arcade.gui.UITextureButton(text="Voronoi Diagram Simulator", texture=button_texture, texture_hovered=button_hovered_texture, width=self.window.width / 2, height=self.window.height / 12, style=big_button_style))
self.voronoi_diagram_simulator_button.on_click = lambda event: self.voronoi_diagram_simulator()
self.lorenz_attractor_simulator_button = self.box.add(arcade.gui.UITextureButton(text="Lorenz Attractor Simulator", texture=button_texture, texture_hovered=button_hovered_texture, width=self.window.width / 2, height=self.window.height / 12, style=big_button_style))
self.lorenz_attractor_simulator_button.on_click = lambda event: self.lorenz_attractor_simulator()
self.settings_button = self.box.add(arcade.gui.UITextureButton(text="Settings", texture=button_texture, texture_hovered=button_hovered_texture, width=self.window.width / 2, height=self.window.height / 12, style=big_button_style))
self.settings_button.on_click = lambda event: self.settings()
@@ -104,6 +107,10 @@ class Main(arcade.gui.UIView):
from game.voronoi_diagram_simulator.game import Game
self.window.show_view(Game(self.pypresence_client))
def lorenz_attractor_simulator(self):
from game.lorenz_attractor_simulator.game import Game
self.window.show_view(Game(self.pypresence_client))
def settings(self):
from menus.settings import Settings
self.window.show_view(Settings(self.pypresence_client))