osso73 / classic_games

A series of classic games in Kivy
MIT License
3 stars 1 forks source link

Update theme when you change level #11

Closed osso73 closed 3 years ago

osso73 commented 3 years ago

Every time the level or theme is changed, the image should be reloaded. Move level + theme variables to the Muestra class, and manage this through on_theme, on_level functions.

osso73 commented 3 years ago

Done. Removed the variable Mainscreen.nivel, and created Muestra.tamano, and changed all references from old variable to new variable. Added method Muestra.cambiar_tamano, and methods Muestra.on_tamano and Muestra.on_tema.

Reordered the code a bit, grouping the classes differently.