def getIntroVideoData(self):
     from bootcamp.Bootcamp import g_bootcamp
     video = ''
     background = ''
     if self.isVideoPlayingLesson:
         video = 'video/_tutorialInitial.usm'
         background = RES_ICONS.MAPS_ICONS_BOOTCAMP_LOADING_INTROLOADING
     bootcampParameters = g_bootcamp.getParameters()
     autoStart = bootcampParameters.get('introAutoStart', False)
     skipOption = g_bootcamp.getContext().get('skipBootcampOption', False)
     if BattleReplay.isPlaying():
         autoStart = True
         skipOption = False
     introVideoData = {
         'backgroundImage': background,
         'video': video,
         'autoStart': autoStart,
         'lessonNumber': self.__lessonId,
         'tutorialPages': g_bootcamp.getBattleLoadingPages(),
         'skipOption': skipOption
     }
     return introVideoData
Beispiel #2
0
 def getIntroVideoData(self):
     from bootcamp.Bootcamp import g_bootcamp
     video = ''
     background = ''
     if self.__lessonId == 0:
         if not g_bootcamp.isIntroVideoPlayed():
             video = 'video/_tutorialInitial.usm'
         background = '../maps/bootcamp/loading/introLoading.png'
     autoStart = False
     bootcampParameters = g_bootcamp.getParameters()
     if bootcampParameters.has_key('introAutoStart'):
         autoStart = bootcampParameters['introAutoStart']
     if BattleReplay.isPlaying():
         autoStart = True
     introVideoData = {
         'backgroundImage': background,
         'video': video,
         'autoStart': autoStart,
         'lessonNumber': self.__lessonId,
         'tutorialPages': g_bootcamp.getBattleLoadingPages()
     }
     return introVideoData
Beispiel #3
0
 def needAwarding(self):
     return g_bootcamp.getParameters().get('needAwarding', False)
Beispiel #4
0
 def runCount(self):
     return g_bootcamp.getParameters().get('runCount', 0)
Beispiel #5
0
 def hasFinishedBootcampBefore(self):
     return g_bootcamp.getParameters().get('completed', 0) > 0