示例#1
0
 def __init__(self, materialData, callback, tooltipPanel):
     tooltipPanel.margin = 8
     self.materialData = materialData
     self.callback = callback
     self.tooltipPanel = tooltipPanel
     if materialData.IsSelectable():
         text = localization.GetByLabel('UI/Industry/SelectInputMaterial')
     else:
         text = localization.GetByLabel('UI/Industry/SelectOptionalMaterial')
     label = EveLabelMedium(align=uiconst.TOTOP, text=text, padBottom=3)
     tooltipPanel.AddCell(label)
     scroll = Scroll(align=uiconst.TOPLEFT, width=250)
     scroll.OnSelectionChange = self.OnScrollSelectionChange
     scrollList = self.GetScrollContent()
     scroll.Load(contentList=scrollList)
     scroll.ScrollToSelectedNode()
     scroll.height = min(len(scrollList) * 29 + 2, 200)
     scroll.Confirm = self.Confirm
     tooltipPanel.AddCell(scroll)
示例#2
0
 def __init__(self, materialData, callback, tooltipPanel):
     tooltipPanel.margin = 8
     self.materialData = materialData
     self.callback = callback
     self.tooltipPanel = tooltipPanel
     if materialData.IsSelectable():
         text = localization.GetByLabel('UI/Industry/SelectInputMaterial')
     else:
         text = localization.GetByLabel('UI/Industry/SelectOptionalMaterial')
     label = EveLabelMedium(align=uiconst.TOTOP, text=text, padBottom=3)
     tooltipPanel.AddCell(label)
     scroll = Scroll(align=uiconst.TOPLEFT, width=250)
     scroll.OnSelectionChange = self.OnScrollSelectionChange
     scrollList = self.GetScrollContent()
     scroll.Load(contentList=scrollList)
     scroll.ScrollToSelectedNode()
     scroll.height = min(len(scrollList) * 29 + 2, 200)
     scroll.Confirm = self.Confirm
     tooltipPanel.AddCell(scroll)
 def __init__(self, jobData, tooltipPanel):
     self.jobData = jobData
     self.tooltipPanel = tooltipPanel
     tooltipPanel.state = uiconst.UI_NORMAL
     tooltipPanel.margin = MARGIN
     tooltipPanel.columns = 2
     if self.jobData.IsProductSelectable() and not self.jobData.IsInstalled():
         AddDescriptionRow(self.tooltipPanel, GetByLabel('UI/Industry/SelectOutcome'))
         scroll = Scroll(align=uiconst.TOPLEFT, width=250)
         scroll.OnSelectionChange = self.OnScrollSelectionChange
         scrollList = self.GetScrollContent()
         scroll.Load(contentList=scrollList)
         scroll.ScrollToSelectedNode()
         scroll.height = min(len(scrollList) * 29 + 2, 200)
         scroll.Confirm = self.Confirm
         self.tooltipPanel.AddCell(scroll, colSpan=3, cellPadding=PADBOTTOM)
     else:
         AddOutcomeRow(self.tooltipPanel, self.jobData.product)
         price = self.jobData.product.GetEstimatedUnitPrice() * self.jobData.product.quantity
         AddPriceRow(self.tooltipPanel, price)
 def __init__(self, jobData, tooltipPanel):
     self.jobData = jobData
     self.tooltipPanel = tooltipPanel
     tooltipPanel.state = uiconst.UI_NORMAL
     tooltipPanel.margin = MARGIN
     tooltipPanel.columns = 2
     if self.jobData.IsProductSelectable() and not self.jobData.IsInstalled():
         AddDescriptionRow(self.tooltipPanel, GetByLabel('UI/Industry/SelectOutcome'))
         scroll = Scroll(align=uiconst.TOPLEFT, width=250)
         scroll.OnSelectionChange = self.OnScrollSelectionChange
         scrollList = self.GetScrollContent()
         scroll.Load(contentList=scrollList)
         scroll.ScrollToSelectedNode()
         scroll.height = min(len(scrollList) * 29 + 2, 200)
         scroll.Confirm = self.Confirm
         self.tooltipPanel.AddCell(scroll, colSpan=3, cellPadding=PADBOTTOM)
     else:
         AddOutcomeRow(self.tooltipPanel, self.jobData.product)
         price = self.jobData.product.GetEstimatedUnitPrice() * self.jobData.product.quantity
         AddPriceRow(self.tooltipPanel, price)