Exemplo n.º 1
0
 def __reset(self):
     self.state = ''
     GameData.reset_match()
     self.score = GameData.get_score()
     self.set_custom_text('00:00')
     self.ids.topbar.customlabel.opacity = 1
     self.ids.btnSubmit.blocking = False
     container = self.ids.kickoff_ball.parent
     self.ids.kickoff_ball.pos = (container.x + container.width / 2.0, container.y + container.height)
     self.score_touch = None
     self.players = [{}] * 4
     self.kickoff_team = -1
     self.elo = 0.0
     Clock.unschedule(self.__update_match_timer)
     Clock.unschedule(self.__animate_kickoff)
Exemplo n.º 2
0
 def __reset(self):
     self.state = ''
     GameData.reset_match()
     self.update_match()
     self.set_custom_text('')
     self.timer_mode_elapsed_time = True
     self.ids.btnSubmit.blocking = False
     container = self.ids.kickoff_ball.parent
     self.ids.kickoff_ball.pos = (container.x + container.width / 2.0, container.y + container.height)
     self.score_touch = None
     self.players = [{}] * 4
     self.kickoff_team = -1
     self.elo = 0.0
     Clock.unschedule(self.__update_timer_view)
     Clock.unschedule(self.__animate_kickoff)