Exemple #1
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
Exemple #2
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])
Exemple #3
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)
Exemple #4
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)
Exemple #5
0
 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)
Exemple #6
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))
Exemple #7
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
Exemple #8
0
 def __init__(self, mediator, menu_args):
     GuiColleague.__init__(self, mediator)
     self.menu = Menu(menu_args)
     self.menu.push_page(ExitPage(menu_args))
Exemple #9
0
 def __init__(self, mediator, menu_props):
     GuiColleague.__init__(self, mediator)
     self.menu = Menu(menu_props)
     self.menu.push_page(ExitPage(menu_props))