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

stationServiceEntry.py (1124B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\station\stationServiceEntry.py
      2 import carbonui.const as uiconst
      3 from eve.client.script.ui.control.entries.icon import IconEntry
      4 from eve.client.script.ui.control.infoIcon import MoreInfoIcon
      5 from localization import GetByLabel
      6 
      7 class StationServiceEntry(IconEntry):
      8     __guid__ = 'listentry.StationServiceEntry'
      9 
     10     def Startup(self, *args):
     11         super(StationServiceEntry, self).Startup(*args)
     12         self.sr.standingsRestriction = MoreInfoIcon(parent=self, align=uiconst.CENTERRIGHT, left=2, width=24, height=24, texturePath='res:/UI/Texture/Classes/Standings/Actions/derivedAgentInFaction.png')
     13 
     14     def Load(self, node):
     15         super(StationServiceEntry, self).Load(node)
     16         standingsRestriction = node.Get('standingsRestriction', None)
     17         if standingsRestriction:
     18             self.sr.standingsRestriction.hint = GetByLabel('UI/Standings/StationServiceStandingsRequired', **standingsRestriction)
     19             self.sr.standingsRestriction.Show()
     20         else:
     21             self.sr.standingsRestriction.Hide()