Ejemplo n.º 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
Ejemplo n.º 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])
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 5
0
Archivo: menu.py Proyecto: 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)
Ejemplo n.º 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))
Ejemplo n.º 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
Ejemplo n.º 8
0
 def __init__(self, mediator, menu_args):
     GuiColleague.__init__(self, mediator)
     self.menu = Menu(menu_args)
     self.menu.push_page(ExitPage(menu_args))
Ejemplo n.º 9
0
Archivo: menu.py Proyecto: cflavio/yorg
 def __init__(self, mediator, menu_props):
     GuiColleague.__init__(self, mediator)
     self.menu = Menu(menu_props)
     self.menu.push_page(ExitPage(menu_props))