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()
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()
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()
def load_resources(self): sounds.enter_campaign(res, self.path)
def run_on(self): sounds.enter_campaign(self.map.campaign.path) _Savable.run_on(self) self.map.run_next_step(self) sounds.exit_campaign()