예제 #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()
예제 #2
0
 def Play(self, data):
     if data is None:
         return
     self.PlayIntro(data.get('introVideoPath', None))
     uicls.TextBanner(parent=self,
                      align=uiconst.TOBOTTOM,
                      height=100,
                      text=data.bottomText)
     rightCont = uicls.ScreenFrame5(parent=self,
                                    align=uiconst.TORIGHT,
                                    width=700,
                                    padLeft=10,
                                    padBottom=10)
     blue.pyos.synchro.SleepWallclock(300)
     topLeftCont = uicls.ScreenFrame2(parent=self,
                                      align=uiconst.TOTOP,
                                      height=300)
     bottomLeftCont = uicls.ScreenHeading1(parent=self,
                                           align=uiconst.TOALL,
                                           pos=(0, 0, 0, 0),
                                           padTop=10,
                                           padBottom=10,
                                           leftContWidth=150,
                                           appear=False)
     blue.pyos.synchro.SleepWallclock(300)
     uicls.ScreenHeading2(
         parent=topLeftCont.mainCont,
         text=localization.GetByLabel(
             'UI/Station/Holoscreen/RacialEpicArc/EpicArcAgent'),
         align=uiconst.TOBOTTOM,
         hasBargraph=False,
         padBottom=10,
         padRight=10)
     topLeftCont.mainCont.padLeft = 30
     topLeftCont.mainCont.padTop = 15
     pictureCont = uicls.Container(align=uiconst.TOPLEFT,
                                   parent=topLeftCont.mainCont,
                                   pos=(0, 20, 180, 180))
     uicls.Frame(parent=pictureCont, color=util.Color.WHITE)
     uiutil.GetOwnerLogo(pictureCont, data.charID, size=256)
     logo = pictureCont.children[1]
     logo.align = uiconst.TOALL
     logo.width = logo.height = 0
     uicls.Label(name='charNameLabel',
                 parent=topLeftCont.mainCont,
                 text=cfg.eveowners.Get(data.charID).name,
                 fontsize=50,
                 left=200,
                 top=20,
                 color=util.Color.WHITE)
     uicls.EveLabelMedium(name='charLocationLabel',
                          parent=topLeftCont.mainCont,
                          pos=(200, 75, 300, 0),
                          text=data.mainText)
     uicore.animations.BlinkIn(topLeftCont.mainCont)
     uiutil.GetOwnerLogo(bottomLeftCont.leftCont, data.factionID, size=150)
     icon = bottomLeftCont.leftCont.children[0]
     icon.align = uiconst.CENTER
     uicls.Label(parent=bottomLeftCont.mainCont,
                 text=data.factionNameText,
                 fontsize=42,
                 top=30,
                 left=15)
     uicls.Label(
         parent=bottomLeftCont.mainCont,
         text=localization.GetByLabel('UI/Agents/MissionTypes/EpicArc'),
         fontsize=30,
         top=80,
         left=15)
     bottomLeftCont.AnimAppear()
     video = uicls.VideoSprite(parent=rightCont.mainCont,
                               videoPath=data.videoPath,
                               align=uiconst.TOALL,
                               positionComponent=getattr(
                                   self.uiDesktop, 'positionComponent',
                                   None))
     while not video.isFinished:
         blue.synchro.Yield()