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