Пример #1
0
    def run(self):
        sounds.enter_campaign(self.path)
        menu = clientmenu.Menu(self.title, [],
                default_choice_index=len(self._available_chapters()) - 1)
        for ch in self._available_chapters():
            menu.append(ch.title, ch)
#        menu.append([4113], "restore")
        menu.append([4118], None) # "cancel"
        menu.run()
        sounds.exit_campaign()
Пример #2
0
    def run(self):
        if self.mods is not None and self.mods != config.mods:
            config.mods = self.mods
            reload_all()
        sounds.enter_campaign(self.path)
        menu = clientmenu.Menu(self.title, [],
                default_choice_index=len(self._available_chapters()) - 1)
        for ch in self._available_chapters():
            menu.append(ch.title, ch)
#        menu.append([4113], "restore")
        menu.append([4118], None) # "cancel"
        menu.run()
        sounds.exit_campaign()
Пример #3
0
    def run(self):
        if self.mods is not None and self.mods != config.mods:
            config.mods = self.mods
            reload_all()
        sounds.enter_campaign(self.path)
        menu = clientmenu.Menu(
            self.title, [],
            default_choice_index=len(self._available_chapters()) - 1)
        for ch in self._available_chapters():
            menu.append(ch.title, ch)
#        menu.append([4113], "restore")
        menu.append([4118], None)  # "cancel"
        menu.run()
        sounds.exit_campaign()
Пример #4
0
 def load_resources(self):
     sounds.enter_campaign(res, self.path)
Пример #5
0
 def run_on(self):
     sounds.enter_campaign(self.map.campaign.path)
     _Savable.run_on(self)
     self.map.run_next_step(self)
     sounds.exit_campaign()
Пример #6
0
 def run_on(self):
     sounds.enter_campaign(self.map.campaign.path)
     _Savable.run_on(self)
     self.map.run_next_step(self)
     sounds.exit_campaign()
Пример #7
0
 def load_resources(self):
     sounds.enter_campaign(res, self.path)