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

stationServiceConst.py (5175B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\station\stationServiceConst.py
      2 from eve.common.lib import appConst
      3 from eve.common.script.util.insuranceConst import INSURANCE_ICON
      4 from eveexceptions import UserError
      5 from localization import GetByLabel
      6 from utillib import KeyVal
      7 import structures
      8 serviceIDAlwaysPresent = -1
      9 serviceData = (KeyVal(name='charcustomization', command='OpenCharacterCustomization', label=GetByLabel('UI/Station/CharacterRecustomization'), iconID='res:/UI/Texture/WindowIcons/charcustomization.png', serviceID=serviceIDAlwaysPresent, stationServiceIDs=(serviceIDAlwaysPresent,), disableButtonIfNotAvailable=False),
     10  KeyVal(name='medical', command='OpenMedical', label=GetByLabel('UI/Medical/Medical'), iconID='res:/ui/Texture/WindowIcons/cloneBay.png', serviceID=structures.SERVICE_MEDICAL, stationServiceIDs=(appConst.stationServiceCloning,
     11   appConst.stationServiceSurgery,
     12   appConst.stationServiceDNATherapy,
     13   appConst.stationServiceJumpCloneFacility), disableButtonIfNotAvailable=False),
     14  KeyVal(name='repairshop', command='OpenRepairshop', label=GetByLabel('UI/Station/Repairshop'), iconID='res:/ui/Texture/WindowIcons/repairshop.png', serviceID=structures.SERVICE_REPAIR, stationServiceIDs=(appConst.stationServiceRepairFacilities,), disableButtonIfNotAvailable=True),
     15  KeyVal(name='reprocessingPlant', command='OpenReprocessingPlant', label=GetByLabel('UI/Station/ReprocessingPlant'), iconID='res:/UI/Texture/WindowIcons/Reprocess.png', serviceID=structures.SERVICE_REPROCESSING, stationServiceIDs=(appConst.stationServiceReprocessingPlant,), disableButtonIfNotAvailable=True),
     16  KeyVal(name='market', command='OpenMarket', label=GetByLabel('UI/Station/Market'), iconID='res:/ui/Texture/WindowIcons/market.png', serviceID=structures.SERVICE_MARKET, stationServiceIDs=(appConst.stationServiceMarket,), disableButtonIfNotAvailable=False),
     17  KeyVal(name='fitting', command='OpenFitting', label=GetByLabel('UI/Station/Fitting'), iconID='res:/ui/Texture/WindowIcons/fitting.png', serviceID=structures.SERVICE_FITTING, stationServiceIDs=(appConst.stationServiceFitting,), disableButtonIfNotAvailable=False),
     18  KeyVal(name='industry', command='OpenIndustry', label=GetByLabel('UI/Industry/Industry'), iconID='res:/UI/Texture/WindowIcons/Industry.png', serviceID=structures.SERVICE_INDUSTRY, stationServiceIDs=(appConst.stationServiceFactory, appConst.stationServiceLaboratory), disableButtonIfNotAvailable=False),
     19  KeyVal(name='navyoffices', command='OpenRelevantFWWindow', label=GetByLabel('UI/Station/MilitiaOffice'), iconID='res:/ui/Texture/WindowIcons/factionalwarfare.png', serviceID=structures.SERVICE_FACTION_WARFARE, stationServiceIDs=(appConst.stationServiceNavyOffices,), disableButtonIfNotAvailable=False),
     20  KeyVal(name='insurance', command='OpenInsurance', label=GetByLabel('UI/Station/Insurance'), iconID=INSURANCE_ICON, serviceID=structures.SERVICE_INSURANCE, stationServiceIDs=(appConst.stationServiceInsurance,), disableButtonIfNotAvailable=True),
     21  KeyVal(name='lpstore', command='OpenLpstore', label=GetByLabel('UI/Station/LPStore'), iconID='res:/ui/Texture/WindowIcons/lpstore.png', serviceID=structures.SERVICE_LOYALTY_STORE, stationServiceIDs=(appConst.stationServiceLoyaltyPointStore,), disableButtonIfNotAvailable=True),
     22  KeyVal(name='securityoffice', command='OpenSecurityOffice', label=GetByLabel('UI/Station/SecurityOffice'), iconID='res:/UI/Texture/WindowIcons/concord.png', serviceID=structures.SERVICE_SECURITY_OFFICE, stationServiceIDs=(appConst.stationServiceSecurityOffice,), disableButtonIfNotAvailable=True),
     23  KeyVal(name='moonmining', command='', label=GetByLabel('UI/Moonmining/MoonDrillService'), iconID='res:/UI/Texture/WindowIcons/moonDrill.png', serviceID=structures.SERVICE_MOONMINING, stationServiceIDs=(), disableButtonIfNotAvailable=False),
     24  KeyVal(name='jumpbridge', command='', label=GetByLabel('UI/Structures/ServiceJumpBridge'), iconID='res:/UI/Texture/WindowIcons/navigation.png', serviceID=structures.SERVICE_JUMP_BRIDGE, stationServiceIDs=(), disableButtonIfNotAvailable=False),
     25  KeyVal(name='cynobeacon', command='', label=GetByLabel('UI/Structures/ServiceJumpBeacon'), iconID='res:/UI/Texture/WindowIcons/navigation.png', serviceID=structures.SERVICE_CYNO_BEACON, stationServiceIDs=(), disableButtonIfNotAvailable=False),
     26  KeyVal(name='cynojammer', command='', label=GetByLabel('UI/Structures/ServiceCynoJammer'), iconID='res:/UI/Texture/classes/InfluenceBar/effectCyno.png', serviceID=structures.SERVICE_CYNO_JAMMER, stationServiceIDs=(), disableButtonIfNotAvailable=False),
     27  KeyVal(name='automoonmining', command='', label=GetByLabel('UI/Moonmining/AutoMoonDrillService'), iconID='res:/UI/Texture/WindowIcons/moonDrill.png', serviceID=structures.SERVICE_AUTOMOONMINING, stationServiceIDs=(), disableButtonIfNotAvailable=False))
     28 serviceDataByNameID = {data.name:data for data in serviceData}
     29 serviceDataByServiceID = {data.serviceID:data for data in serviceData}
     30 UPWELL_STANDARD_SERVICES = {name:serviceDataByNameID.get(name) for name in ['charcustomization',
     31  'fitting',
     32  'insurance',
     33  'repairshop']}
     34 
     35 class NewbieShipError(UserError):
     36     pass