Ejemplo n.º 1
0
 def GetErrorHints(self):
     hintTextList = SellBuyItemsWindow.GetErrorHints(self)
     alreadyInList = self.BuildHintTextList(self.itemAlreadyInList, 'UI/Market/MarketQuote/AlreadyInList')
     if hintTextList and alreadyInList:
         hintTextList.append('')
     hintTextList += alreadyInList
     needsRepackaging = self.BuildHintTextList(self.itemsNeedRepackaging, 'UI/Market/MarketQuote/NeedsRepackaging')
     if hintTextList and needsRepackaging:
         hintTextList.append('')
     hintTextList += needsRepackaging
     return hintTextList
Ejemplo n.º 2
0
 def InitializeVariables(self, attributes):
     SellBuyItemsWindow.InitializeVariables(self, attributes)
     self.entriesInScrollByTypeID = {}
     self.orderMultiplier = 1
     self.activeOrders = set()
     self.orderDisabled = False
     self.preItems = self.GetKeyValsForWantedTypes(
         attributes.get('wantToBuy'))
     self.reloadingItemsCounter = 0
     self.verifyMultiplierTimer = None
     self.expiredOrders = {}
Ejemplo n.º 3
0
 def ApplyAttributes(self, attributes):
     self.blinkEditBG = None
     SellBuyItemsWindow.ApplyAttributes(self, attributes)
     self.dropCont.OnDropData = self.DropItems
     self.infoCont.height = 40
     self.totalAmt.LoadTooltipPanel = self.LoadTotalTooltip
     self.itemsScroll.OnDropData = self.DropItems
     self.AddImportButton()
     self.DrawStationWarning()
     self.AddToLocationCont()
     self.StartAddItemsThread()
Ejemplo n.º 4
0
 def ApplyAttributes(self, attributes):
     SellBuyItemsWindow.ApplyAttributes(self, attributes)
     if self.useCorp:
         top = 48
     else:
         top = 30
     self.orderCountLabel = EveLabelSmall(parent=self.bottomLeft, top=top, left=2)
     self.maxCount = self.GetMaxOrderCount()
     self.myOrderCount = self.GetCurrentOrderCount()
     self.UpdateOrderCount()
     self.DrawDurationCombo()
     self.StartAddItemsThread()
Ejemplo n.º 5
0
 def Close(self, *args, **kwds):
     self.verifyMultiplierTimer = None
     return SellBuyItemsWindow.Close(self, *args, **kwds)
Ejemplo n.º 6
0
 def InitializeVariables(self, attributes):
     SellBuyItemsWindow.InitializeVariables(self, attributes)
     self.itemDict = {}
     self.sellItemList = []
     self.itemsNeedRepackaging = []
     self.itemAlreadyInList = []
Ejemplo n.º 7
0
 def OnUseCorp(self, *args):
     SellBuyItemsWindow.OnUseCorp(self, *args)
     self.UpdateOrderCount()
Ejemplo n.º 8
0
 def ClearErrorLists(self):
     SellBuyItemsWindow.ClearErrorLists(self)
     self.itemsNeedRepackaging = []
     self.itemAlreadyInList = []
Ejemplo n.º 9
0
 def RemoveItem(self, itemEntry):
     SellBuyItemsWindow.RemoveItem(self, itemEntry)
     self.CheckItemSize()
     if len(self.itemList) == 0:
         self.baseStationID = None
         self.UpdateStationInfo(None)