NovaBryan/EVE_Dump
Log | Files | 📦 下载最新源码 (.zip) | Refs | README

storageIcon.py (767B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\planet\pinContainers\storageIcon.py
      2 from eve.client.script.ui.control.eveIcon import Icon
      3 from eve.client.script.ui.shared.planet import planetCommon
      4 
      5 class StorageIcon(Icon):
      6 
      7     def ApplyAttributes(self, attributes):
      8         Icon.ApplyAttributes(self, attributes)
      9         self.amount = attributes.amount
     10 
     11     def LoadTooltipPanel(self, tooltipPanel, *args):
     12         planetCommon.LoadProductTooltipPanel(tooltipPanel, self.typeID, self.amount)
     13 
     14     def GetMenu(self, *args):
     15         return sm.GetService('menu').GetMenuFromItemIDTypeID(None, self.typeID, includeMarketDetails=True)
     16 
     17     def OnDblClick(self):
     18         sm.GetService('info').ShowInfo(self.typeID)