wip, might not be good
This commit is contained in:
parent
f53879f961
commit
6d5bfaeeda
63 changed files with 1897 additions and 93 deletions
|
|
@ -1,6 +1,7 @@
|
|||
from typing import Callable, Tuple
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from learn_sql_model.optional import _optional_import_
|
||||
|
||||
pygame = _optional_import_("pygame", group="game")
|
||||
|
|
@ -113,7 +114,7 @@ class Menu:
|
|||
def handle_events(self, events):
|
||||
self.hamburger.handle_events(self, events)
|
||||
for event in events:
|
||||
if event.type == pygame.MOUSEBUTTONDOWN:
|
||||
if event.type == pygame.MOUSEBUTTONDOWN and self.is_menu_open:
|
||||
if event.button == 1: # Left mouse button
|
||||
self.handle_click()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue