2021-06-25 14:42:35 +02:00
|
|
|
import gamedata.objects.menu.menu as menu
|
|
|
|
|
|
|
|
class OptionMenu(menu.Menu):
|
|
|
|
def __init__(self,x,y,game,w=100,h=100):
|
|
|
|
super().__init__(x,y,game,w,h) # initialise l'objet de base avec les bons arguments
|
|
|
|
# Les dicos des boutons
|
|
|
|
def fnRetour(self,game):
|
|
|
|
game.scene = game.scenes.main
|
|
|
|
btnRetour= {"name":"Retour","function": fnRetour}
|
|
|
|
|
|
|
|
# Initialisation de la grille du menu
|
|
|
|
self.grid = [
|
|
|
|
[btnRetour]
|
|
|
|
]
|
|
|
|
|
2021-06-25 16:13:52 +02:00
|
|
|
self.create(self.grid,self.rect)
|