예제 #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)
예제 #2
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)
예제 #3
0
 def Play(self, data):
     if data is None:
         return
     top = uicls.Container(parent=self, align=uiconst.TOTOP, height=200)
     bottom = uicls.Container(parent=self)
     sf = uicls.ScreenFrame1(parent=top,
                             align=uiconst.TOLEFT,
                             width=200,
                             padding=10,
                             wedgeWidth=10)
     blue.pyos.synchro.SleepWallclock(30)
     sf = uicls.ScreenFrame2(parent=top, padding=10)
     blue.pyos.synchro.SleepWallclock(30)
     blue.pyos.synchro.SleepWallclock(3000)
     blue.pyos.synchro.SleepWallclock(TEMPLATE_DURATION)
예제 #4
0
    def ApplyAttributes(self, attributes):
        uiprimitives.Container.ApplyAttributes(self, attributes)
        self.entityID = attributes.entityID
        self.cursor = uiconst.UICURSOR_SELECT
        self.hoverFill = uiprimitives.Fill(parent=self, color=(1.0, 1.0, 1.0, 0.0), padding=-50)
        uicls.ScreenFrame1(parent=self, align=uiconst.TOALL, padding=10)
        self.circles = []
        for i in xrange(1, 5):
            transform = uiprimitives.Transform(parent=self, align=uiconst.CENTER, state=uiconst.UI_DISABLED, width=540, height=540, top=-26)
            circle = uiprimitives.Sprite(parent=transform, texturePath='res:/UI/Texture/Classes/CQSideScreens/circle%s.png' % i, align=uiconst.TOALL)
            self.circles.append(transform)

        self.hoverLabel = uicontrols.Label(name='hoverLabel', parent=self, text=localization.GetByLabel('UI/Common/LocationTypes/Planets'), align=uiconst.CENTERBOTTOM, top=60, uppercase=True, fontsize=35, state=uiconst.UI_DISABLED, color=util.Color.WHITE)
        self.hoverLabel.opacity = 0.0
        self.bgSprite = uiprimitives.Sprite(parent=self, texturePath='res:/UI/Texture/Classes/CQSideScreens/PIScreenBG.png', align=uiconst.TOALL, state=uiconst.UI_DISABLED, padding=-50)
        uthread.new(self.AnimCircles)
예제 #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=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()