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

marketDetailsButton.py (791B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\control\utilButtons\marketDetailsButton.py
      2 from eve.client.script.ui.control.glowSprite import GlowSprite
      3 from localization import GetByLabel
      4 
      5 class ShowMarketDetailsButton(GlowSprite):
      6     default_texturePath = 'res:/ui/Texture/Icons/show_in_market_20.png'
      7     default_width = 20
      8     default_height = 20
      9 
     10     def ApplyAttributes(self, attributes):
     11         GlowSprite.ApplyAttributes(self, attributes)
     12         self.typeID = attributes.typeID
     13         self.hint = GetByLabel('UI/Inventory/ItemActions/ViewTypesMarketDetails')
     14 
     15     def OnClick(self, *args):
     16         sm.StartService('marketutils').ShowMarketDetails(self.typeID, None)
     17 
     18     def SetTypeID(self, typeID):
     19         self.typeID = typeID