示例#1
0
 def Play(self, data):
     if data is None:
         return
     self.PlayIntro(data.get('introVideoPath', None))
     leftFrame = uicls.ScreenFrame5(parent=self,
                                    align=uiconst.TOLEFT,
                                    width=700)
     uicls.Sprite(
         name='plexLogo',
         parent=leftFrame.mainCont,
         align=uiconst.TOPLEFT,
         pos=(10, 30, 262, 326),
         texturePath='res:/UI/Texture/Classes/CQMainScreen/plexLogo.png')
     uicls.Label(name='heading',
                 parent=leftFrame.mainCont,
                 pos=(310, 20, 380, 0),
                 text=data.headingText,
                 fontsize=70,
                 uppercase=True,
                 bold=True)
     uicls.Label(name='subHeading',
                 parent=leftFrame.mainCont,
                 pos=(310, 85, 380, 0),
                 text=data.subHeadingText,
                 fontsize=35)
     greenCont = uicls.Container(name='trainCont',
                                 parent=leftFrame.mainCont,
                                 align=uiconst.TOPLEFT,
                                 bgColor=(0, 0.3, 0, 1.0),
                                 pos=(310, 143, 370, 50))
     uicls.Label(parent=greenCont,
                 text=data.buttonText,
                 fontsize=20,
                 align=uiconst.CENTER,
                 bold=True)
     uicls.Label(parent=leftFrame.mainCont,
                 pos=(10, 250, 690, 0),
                 text=data.mainText,
                 fontsize=35)
     leftFrame.mainCont.opacity = 0.0
     blue.synchro.SleepWallclock(300)
     uicore.animations.BlinkIn(leftFrame.mainCont, sleep=True)
     rightFrame = uicls.ScreenFrame1(parent=self,
                                     align=uiconst.TORIGHT,
                                     width=540)
     blue.synchro.SleepWallclock(300)
     self.auraSprite = uicls.Sprite(
         name='aura',
         parent=rightFrame.mainCont,
         texturePath='res:/UI/Texture/Classes/CQMainScreen/aura.png',
         align=uiconst.CENTER,
         width=470,
         height=470)
     uthread.new(BlinkSprite, self.auraSprite)
     blue.pyos.synchro.SleepWallclock(TEMPLATE_DURATION)
示例#2
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()
示例#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)
示例#4
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()
示例#5
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)
示例#6
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=845,
                                padRight=10)
     rightCont = uicls.ScreenFrame5(parent=self, align=uiconst.TOALL)
     headingCont = uicls.Container(parent=leftCont,
                                   align=uiconst.TOTOP,
                                   height=100,
                                   fontsize=50)
     fill = uicls.Fill(bgParent=headingCont, 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=headingCont,
                         text=data.headingText,
                         fontsize=80,
                         align=uiconst.CENTER,
                         color=util.Color.WHITE,
                         uppercase=True,
                         bold=True)
     frame = uicls.ScreenFrame1(parent=leftCont,
                                align=uiconst.TOALL,
                                appear=True,
                                padTop=10)
     frame.mainCont.padTop = 70
     banner = uicls.TextBanner(parent=frame.mainCont,
                               align=uiconst.TOBOTTOM,
                               padTop=10,
                               scrollText=False,
                               text=data.bottomText,
                               fontSize=30,
                               leftContWidth=310)
     uicls.Sprite(
         parent=banner.leftCont,
         pos=(10, -20, 300, 100),
         texturePath='res:/UI/Texture/Classes/CQMainScreen/concordLogo.png')
     uicls.Label(parent=frame.mainCont,
                 left=20,
                 top=0,
                 text=localization.GetByLabel('UI/Common/Constellation'),
                 fontsize=30)
     uicls.Label(parent=frame.mainCont,
                 left=20,
                 top=30,
                 text=data.constellationText,
                 fontsize=45)
     uicls.Label(
         parent=frame.mainCont,
         left=280,
         top=0,
         text=localization.GetByLabel('UI/Incursion/Journal/StagingSystem'),
         fontsize=30)
     uicls.Label(parent=frame.mainCont,
                 left=280,
                 top=30,
                 text=data.systemInfoText,
                 fontsize=45)
     uicls.Label(parent=frame.mainCont,
                 left=20,
                 top=140,
                 text=localization.GetByLabel(
                     'UI/Incursion/Common/HUDInfluenceTitle'),
                 fontsize=30)
     influenceBar = uicls.SystemInfluenceBar(parent=frame.mainCont,
                                             align=uiconst.TOPLEFT,
                                             pos=(20, 180, 700, 60))
     influenceBar.SetInfluence(data.influence, True)
     uicore.animations.BlinkIn(frame.mainCont, sleep=True)
     video = uicls.VideoSprite(parent=rightCont.mainCont,
                               videoPath=data.videoPath,
                               align=uiconst.TOALL,
                               repeat=True,
                               positionComponent=getattr(
                                   self.uiDesktop, 'positionComponent',
                                   None))
     while not video.isFinished:
         blue.synchro.Yield()