Example #1
0
 def Play(self, data):
     if data is None:
         return
     self.PlayIntro(data.get('introVideoPath', None))
     self.leftCont = uicls.Container(parent=self,
                                     align=uiconst.TOLEFT,
                                     width=640,
                                     padRight=10)
     self.rightCont = uicls.ScreenFrame5(parent=self, align=uiconst.TOALL)
     headingCont = uicls.Container(parent=self.leftCont,
                                   align=uiconst.TOTOP,
                                   height=100,
                                   bgColor=(0.35, 0.35, 0.35, 1.0))
     uicls.Label(parent=headingCont,
                 text=data.headingText,
                 fontsize=80,
                 align=uiconst.CENTER,
                 color=util.Color.WHITE,
                 uppercase=True,
                 bold=True)
     blue.pyos.synchro.SleepWallclock(300)
     uicls.ScreenHeading2(parent=self.leftCont,
                          appear=True,
                          align=uiconst.TOTOP,
                          text=data.subHeadingText)
     frame = uicls.ScreenFrame4(parent=self.leftCont,
                                align=uiconst.TOALL,
                                appear=True,
                                padTop=10)
     frame.mainCont.padLeft = 30
     frame.mainCont.padTop = 20
     uicls.Label(name='charNameLabel',
                 parent=frame.mainCont,
                 text=cfg.eveowners.Get(data.charID).name,
                 fontsize=35,
                 left=290)
     pictureCont = uicls.Container(align=uiconst.TOPLEFT,
                                   parent=frame.mainCont,
                                   pos=(0, 8, 256, 256))
     uicls.Frame(parent=pictureCont, color=util.Color.WHITE)
     uiutil.GetOwnerLogo(pictureCont, data.charID, size=256)
     uicls.EveLabelMedium(name='mainTextLabel',
                          parent=frame.mainCont,
                          pos=(290, 45, 300, 0),
                          text=data.mainText)
     video = uicls.VideoSprite(parent=self.rightCont.mainCont,
                               videoPath=data.careerVideoPath,
                               align=uiconst.TOALL,
                               repeat=True,
                               positionComponent=getattr(
                                   self.uiDesktop, 'positionComponent',
                                   None))
     while not video.isFinished:
         blue.synchro.Yield()
Example #2
0
 def Play(self, data):
     if data is None:
         return
     self.PlayIntro(data.get('introVideoPath', None))
     frame = uicls.ScreenFrame4(parent=self, align=uiconst.TOALL)
     blue.pyos.synchro.SleepWallclock(300)
     video = uicls.VideoSprite(parent=frame.mainCont,
                               videoPath=data.videoPath,
                               align=uiconst.TOALL,
                               positionComponent=getattr(
                                   self.uiDesktop, 'positionComponent',
                                   None))
     uicore.animations.BlinkIn(frame.mainCont, loops=4)
     while not video.isFinished:
         blue.synchro.Yield()
Example #3
0
 def Play(self, data):
     if data is None:
         return
     self.PlayIntro(data.get('introVideoPath', None))
     banner = uicls.TextBanner(parent=self,
                               align=uiconst.TOBOTTOM,
                               padTop=10,
                               scrollText=False,
                               text=data.bottomText,
                               fontSize=35,
                               leftContWidth=310)
     uicls.Sprite(
         parent=banner.leftCont,
         pos=(10, -20, 300, 100),
         texturePath='res:/UI/Texture/Classes/CQMainScreen/concordLogo.png')
     uicore.animations.BlinkIn(banner, sleep=True)
     iconFrame = uicls.ScreenFrame5(parent=self,
                                    align=uiconst.TOPLEFT,
                                    pos=(100, 10, 450, 450),
                                    appear=True)
     blue.pyos.synchro.SleepWallclock(300)
     uiutil.GetOwnerLogo(iconFrame.mainCont, data.charID, size=512)
     icon = iconFrame.mainCont.children[0]
     icon.width = icon.height = 0
     icon.align = uiconst.TOALL
     if data.isWanted:
         wantedCont = uicls.Container(parent=iconFrame.mainCont,
                                      align=uiconst.BOTTOMLEFT,
                                      width=iconFrame.width,
                                      height=90,
                                      idx=0)
         fill = uicls.Fill(bgParent=wantedCont, color=(1.0, 0.0, 0.0, 0.5))
         uicore.animations.FadeTo(fill,
                                  startVal=0.5,
                                  endVal=0.2,
                                  duration=1.0,
                                  loops=uiconst.ANIM_REPEAT)
         label = uicls.Label(parent=wantedCont,
                             text=data.wantedHeading,
                             fontsize=50,
                             align=uiconst.CENTERTOP,
                             color=util.Color.WHITE,
                             bold=True)
     uicore.animations.SpGlowFadeOut(icon,
                                     duration=0.1,
                                     loops=3,
                                     sleep=True)
     frame = uicls.ScreenFrame4(parent=self,
                                align=uiconst.TOPRIGHT,
                                pos=(100, 50, 500, 400),
                                appear=True)
     blue.pyos.synchro.SleepWallclock(300)
     uicls.Fill(bgParent=frame.mainCont, color=BG_GRAY)
     uicls.Label(name='heading',
                 parent=frame.mainCont,
                 text=data.heading,
                 fontsize=40,
                 left=20,
                 top=20,
                 uppercase=True,
                 bold=True)
     uicls.EveLabelMedium(name='mainTextLabel',
                          parent=frame.mainCont,
                          pos=(20, 70, 480, 0),
                          text=data.mainText)
     uicore.animations.BlinkIn(frame.mainCont)
     if data.isWanted:
         label = uicls.Label(parent=frame.mainCont,
                             text=data.wantedText,
                             fontsize=45,
                             top=-50,
                             color=(0.6, 0.0, 0.0, 1.0),
                             bold=True)
     blue.pyos.synchro.SleepWallclock(TEMPLATE_DURATION)
Example #4
0
 def Play(self, data):
     if data is None:
         return
     self.PlayIntro(data.get('introVideoPath', None))
     leftCont = uicls.Container(parent=self,
                                align=uiconst.TOLEFT,
                                width=500,
                                padRight=10)
     topLeftCont = uicls.ScreenFrame4(parent=leftCont,
                                      align=uiconst.TOTOP,
                                      height=200)
     blue.pyos.synchro.SleepWallclock(600)
     uicore.animations.BlinkIn(topLeftCont.mainCont)
     topLeftCont.mainCont.padTop = 15
     topLeftCont.mainCont.padLeft = 20
     uicls.Label(parent=topLeftCont.mainCont,
                 text=data.shipName,
                 fontsize=60,
                 align=uiconst.TOTOP)
     uicls.Label(parent=topLeftCont.mainCont,
                 text=data.shipGroupName,
                 fontsize=30,
                 align=uiconst.TOTOP,
                 padTop=-10)
     trainCont = uicls.Container(name='trainCont',
                                 parent=topLeftCont.mainCont,
                                 align=uiconst.BOTTOMLEFT,
                                 bgColor=(0, 0.3, 0, 1.0),
                                 pos=(0, 20, 270, 50))
     uicls.Label(parent=trainCont,
                 text=data.buttonText,
                 fontsize=20,
                 align=uiconst.CENTER,
                 bold=True)
     bottomFrame = uicls.ScreenFrame2(parent=leftCont,
                                      align=uiconst.TOALL,
                                      padTop=10)
     bottomFrame.mainCont.clipChildren = True
     bottomFrame.mainCont.padBottom = 5
     bottomFrame.mainCont.padTop = 15
     blue.pyos.synchro.SleepWallclock(300)
     label = uicls.EveLabelMedium(parent=bottomFrame.mainCont,
                                  text=data.mainText,
                                  width=480,
                                  align=uiconst.CENTERTOP,
                                  top=40)
     label.opacity = 0.0
     uicore.animations.BlinkIn(label, sleep=True)
     w, h = bottomFrame.GetAbsoluteSize()
     if label.height + label.top > h:
         endVal = h - (label.height + label.top)
         endVal = min(-100, endVal)
         uicore.animations.MorphScalar(obj=label,
                                       attrName='top',
                                       startVal=label.top,
                                       endVal=endVal,
                                       duration=TEMPLATE_DURATION / 1000.0 +
                                       1.0,
                                       curveType=uiconst.ANIM_LINEAR)
     rightFrame = uicls.ScreenFrame5(parent=self, align=uiconst.TOALL)
     fill = uicls.Fill(parent=rightFrame.mainCont,
                       color=(0.5, 0.5, 0.5, 1.0))
     uicore.animations.FadeIn(fill, sleep=True)
     uicls.Scene3dCont(parent=rightFrame.mainCont,
                       typeID=data.shipTypeID,
                       opacity=0.0,
                       duration=TEMPLATE_DURATION / 1000.0)
     blue.pyos.synchro.SleepWallclock(100)
     uicore.animations.BlinkOut(fill, sleep=True)
     blue.pyos.synchro.SleepWallclock(TEMPLATE_DURATION)