From 908015040cc7bb5e3c7fda88d90f8ed9210da8ff Mon Sep 17 00:00:00 2001 From: elukjanovica Date: Mon, 10 Jun 2024 08:46:09 +0300 Subject: [PATCH] --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 567f7c1..bc56fa4 100644 --- a/main.py +++ b/main.py @@ -1206,7 +1206,7 @@ while run: for button in current_buttons: button.draw(screen) - + clock.tick(FPS) if current_mode == "menu": @@ -1221,6 +1221,10 @@ while run: selected_image.render(screen) except (AttributeError, NameError): pass + + for button in current_buttons: + if button.popup_surface: + screen.blit(button.popup_surface, button.popup_rect.topleft) event_list = pygame.event.get()