Ejemplo n.º 1
0
 def Play(self, data):
     if data is None:
         return
     self.PlayIntro(data.get('introVideoPath', None))
     leftFrame = uicls.ScreenFrame1(parent=self,
                                    align=uiconst.TOPLEFT,
                                    pos=(60, 50, 400, 400))
     uiutil.GetOwnerLogo(leftFrame.mainCont, data.oldOwnerID, size=400)
     blue.pyos.synchro.SleepWallclock(100)
     uicore.animations.FadeIn(leftFrame.mainCont, duration=0.1, loops=3)
     rightFrame = uicls.ScreenFrame1(parent=self,
                                     align=uiconst.TOPRIGHT,
                                     pos=(60, 50, 400, 400))
     uiutil.GetOwnerLogo(rightFrame.mainCont, data.newOwnerID, size=400)
     uicore.animations.FadeIn(rightFrame.mainCont, duration=0.1, loops=3)
     text = '<center>' + localization.GetByLabel(
         'UI/Station/Holoscreen/SOV/SovereigntyChange') + '<center>'
     headingLabel = uicls.Label(parent=self,
                                text=text,
                                align=uiconst.CENTER,
                                bold=True,
                                color=util.Color.WHITE,
                                fontsize=40,
                                pos=(0, -120, 300, 0))
     uicore.animations.BlinkIn(headingLabel)
     text = '<center>' + data.middleText + '<center>'
     label = uicls.Label(parent=self,
                         text=text,
                         align=uiconst.CENTER,
                         bold=True,
                         fontsize=25,
                         pos=(0, -20, 230, 0))
     uicore.animations.BlinkIn(label)
     banner = uicls.TextBanner(parent=self,
                               align=uiconst.TOBOTTOM,
                               padTop=10,
                               scrollText=False,
                               text=data.bottomText,
                               fontSize=30,
                               leftContWidth=310)
     uicls.Sprite(
         parent=banner.leftCont,
         pos=(30, -20, 252, 114),
         texturePath='res:/UI/Texture/Classes/CQMainScreen/scopeNewsLogo.png'
     )
     uicore.animations.BlinkIn(banner)
     blue.pyos.synchro.SleepWallclock(TEMPLATE_DURATION)
Ejemplo n.º 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()
Ejemplo n.º 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)
Ejemplo n.º 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=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()