the endpoint for setting fx_mode has been improved

This commit is contained in:
SallarShayegan
2025-03-30 12:10:59 +02:00
parent 6269e6f9f6
commit ba5f1a6ace
2 changed files with 6 additions and 3 deletions

View File

@ -21,7 +21,7 @@ class LozengeButton:
pos = pygame.mouse.get_pos()
if math.sqrt(math.pow(pos[0] - self.x, 2) + math.pow(pos[1] - self.y, 2)) < self.radius_y:
self.focused = True
self.gui.set_fx_mode(self.name)
self.gui.set_fx_mode_by_name(self.name)
if self.focused:
w = 0