def Play(self, data): if data is None: return self.PlayIntro(data.get('introVideoPath', None)) leftFrame = uicls.ScreenFrame5(parent=self, align=uiconst.TOPLEFT, pos=(80, 50, 450, 450)) self.auraSprite = uicls.Sprite( name='aura', parent=leftFrame.mainCont, texturePath='res:/UI/Texture/Classes/CQMainScreen/aura.png', align=uiconst.TOALL) uthread.new(BlinkSprite, self.auraSprite) rightFrame = uicls.ScreenFrame2(parent=self, align=uiconst.TOPRIGHT, pos=(80, 50, 550, 300)) blue.pyos.synchro.SleepWallclock(600) uicore.animations.BlinkIn(rightFrame.mainCont) rightFrame.mainCont.padTop = 30 rightFrame.mainCont.padLeft = 30 rightFrame.mainCont.padRight = 30 lblHead = uicls.Label(parent=rightFrame.mainCont, text=data.headingText, fontsize=50, align=uiconst.TOTOP, uppercase=True, bold=True) lblBody = uicls.Label(parent=rightFrame.mainCont, text=data.subHeadingText, fontsize=35, align=uiconst.TOTOP, padTop=10) rightFrame.height = lblHead.height + lblBody.height + 65 blue.pyos.synchro.SleepWallclock(TEMPLATE_DURATION)
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)
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()
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)