def ApplyAttributes(self, attributes):
     uicontrols.SE_BaseClassCore.ApplyAttributes(self, attributes)
     self.iconsize = iconsize = 44
     LineThemeColored(parent=self, align=uiconst.TOBOTTOM)
     self.factionParent = uiprimitives.Container(name='factionParent', parent=self, align=uiconst.TOLEFT, pos=(0, 0, 64, 64), padding=MARGIN)
     middleCont = uiprimitives.Container(parent=self, name='middleContainer', width=MIDDLECONTAINER_WIDTH, align=uiconst.TOLEFT, padTop=MARGIN, clipChildren=True)
     self.constellationLabel = BigReportLabel(name='constellationName', parent=middleCont, fontsize=20, align=uiconst.TOTOP, state=uiconst.UI_NORMAL)
     self.statusText = SmallReportLabel(parent=middleCont, align=uiconst.TOTOP, uppercase=True)
     SmallReportLabel(name='systemInfluence', parent=middleCont, align=uiconst.TOTOP, text=localization.GetByLabel('UI/Incursion/Common/HUDInfluenceTitle'))
     self.statusBar = uicls.SystemInfluenceBar(parent=middleCont, pos=(0, 0, 200, 10), align=uiconst.TOTOP, padding=(0, 4, 0, 4))
     self.stagingText = SmallReportLabel(parent=middleCont, align=uiconst.TOTOP, state=uiconst.UI_NORMAL)
     self.bossIcon = uicls.IncursionBossIcon(parent=middleCont, left=3, top=3, align=uiconst.TOPRIGHT, idx=0)
     btn = uix.GetBigButton(iconsize, self, left=self.BUTTON_OFFSET, top=MARGIN, align=uiconst.BOTTOMLEFT)
     btn.hint = localization.GetByLabel('UI/Incursion/Journal/ShowActiveCorpMembersInMap')
     btn.sr.icon.LoadIcon('res:/ui/Texture/WindowIcons/corpmap.png', ignoreSize=True)
     self.corpMapButton = btn
     btn = uix.GetBigButton(iconsize, self, left=self.BUTTON_OFFSET + 50, top=MARGIN, align=uiconst.BOTTOMLEFT)
     btn.hint = localization.GetByLabel('UI/Incursion/Journal/ShowOnStarMap')
     btn.sr.icon.LoadIcon('res:/ui/Texture/WindowIcons/map.png', ignoreSize=True)
     self.mapButton = btn
     btn = uix.GetBigButton(iconsize, self, left=self.BUTTON_OFFSET + 100, top=MARGIN, align=uiconst.BOTTOMLEFT)
     btn.hint = localization.GetByLabel('UI/Incursion/Journal/StagingAsAutopilotDestination')
     btn.sr.icon.LoadIcon('res:/ui/Texture/WindowIcons/ships.png', ignoreSize=True)
     self.autopilotButton = btn
     btn = uix.GetBigButton(iconsize, self, left=self.BUTTON_OFFSET, top=MARGIN)
     btn.hint = localization.GetByLabel('UI/Incursion/Journal/ViewLoyaltyPointLog')
     btn.sr.icon.LoadIcon('res:/ui/Texture/WindowIcons/lpstore.png', ignoreSize=True)
     self.lpButton = btn
     self.loyaltyPoints = ReportNumber(name='loyaltyPoints', parent=self, pos=(self.BUTTON_OFFSET + 50,
      MARGIN,
      105,
      iconsize), number=0, hint=localization.GetByLabel('UI/Incursion/Journal/LoyaltyPointsWin'), padding=(4, 4, 4, 4))
示例#2
0
 def ApplyAttributes(self, attributes):
     uicls.InfoPanelBase.ApplyAttributes(self, attributes)
     sm.RegisterNotify(self)
     self.lastInfluence = None
     self.headerTextCont = uiprimitives.Container(name='headerTextCont', parent=self.headerCont, align=uiconst.TOALL)
     self.title = self.headerCls(name='title', text='<color=white url=localsvc:service=journal&method=ShowIncursionTab&constellationID=%d&open=1>%s</url>' % (session.constellationid, localization.GetByLabel(self.label)), parent=self.headerTextCont, align=uiconst.CENTERLEFT, state=uiconst.UI_NORMAL)
     self.subTitle = uicontrols.EveHeaderMedium(name='subtitle', parent=self.headerTextCont, left=self.title.width + 4, align=uiconst.CENTERLEFT, state=uiconst.UI_NORMAL, top=3)
     self.finalEncounterIcon = IncursionFinalEncounterIcon(name='finalEncounterIcon', parent=self.headerCont, align=uiconst.CENTERRIGHT, left=8)
     self.headerInfluenceBar = uicls.SystemInfluenceBar(parent=self.headerCont, state=uiconst.UI_HIDDEN, align=uiconst.TOALL, height=0, padding=(0, 6, 24, 6))
     self.headerInfluenceBar.OnClick = self.topCont.OnClick
     self.headerInfluenceBar.OnMouseEnter = self.topCont.OnMouseEnter
     self.headerInfluenceBar.OnMouseExit = self.topCont.OnMouseExit
     self.influenceBar = uicls.SystemInfluenceBar(parent=self.mainCont, padding=(0, 0, 0, 2))
     self.bottomContainer = uiprimitives.Container(name='bottomContainer', parent=self.mainCont, align=uiconst.TOTOP, height=33)
     self.severityIcon = uicontrols.Icon(name='severityIcon', parent=self.bottomContainer, align=uiconst.RELATIVE, color=COLOR_ENABLED, pos=(0, 10, 32, 32), ignoreSize=True, size=48, state=uiconst.UI_NORMAL)
     self.corpIcon = uicontrols.Icon(name='corpIcon', parent=self.bottomContainer, align=uiconst.RELATIVE, color=COLOR_ENABLED, pos=(35, 10, 32, 32), ignoreSize=True, size=48, state=uiconst.UI_NORMAL)
     iconCont = uicontrols.ContainerAutoSize(name='iconCont', parent=self.bottomContainer, align=uiconst.CENTERLEFT, pos=(70, 0, 0, 22))
     iconParams = {'align': uiconst.TOLEFT,
      'parent': iconCont,
      'color': COLOR_ENABLED,
      'width': iconCont.height,
      'padRight': 6}
     self.effects = self._GetEffectsForTale(iconParams)
     uthread.new(self.UpdateInfluenceThread)
示例#3
0
 def ApplyAttributes(self, attributes):
     uicls.InfoPanelBase.ApplyAttributes(self, attributes)
     sm.RegisterNotify(self)
     self.lastInfluence = None
     self.headerTextCont = uiprimitives.Container(name='headerTextCont',
                                                  parent=self.headerCont,
                                                  align=uiconst.TOALL)
     self.title = self.headerCls(
         name='title',
         text=
         '<color=white url=localsvc:service=journal&method=ShowIncursionTab&constellationID=%d&open=1>%s</url>'
         % (session.constellationid, localization.GetByLabel(self.label)),
         parent=self.headerTextCont,
         align=uiconst.CENTERLEFT,
         state=uiconst.UI_NORMAL)
     self.subTitle = uicontrols.EveHeaderMedium(name='subtitle',
                                                parent=self.headerTextCont,
                                                left=self.title.width + 4,
                                                align=uiconst.CENTERLEFT,
                                                state=uiconst.UI_NORMAL,
                                                top=3)
     self.bossIcon = uicls.IncursionBossIcon(name='bossIcon',
                                             parent=self.headerCont,
                                             align=uiconst.CENTERRIGHT,
                                             left=8)
     self.headerInfluenceBar = uicls.SystemInfluenceBar(
         parent=self.headerCont,
         state=uiconst.UI_HIDDEN,
         align=uiconst.TOALL,
         height=0,
         padding=(0, 6, 24, 6))
     self.headerInfluenceBar.OnClick = self.topCont.OnClick
     self.headerInfluenceBar.OnMouseEnter = self.topCont.OnMouseEnter
     self.headerInfluenceBar.OnMouseExit = self.topCont.OnMouseExit
     self.influenceBar = uicls.SystemInfluenceBar(parent=self.mainCont,
                                                  padding=(0, 0, 0, 2))
     self.bottomContainer = uiprimitives.Container(name='bottomContainer',
                                                   parent=self.mainCont,
                                                   align=uiconst.TOTOP,
                                                   height=33)
     self.severityIcon = uicontrols.Icon(name='severityIcon',
                                         parent=self.bottomContainer,
                                         align=uiconst.RELATIVE,
                                         color=COLOR_ENABLED,
                                         pos=(0, 0, 32, 32),
                                         ignoreSize=True,
                                         size=48,
                                         state=uiconst.UI_NORMAL)
     iconCont = uicontrols.ContainerAutoSize(name='iconCont',
                                             parent=self.bottomContainer,
                                             align=uiconst.CENTERLEFT,
                                             pos=(45, 0, 0, 22))
     iconParams = {
         'align': uiconst.TOLEFT,
         'parent': iconCont,
         'color': COLOR_ENABLED,
         'width': iconCont.height,
         'padRight': 6
     }
     self.effects = [
         uiprimitives.Sprite(
             name='effectIcon_cyno',
             texturePath=
             'res:/UI/Texture/classes/InfluenceBar/effectCyno.png',
             hint=localization.GetByLabel(
                 'UI/Incursion/HUD/SystemEffectCynoHint'),
             **iconParams),
         uiprimitives.Sprite(
             name='effectIcon_tax',
             texturePath=
             'res:/UI/Texture/classes/InfluenceBar/effectTax.png',
             hint=localization.GetByLabel(
                 'UI/Incursion/HUD/SystemEffectTaxHint'),
             **iconParams),
         uiprimitives.Sprite(
             name='effectIcon_tank',
             texturePath=
             'res:/UI/Texture/classes/InfluenceBar/effectResistance.png',
             hint=localization.GetByLabel(
                 'UI/Incursion/HUD/SystemEffectTankingHint'),
             **iconParams),
         uiprimitives.Sprite(
             name='effectIcon_damage',
             texturePath=
             'res:/UI/Texture/classes/InfluenceBar/effectDamage.png',
             hint=localization.GetByLabel(
                 'UI/Incursion/HUD/SystemEffectDamageHint'),
             **iconParams)
     ]
     uthread.new(self.UpdateInfluenceThread)
示例#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()