Beispiel #1
0
    def showTutorial(self):
        # evilynux - Make sure tutorial exists before launching
        tutorialpath = self.engine.tutorialFolder
        if not os.path.isdir(self.engine.resource.fileName(tutorialpath)):
            Log.debug("No folder found: %s" % tutorialpath)
            Dialogs.showMessage(self.engine, _("No tutorials found!"))
            return

        self.engine.startWorld(1, None, 0, 0, tutorial = True)

        self.launchLayer(lambda: Lobby(self.engine))
Beispiel #2
0
 def newLocalGame(
     self,
     players=1,
     mode1p=0,
     mode2p=0,
     maxplayers=None,
     allowGuitar=True,
     allowDrum=True,
     allowMic=False
 ):  #mode1p=0(quickplay),1(practice),2(career) / mode2p=0(faceoff),1(profaceoff)
     self.engine.startWorld(players, maxplayers, mode1p, mode2p,
                            allowGuitar, allowDrum, allowMic)
     self.launchLayer(lambda: Lobby(self.engine))
Beispiel #3
0
    def newLocalGame(
        self,
        players=1,
        mode1p=0,
        mode2p=0,
        maxplayers=None,
        allowGuitar=True,
        allowDrum=True,
        allowMic=False
    ):  #mode1p=0(quickplay),1(practice),2(career) / mode2p=0(faceoff),1(profaceoff)
        """
        Callback to start the game

        :param players: number of players (default: 1)
        :param mode1p: game mode 1p (default: quickplay, practice, career)
        :param mode2p: game mode 2p (default: Face-Off, Pro FO, Co-Op, RB Co-Op)
        :param maxplayers: max number of players (default: None)
        :param allowGuitar: if a guitar is allowed or not (default: True)
        :param allowDrum: if a drum is allowed or not (default: True)
        :param allowMic: if a mic is allowed or not (default: False)
        """
        self.engine.startWorld(players, maxplayers, mode1p, mode2p,
                               allowGuitar, allowDrum, allowMic)
        self.launchLayer(lambda: Lobby(self.engine))
Beispiel #4
0
 def restartGame(self):
     splash = Dialogs.showLoadingSplashScreen(self.engine, "")
     self.engine.view.pushLayer(Lobby(self.engine))
     Dialogs.hideLoadingSplashScreen(self.engine, splash)
Beispiel #5
0
 def restartGame(self):
     """ Restart the game: go to the main menu again """
     splash = Dialogs.showLoadingSplashScreen(self.engine, "")
     self.engine.view.pushLayer(Lobby(self.engine))
     Dialogs.hideLoadingSplashScreen(self.engine, splash)