def setup_ui(self): print "---in setup_ui" if platform == 'android': self.use_google_play = self.config.getint('play', 'use_google_play') if self.use_google_play: gs_android.setup(self.app) else: Clock.schedule_once(self.ask_google_play, .5) else: # remove all the leaderboard and achievement buttons scoring = self.app.root.ids.scoring scoring.parent.remove_widget(scoring)
def build(self): global app app = self if platform == "android": self.use_google_play = self.config.getint("play", "use_google_play") if self.use_google_play: gs_android.setup(self) else: Clock.schedule_once(self.ask_google_play, 0.5) else: # remove all the leaderboard and achievement buttons scoring = self.root.ids.scoring scoring.parent.remove_widget(scoring)
def build(self): global app app = self if platform == 'android': self.use_google_play = self.config.getint('play', 'use_google_play') if self.use_google_play: gs_android.setup(self) else: Clock.schedule_once(self.ask_google_play, .5) else: # remove all the leaderboard and achievement buttons scoring = self.root.ids.scoring scoring.parent.remove_widget(scoring)
def build(self): global app app = self if platform == 'android': self.use_google_play = self.config.getint('play', 'use_google_play') if self.use_google_play: gs_android.setup(self) else: Clock.schedule_once(self.ask_google_play, .5) else: # remove all the leaderboard and achievement buttons scoring = self.root.ids.scoring scoring.parent.remove_widget(scoring) self.ai_api = Game2048AI(self.root.ids.game) self.root.ids.tempo_controls.opacity = 0
def build(self): global app app = self if platform == 'android': self.use_google_play = self.config.getint('play', 'use_google_play') if self.use_google_play: gs_android.setup(self) else: Clock.schedule_once(self.ask_google_play, .5) else: # remove all the leaderboard and achievement buttons scoring = self.root.ids.scoring scoring.parent.remove_widget(scoring) Clock.schedule_interval(self.ai_move, .1) Game2048App.saver.restore(Game2048App.sess, sys.argv[1])
def activate_google_play(self): self.config.set('play', 'use_google_play', '1') self.config.write() self.use_google_play = 1 gs_android.setup(self)
def activate_google_play(self): self.config.set("play", "use_google_play", "1") self.config.write() self.use_google_play = 1 gs_android.setup(self)