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

stationContentPiece.py (865B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\agencyNew\contentPieces\stationContentPiece.py
      2 from eve.client.script.ui.const import buttonConst
      3 from eve.client.script.ui.shared.agencyNew.contentPieces.baseContentPiece import BaseContentPiece
      4 from eve.common.script.sys.eveCfg import IsDocked, IsControllingStructure
      5 
      6 class StationContentPiece(BaseContentPiece):
      7 
      8     def __init__(self, stationID, *args, **kwargs):
      9         super(StationContentPiece, self).__init__(*args, **kwargs)
     10         self.stationID = stationID
     11 
     12     def GetStationID(self):
     13         return self.stationID
     14 
     15     def _GetButtonState(self):
     16         if IsControllingStructure() or IsDocked() and session.stationid == self.stationID:
     17             return buttonConst.STATE_NONE
     18         return super(StationContentPiece, self)._GetButtonState()