コード例 #1
0
    def _ShowInvContLoadingWheel(self):
        blue.synchro.SleepWallclock(500)
        wheel = uicls.LoadingWheel(parent=self.loadingCont, align=uiconst.CENTER)
        while self.loading:
            blue.synchro.Yield()

        wheel.Close()
コード例 #2
0
 def OnRefreshScreen(self):
     if self._IsSelectionScreenDisabled():
         return
     uicore.registry.SetFocus(self)
     self.ready = False
     self.countDownThread = None
     self.characterSlotList = []
     self.uiOffset = (0, 0)
     self.maxFullSlotSize = None
     self.Flush()
     self.ClearBackground()
     self.selectionScreen = Container(name='selectionScreen',
                                      parent=self,
                                      state=uiconst.UI_PICKCHILDREN)
     self.InitUI()
     self.AddBackground()
     self.AddFeatureContainer()
     self.LoadCharacterSlots()
     self.SetRedeemPanelMode()
     self.AdjustFeatureBarPosition()
     self.CollapseOrExpandSlots(animate=False, loadingSlots=False)
     self.AdjustLogo()
     self.SetTimer()
     self.loadingWheel = uicls.LoadingWheel(parent=self.selectionScreen,
                                            align=uiconst.CENTER,
                                            state=uiconst.UI_NORMAL,
                                            idx=0)
     self.loadingWheel.display = False
コード例 #3
0
ファイル: preview.py プロジェクト: R4M80MrX/eve-1
 def ApplyAttributes(self, attributes):
     uicls.Window.ApplyAttributes(self, attributes)
     self.typeID = None
     self.scope = 'all'
     self.SetCaption(localization.GetByLabel('UI/Preview/PreviewCaption'))
     self.sr.main = uiutil.GetChild(self, 'main')
     self.SetWndIcon()
     self.SetTopparentHeight(0)
     self.SetMinSize([420, 320])
     self.sr.rightSide = rightSide = uicls.Container(name='rightSide',
                                                     parent=self.sr.main,
                                                     align=uiconst.TOALL,
                                                     pos=(0, 0, 0, 0),
                                                     padding=(6, 6, 6, 6),
                                                     clipChildren=1)
     self.loadingWheel = uicls.LoadingWheel(parent=self.sr.rightSide,
                                            align=uiconst.CENTER,
                                            state=uiconst.UI_NORMAL)
     listbtn = uicls.MenuIcon(size=24, ignoreSize=True)
     listbtn.sr.owner = self
     listbtn.state = uiconst.UI_NORMAL
     listbtn.align = uiconst.NOALIGN
     listbtn.left = 2
     listbtn.top = 10
     listbtn.hint = localization.GetByLabel('UI/Neocom/ListItemsInSystem')
     listbtn.GetMenu = self.GetShipMenu
     self.listbtn = listbtn
     self.sr.title = uicls.EveCaptionMedium(text='',
                                            parent=rightSide,
                                            align=uiconst.TOTOP,
                                            padding=(17, 4, 17, 0),
                                            state=uiconst.UI_NORMAL)
     self.sr.title.GetMenu = self.GetShipMenu
     self.sr.title.expandOnLeft = 1
     self.sr.subtitle = uicls.EveHeaderSmall(text='',
                                             parent=rightSide,
                                             align=uiconst.TOTOP,
                                             padding=(19, 0, 17, 0),
                                             state=uiconst.UI_DISABLED)
     self.textCont = uicls.Container(parent=self.sr.rightSide,
                                     align=uiconst.TOBOTTOM,
                                     pos=(0, 0, 0, 150))
     self.desc = uicls.EditPlainText(parent=self.textCont,
                                     readonly=1,
                                     padding=6,
                                     fontsize=12)
     self.desc.HideBackground()
     self.desc.RemoveActiveFrame()
     sc = form.SceneContainer(parent=self.sr.main,
                              align=uiconst.TOALL,
                              state=uiconst.UI_DISABLED,
                              padding=6)
     sc.Startup()
     self.sr.sceneContainer = sc
     nav = form.SceneContainerBaseNavigation(parent=self.sr.main,
                                             state=uiconst.UI_NORMAL,
                                             padding=6)
     nav.Startup(sc)
     nav.OnClick = self.OnClickNav
     self.sr.navigation = nav
     self.mannequin = None
     self.loadingCharacterThread = None
     self.previewingWhat = ''
     self.previewType = attributes.previewType
     self.previewCharacterInfo = None
     if attributes.previewCharacter:
         dna = attributes.dna
         if dna:
             self.previewCharacterInfo = (attributes.previewCharacter, dna)
コード例 #4
0
 def ConstructLayout(self):
     topCont = uiprimitives.Container(name='topCont', parent=self.sr.main, align=uiconst.TOTOP, height=138, padding=defaultPadding)
     uiprimitives.Line(parent=topCont, align=uiconst.TOBOTTOM)
     topLeftCont = uiprimitives.Container(name='topLeftCont', parent=topCont, align=uiconst.TOLEFT, width=260, padLeft=defaultPadding)
     topRightCont = uiprimitives.Container(name='topRightCont', parent=topCont, align=uiconst.TOALL)
     self.guyCont = uiprimitives.Container(name='guyCont', parent=topLeftCont, align=uiconst.TOLEFT, width=128)
     self.shipCont = uiprimitives.Container(name='shipCont', parent=topLeftCont, align=uiconst.TOLEFT, width=128)
     self.infoCont = uiprimitives.Container(name='infoCont', parent=topRightCont, align=uiconst.TOALL, padLeft=6, padRight=4, clipChildren=True)
     victimCont = uiprimitives.Container(name='victimCont', parent=self.infoCont, align=uiconst.TOTOP, height=68)
     victimNameCont = uiprimitives.Container(name='victimNameCont', parent=victimCont, align=uiconst.TOTOP, height=24, clipChildren=True)
     victimCorpCont = uiprimitives.Container(name='victimCorpCont', parent=victimCont, align=uiconst.TOALL)
     self.victimCorpLogoCont = uiprimitives.Container(name='victimCorpLogoCont', parent=victimCorpCont, align=uiconst.TOLEFT, width=32)
     self.victimAllianceLogoCont = uiprimitives.Container(name='victimAllianceLogoCont', parent=victimCorpCont, align=uiconst.TOLEFT, width=32)
     victimCorpTextCont = uiprimitives.Container(name='victimCorpTextCont', parent=victimCorpCont, align=uiconst.TOALL, padLeft=defaultPadding)
     shipCont = uiprimitives.Container(name='damageCont', parent=self.infoCont, align=uiconst.TOTOP, height=32)
     dateCont = uiprimitives.Container(name='dateCont', parent=self.infoCont, align=uiconst.TOALL)
     self.victimName = uicontrols.EveCaptionSmall(text='', parent=victimNameCont, name='victimName', state=uiconst.UI_NORMAL)
     self.victimCorpName = uicontrols.EveLabelMedium(text='', parent=victimCorpTextCont, name='victimCorpName', align=uiconst.TOTOP, state=uiconst.UI_NORMAL, top=defaultPadding)
     self.victimAllianceName = uicontrols.EveLabelMedium(text='', parent=victimCorpTextCont, name='victimAllianceName', align=uiconst.TOTOP, state=uiconst.UI_NORMAL)
     self.shipName = uicontrols.EveLabelMedium(text='', parent=shipCont, name='shipName', state=uiconst.UI_NORMAL, autoFadeSides=True)
     self.killDate = uicontrols.EveLabelMedium(text='', parent=dateCont, name='killDate', autoFadeSides=True)
     self.locationName = uicontrols.EveLabelMedium(text='', parent=dateCont, name='locationName', top=14, state=uiconst.UI_NORMAL, autoFadeSides=True)
     infoCont = uiprimitives.Container(name='infoCont', parent=self.sr.main, align=uiconst.TOALL, padding=(defaultPadding,
      0,
      defaultPadding,
      defaultPadding))
     bottomLeftCont = uiprimitives.Container(name='bottomLeftCont', parent=infoCont, align=uiconst.TOLEFT, width=260, padLeft=defaultPadding)
     bottomRightCont = uiprimitives.Container(name='bottomRightCont', padLeft=4, parent=infoCont, align=uiconst.TOALL)
     killersCont = uiprimitives.Container(name='killersCont', parent=bottomLeftCont, align=uiconst.TOALL)
     self.killedOnBehalfCont = uiprimitives.Container(name='killedOnBehalfCont', parent=killersCont, align=uiconst.TOTOP, height=90)
     uicontrols.EveLabelLarge(text=localization.GetByLabel('UI/Corporations/Wars/Killmails/KilledOnBehalf'), parent=self.killedOnBehalfCont, align=uiconst.TOTOP)
     self.behalfCont = KilledOnBehalfContainer(name='behalfCont', parent=self.killedOnBehalfCont, align=uiconst.TOTOP)
     self.killedOnBehalfCont.display = False
     self.involvedParties = uicontrols.EveLabelLarge(text='', parent=killersCont, name='involvedParties', align=uiconst.TOTOP)
     self.damageTaken = uicontrols.EveLabelMedium(text='', parent=killersCont, name='damageTaken', align=uiconst.TOTOP, color=(1.0, 0.0, 0.0))
     finalBlowCont = uiprimitives.Container(name='finalBlowCont', parent=killersCont, align=uiconst.TOTOP, height=84, top=8)
     uicontrols.EveLabelMedium(text=localization.GetByLabel('UI/Corporations/Wars/Killmails/FinalBlow'), parent=finalBlowCont, align=uiconst.TOTOP)
     self.finalBlowCont = KillerContainer(name='topKiller', parent=finalBlowCont, align=uiconst.TOTOP)
     topDamageCont = uiprimitives.Container(name='topDamageCont', parent=killersCont, align=uiconst.TOTOP, height=94, top=12)
     uicontrols.EveLabelMedium(text=localization.GetByLabel('UI/Corporations/Wars/Killmails/TopDamage'), parent=topDamageCont, align=uiconst.TOTOP)
     self.topDamageCont = KillerContainer(name='topDamageCont', parent=topDamageCont, align=uiconst.TOTOP)
     self.killersScrollLine = uiprimitives.Line(parent=killersCont, align=uiconst.TOTOP, padBottom=6)
     self.killersScroll = uicls.ScrollContainer(name='killersScroll', parent=killersCont, align=uiconst.TOALL, alignMode=uiconst.TOTOP)
     self.loadingWheel = uicls.LoadingWheel(parent=killersCont, align=uiconst.CENTER, state=uiconst.UI_DISABLED, idx=0, top=50)
     self.loadingWheel.display = False
     itemsCont = uiprimitives.Container(name='itemsCont', parent=bottomRightCont, align=uiconst.TOALL)
     topItemsCont = uiprimitives.Container(name='topItemsCont', parent=itemsCont, align=uiconst.TOTOP, height=16, padBottom=defaultPadding)
     self.savefittingBtn = uicontrols.Button(label=localization.GetByLabel('UI/Corporations/Wars/Killmails/SaveFitting'), parent=topItemsCont, align=uiconst.TOPRIGHT, func=self.SaveFitting)
     uicontrols.EveLabelLarge(text=localization.GetByLabel('UI/Corporations/Wars/Killmails/FittingAndContent'), parent=topItemsCont, name='fittingLabel', align=uiconst.TOPLEFT)
     bottomItemsCont = uicontrols.ContainerAutoSize(name='bottomItemsCont', parent=itemsCont, align=uiconst.TOBOTTOM)
     allItemsCont = uiprimitives.Container(name='allItemsCont', parent=itemsCont, align=uiconst.TOALL)
     self.itemsScroll = uicontrols.Scroll(name='itemsScroll', parent=allItemsCont)
     totalLossCont = uiprimitives.Container(name='totalLossCont', parent=bottomItemsCont, align=uiconst.TOTOP, height=24)
     uicontrols.EveLabelLarge(text=localization.GetByLabel('UI/Corporations/Wars/Killmails/TotalWorth'), parent=totalLossCont, name='totalWorth', align=uiconst.TOPLEFT, top=2)
     self.totalWorthLabel = uicontrols.EveLabelLarge(text='', parent=totalLossCont, name='totalWorthLabel', align=uiconst.TOPRIGHT, top=2)
     self.totalPayoutCont = uicontrols.ContainerAutoSize(name='totalPayoutCont', parent=bottomItemsCont, align=uiconst.TOTOP)
     self.pendCont = uiprimitives.Container(name='pendCont', parent=self.totalPayoutCont, align=uiconst.TOTOP, height=14)
     uicontrols.EveLabelSmall(text=localization.GetByLabel('UI/Corporations/Wars/Killmails/PendInsurance'), parent=self.pendCont, name='totalLoss', align=uiconst.BOTTOMLEFT)
     self.pendLabel = uicontrols.EveLabelSmall(text='', parent=self.pendCont, name='pendLabel', align=uiconst.BOTTOMRIGHT, color=(1.0, 0.0, 0.0))
     self.lpCont = uiprimitives.Container(name='lpCont', parent=self.totalPayoutCont, align=uiconst.TOTOP, height=14)
     uicontrols.EveLabelSmall(text=localization.GetByLabel('UI/Corporations/Wars/Killmails/LPPaidOut'), parent=self.lpCont, name='totalLP', align=uiconst.BOTTOMLEFT)
     self.totalLPLabel = uicontrols.EveLabelSmall(text='', parent=self.lpCont, name='totalLPLabel', align=uiconst.BOTTOMRIGHT, color=(0.0, 1.0, 0.0))
     self.lpCont.display = False
     self.bountyCont = uiprimitives.Container(name='bountyCont', parent=self.totalPayoutCont, align=uiconst.TOTOP, height=14, display=False)
     uicontrols.EveLabelSmall(text=localization.GetByLabel('UI/Corporations/Wars/Killmails/BountyPaidOut'), parent=self.bountyCont, name='totalBounty', align=uiconst.BOTTOMLEFT)
     self.totalBountyLabel = uicontrols.EveLabelSmall(text='', parent=self.bountyCont, name='totalBountyLabel', align=uiconst.BOTTOMRIGHT, color=(0.0, 1.0, 0.0))
     self.bountyCont.display = False