def createReadyDialogue(self): menu = Menu(self.menuGraphics, self.fonts, self.inputManager) menu.initMenu([ 3, "Are you ready?", ["Yes", "Exit"], [[self.race.startRace], [self.race.createDemoRace]], [[3], [None]] ])
def createStartMenu(self): menu = Menu(self.menuGraphics, self.fonts, self.inputManager) menu.initMenu([ 0, None, ["New Game", "Quit Game"], [[self.race.createRace, self.createReadyDialogue], [base.userExit]], [[None, None], [None]] ])
def createReadyDialogue(self): menu = Menu(self.menuGraphics, self.fonts, self.inputManager) menu.initMenu([ 3, "Are you ready?", ["Yes", "Exit"], # The two options the menu will have. [[self.race.startRace], [self.race.createDemoRace]], # functions executed by the options. [[3], [None]] ]) # The arguments to be passed to the functions.
def createStartMenu(self): menu = Menu(self.menuGraphics, self.fonts, self.inputManager) menu.initMenu([ 0, None, ["New Game", "Quit Game"], # The two options the menu will have. [ [self.race.createRace, self.createReadyDialogue ], # functions executed by the first option. [base.userExit] ], # function executed by the second option. [[None, None], [None]] ]) # The arguments to be passed to the functions.