예제 #1
0
    def LoadNextImage(self):
        if self.cacheExists:
            start = time.time()
            end = start
            while end - start < .02:
                notdone = Resources.ImageLibrary.LoadNextCache()
                progress = Resources.ImageLibrary.CacheLoadProgress()
                if notdone and progress == 100:
                    progress = 99

                end = time.time()

        else:
            progress = GamePlay.LoadNextThing()
        return progress