Skip to content

Is it currently possible to load multiple themes as mentioned in the docs? #263

Answered by MyreMylar
Bmorr1123 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there, looks like there was a little error in the docs. It should read:

 manager = pygame_gui.UIManager((800, 600), 'base_theme.json')
 manager.get_theme().load_theme('menu_theme.json')
 manager.get_theme().load_theme('hud_theme.json')

To work correctly, which reads a little oddly I suppose but is how the code works right now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Bmorr1123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants