Example #1
0
 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)
Example #2
0
 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
Example #3
0
 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])
Example #4
0
 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)
Example #5
0
 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)
Example #6
0
File: menu.py Project: cflavio/yorg
 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)
Example #7
0
 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))
Example #8
0
 def destroy(self):
     self.hide()
     self.rank_menu = self.ranking_texts = self.background = None
     GuiColleague.destroy(self)
Example #9
0
 def destroy(self):
     self.rank_page.destroy()
     GuiColleague.destroy(self)
Example #10
0
 def destroy(self):
     self.menu = self.menu.destroy()
     GuiColleague.destroy(self)
Example #11
0
File: menu.py Project: cflavio/yorg
 def destroy(self):
     self.menu = self.menu.destroy()
     GuiColleague.destroy(self)
Example #12
0
 def destroy(self):
     self.results.destroy()
     if self.minimap: self.minimap.destroy()
     # e.g. server has quit on loading
     GuiColleague.destroy(self)
Example #13
0
 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
Example #14
0
 def __init__(self, mediator, menu_args):
     GuiColleague.__init__(self, mediator)
     self.menu = Menu(menu_args)
     self.menu.push_page(ExitPage(menu_args))
Example #15
0
File: menu.py Project: cflavio/yorg
 def __init__(self, mediator, menu_props):
     GuiColleague.__init__(self, mediator)
     self.menu = Menu(menu_props)
     self.menu.push_page(ExitPage(menu_props))