Пример #1
0
	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)
Пример #2
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, 0.5)
        else:
            # remove all the leaderboard and achievement buttons
            scoring = self.root.ids.scoring
            scoring.parent.remove_widget(scoring)
Пример #3
0
Файл: main.py Проект: zqqqq/2048
    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)
Пример #4
0
Файл: main.py Проект: diess/2048
    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
Пример #5
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])
Пример #6
0
Файл: main.py Проект: zqqqq/2048
 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)
Пример #7
0
Файл: main.py Проект: diess/2048
 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)
Пример #8
0
 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)