We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to implement 3 menu screen transitions with the following code.
menu3 = MenuTemplate(surface=SURFACE, title="menu3") menu3.add_option("back", pygameMenu.events.BACK) menu2 = MenuTemplate(surface=SURFACE, title="menu2") menu2.add_option("go to menu3", menu3) menu1 = MenuTemplate(surface=SURFACE, title="menu1") menu1.add_option("go to menu2", menu2) clock = pygame.time.Clock() while True: clock.tick(60) menu1.mainloop()
MenuTemplate is an inherited class of pygameMenu.Menu.
MenuTemplate
pygameMenu.Menu
I expect following screen transitions:
menu1 -> menu2 -> menu3
In practice, however, only the transition from menu1 to menu2 works and cannot transition from menu2 to menu3.
Is this the intended behavior? Or is it a bug?
The text was updated successfully, but these errors were encountered:
It's a bug, I think I've fixed this. Can you test the new menu.py file?
Sorry, something went wrong.
I've updated the example too (examples/game_selector.py)
Thanks! It works I intended!
I'll post this patch (2.0.3) to PyPi. Let me know if you find any other bug related to menu open/back events 😄
No branches or pull requests
I want to implement 3 menu screen transitions with the following code.
MenuTemplate
is an inherited class ofpygameMenu.Menu
.I expect following screen transitions:
In practice, however, only the transition from menu1 to menu2 works and cannot transition from menu2 to menu3.
Is this the intended behavior? Or is it a bug?
The text was updated successfully, but these errors were encountered: