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

showInfoButton.py (710B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\control\utilButtons\showInfoButton.py
      2 from eve.client.script.ui.control.glowSprite import GlowSprite
      3 from localization import GetByLabel
      4 
      5 class ShowInfoButton(GlowSprite):
      6     default_texturePath = 'res:/ui/Texture/Icons/show_info20.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.itemID = attributes.itemID
     14         self.hint = GetByLabel('UI/Commands/ShowInfo')
     15 
     16     def OnClick(self, *args):
     17         sm.GetService('info').ShowInfo(self.typeID, self.itemID)