def destroy(self): list( map(lambda wdg: wdg.destroy(), [self.pars, self.panel, self.ai_panel])) self.way_txt.destroy() self.way_img.destroy() GuiColleague.destroy(self)
def __init__(self, mediator, background_fpath, font, fg_col): GuiColleague.__init__(self, mediator) self.ranking_texts = [] self.background_path = background_fpath self.font = font self.fg_col = fg_col self.rank_menu = self.background = None
def __init__(self, mediator, rprops, sprops, ranking, players): GuiColleague.__init__(self, mediator) menu_props = sprops.gameprops.menu_props menu_props.btn_size = (-8.6, 8.6, -.42, .98) #self.menu = RankingMenu(rprops, sprops, ranking, players) self.rank_page = RankingPage(rprops, sprops, menu_props, ranking, players) self.eng.do_later(.01, self.mediator.push_page, [self.rank_page])
def __init__(self, mediator, rprops, players): GuiColleague.__init__(self, mediator) self._players = players self.props = rprops self.results = self.result_cls(rprops) self.loading = Loading() self.minimap = None RaceGuiFacade.__init__(self)
def __init__(self, mediator, menu_args, keys): GuiColleague.__init__(self, mediator) menu_args_c = deepcopy(menu_args) menu_args_c.background_img = '' menu_args_c.btn_size = (-8.6, 8.6, -.42, .98) self.menu = Menu(menu_args_c) page = InGamePage.init_cls()(menu_args_c, keys) page.gui.attach(self.on_ingame_back) page.gui.attach(self.on_ingame_exit) self.menu.push_page(page)
def __init__(self, mediator, menu_props, keys): GuiColleague.__init__(self, mediator) menu_props_c = deepcopy(menu_props) menu_props_c.background_img_path = '' menu_props_c.btn_size = (-8.6, 8.6, -.42, .98) self.menu = Menu(menu_props_c) page = InGamePage.init_cls()(menu_props_c, keys) page.gui.attach(self.on_ingame_back) page.gui.attach(self.on_ingame_exit) self.menu.push_page(page)
def __init__(self, mediator, rprops, loading, track_name_transl, ranking, players): GuiColleague.__init__(self, mediator) pbackground = 'assets/tracks/%s/images/loading%s.txo' pbackground = pbackground % (rprops.track_name, randint(1, 4)) menu_props = deepcopy(rprops.season_props.gameprops.menu_props) menu_props.background_img_path = pbackground self.menu = Menu(menu_props) self.menu.loading = loading self.menu.push_page( LoadingPage(rprops, self.menu, track_name_transl, ranking, players))
def destroy(self): self.hide() self.rank_menu = self.ranking_texts = self.background = None GuiColleague.destroy(self)
def destroy(self): self.rank_page.destroy() GuiColleague.destroy(self)
def destroy(self): self.menu = self.menu.destroy() GuiColleague.destroy(self)
def destroy(self): self.results.destroy() if self.minimap: self.minimap.destroy() # e.g. server has quit on loading GuiColleague.destroy(self)
def __init__(self, mediator, sprops): GuiColleague.__init__(self, mediator) self.buttons = self.background = None self.sprops = sprops self.txt = self.upg1_txt = self.upg2_txt = self.upg3_txt = \ self.hint1_txt = self.hint2_txt = self.hint3_txt = None
def __init__(self, mediator, menu_args): GuiColleague.__init__(self, mediator) self.menu = Menu(menu_args) self.menu.push_page(ExitPage(menu_args))
def __init__(self, mediator, menu_props): GuiColleague.__init__(self, mediator) self.menu = Menu(menu_props) self.menu.push_page(ExitPage(menu_props))