示例#1
0
    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]]
        ])
示例#2
0
    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]]
        ])
示例#3
0
    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.
示例#4
0
    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.