예제 #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
예제 #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 = {}
예제 #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()
예제 #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()
예제 #5
0
 def Close(self, *args, **kwds):
     self.verifyMultiplierTimer = None
     return SellBuyItemsWindow.Close(self, *args, **kwds)
예제 #6
0
 def InitializeVariables(self, attributes):
     SellBuyItemsWindow.InitializeVariables(self, attributes)
     self.itemDict = {}
     self.sellItemList = []
     self.itemsNeedRepackaging = []
     self.itemAlreadyInList = []
예제 #7
0
 def OnUseCorp(self, *args):
     SellBuyItemsWindow.OnUseCorp(self, *args)
     self.UpdateOrderCount()
예제 #8
0
 def ClearErrorLists(self):
     SellBuyItemsWindow.ClearErrorLists(self)
     self.itemsNeedRepackaging = []
     self.itemAlreadyInList = []
예제 #9
0
 def RemoveItem(self, itemEntry):
     SellBuyItemsWindow.RemoveItem(self, itemEntry)
     self.CheckItemSize()
     if len(self.itemList) == 0:
         self.baseStationID = None
         self.UpdateStationInfo(None)