Esempio n. 1
0
 def showRelated(parent):
     moreContainer = uiprimitives.Container(parent=parent, align=uiconst.TOBOTTOM, height=50)
     more = EveLabelMediumBold(text=localization.GetByLabel('UI/Help/ShowMoreTutorials'), parent=moreContainer, align=uiconst.CENTER, state=uiconst.UI_NORMAL)
     more.OnClick = lambda : HelpWindow.Open(showPanel=localization.GetByLabel('UI/Help/TutorialVideos'))
     relatedParent = _RelatedContainer(parent=parent, align=uiconst.TOALL, padding=(100, 40, 100, 40))
     relatedContainer = ContainerAutoSize(parent=relatedParent, align=uiconst.CENTER)
     for each in TUTORIAL_VIDEOS_INDEX.get_related(node.id):
         _RelatedItem(align=uiconst.TOTOP, parent=relatedContainer, title=each['fullTitle'], description=each['description'], videoid=each['id'])
Esempio n. 2
0
 def ApplyAttributes(self, attributes):
     ReprocessingContainer.ApplyAttributes(self, attributes)
     self.scrollCont.name = 'outputScroll'
     self.volumeLabel.display = True
     self.UpdateItemInfo(0, 0, 0)
     self.overlayCont.display = False
     w, h = self.overlayCont.GetAbsoluteSize()
     overlayLabel = EveCaptionMedium(name='overlayLabel', parent=self.overlayCont, align=uiconst.CENTER)
     overlayLabel2 = EveLabelMediumBold(name='overlayLabel2', parent=self.overlayCont, align=uiconst.CENTER, top=20, state=uiconst.UI_NORMAL)
     overlayLabel.text = GetByLabel('UI/Reprocessing/ReprocessingWindow/OutputTransferredTo')
     overlayLabel2.text = GetByLabel('UI/Inventory/ItemHangar')
     overlayLabel2.OnClick = uicore.cmd.OpenInventory
 def ApplyAttributes(self, attributes):
     ReprocessingContainer.ApplyAttributes(self, attributes)
     self.scrollCont.name = 'outputScroll'
     self.volumeLabel.display = True
     self.UpdateItemInfo(0, 0, 0)
     self.overlayCont.display = False
     w, h = self.overlayCont.GetAbsoluteSize()
     overlayLabel = EveCaptionMedium(name='overlayLabel', parent=self.overlayCont, align=uiconst.CENTER)
     overlayLabel2 = EveLabelMediumBold(name='overlayLabel2', parent=self.overlayCont, align=uiconst.CENTER, top=20, state=uiconst.UI_NORMAL)
     overlayLabel.text = GetByLabel('UI/Reprocessing/ReprocessingWindow/OutputTransferredTo')
     overlayLabel2.text = GetByLabel('UI/Inventory/ItemHangar')
     overlayLabel2.OnClick = uicore.cmd.OpenInventory
Esempio n. 4
0
 def showRelated(parent):
     moreContainer = uiprimitives.Container(parent=parent,
                                            align=uiconst.TOBOTTOM,
                                            height=50)
     more = EveLabelMediumBold(
         text=localization.GetByLabel('UI/Help/ShowMoreTutorials'),
         parent=moreContainer,
         align=uiconst.CENTER,
         state=uiconst.UI_NORMAL)
     more.OnClick = lambda: HelpWindow.Open(
         showPanel=localization.GetByLabel('UI/Help/TutorialVideos'))
     relatedParent = _RelatedContainer(parent=parent,
                                       align=uiconst.TOALL,
                                       padding=(100, 40, 100, 40))
     relatedContainer = ContainerAutoSize(parent=relatedParent,
                                          align=uiconst.CENTER)
     for each in TUTORIAL_VIDEOS_INDEX.get_related(node.id):
         _RelatedItem(align=uiconst.TOTOP,
                      parent=relatedContainer,
                      title=each['fullTitle'],
                      description=each['description'],
                      videoid=each['id'])