selectedItemConst.py (13356B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\inflight\selectedItemConst.py 2 import eveicon 3 from eve.common.lib import appConst as const 4 from structures import FLEX_STRUCTURE_TYPES 5 ACTIONS_ALWAYS_VISIBLE = ['UI/Inflight/OrbitObject', 6 'UI/Inflight/Submenus/KeepAtRange', 7 'UI/Inflight/LockTarget', 8 'UI/Inflight/LookAtObject', 9 'UI/Inflight/SetAsCameraInterest', 10 'UI/Commands/ShowInfo'] 11 TOGGLE_ACTIONS = {'UI/Inflight/LockTarget': 'UI/Inflight/UnlockTarget', 12 'UI/Inflight/LookAtObject': 'UI/Inflight/ResetCamera', 13 'UI/Inflight/SpaceComponents/TowGameObjective/startTowing': 'UI/Inflight/SpaceComponents/TowGameObjective/stopTowing'} 14 ACTIONS_BY_TYPEID = {const.typeUpwellSmallStargate: ['UI/Inflight/JumpUsingBridge'], 15 const.typeUpwellAutoMoonMiner: ['UI/Inflight/OpenMoonMaterialBay'], 16 const.typeNeedlejackTrace: ['UI/Inflight/ActivateTraceGate'], 17 const.typeYoiulTrace: ['UI/Inflight/ActivateTraceGate'], 18 const.typeTriglavianSpaceTrace: ['UI/Inflight/ActivateTraceGate']} 19 for typeID in FLEX_STRUCTURE_TYPES: 20 if typeID not in ACTIONS_BY_TYPEID: 21 ACTIONS_BY_TYPEID[typeID] = [] 22 ACTIONS_BY_TYPEID[typeID].extend(['UI/Inflight/AccessHangarTransfer', 'UI/Inflight/BoardStructure']) 23 24 ACTIONS_BY_GROUPID = {const.groupStation: ['UI/Inflight/DockInStation'], 25 const.groupWreck: ['UI/Commands/OpenCargo'], 26 const.groupCargoContainer: ['UI/Commands/OpenCargo'], 27 const.groupMissionContainer: ['UI/Commands/OpenCargo'], 28 const.groupSecureCargoContainer: ['UI/Commands/OpenCargo'], 29 const.groupAuditLogSecureContainer: ['UI/Commands/OpenCargo'], 30 const.groupFreightContainer: ['UI/Commands/OpenCargo'], 31 const.groupSpawnContainer: ['UI/Commands/OpenCargo'], 32 const.groupSpewContainer: ['UI/Commands/OpenCargo'], 33 const.groupDeadspaceOverseersBelongings: ['UI/Commands/OpenCargo'], 34 const.groupPlanetaryCustomsOffices: ['UI/PI/Common/AccessCustomOffice'], 35 const.groupOrbitalConstructionPlatforms: ['UI/DustLink/OpenUpgradeHold'], 36 const.groupMoon: ['UI/Inflight/WarpToMoonMiningPoint'], 37 const.groupReprocessingArray: ['UI/Inflight/POS/AccessPOSRefinery'], 38 const.groupCompressionArray: ['UI/Inflight/POS/AccessPOSCompression'], 39 const.groupMobileReactor: ['UI/Inflight/POS/AccessPOSStorage'], 40 const.groupControlTower: ['UI/Inflight/POS/AccessPOSFuelBay', 'UI/Inflight/POS/AccessPOSStrontiumBay'], 41 const.groupSilo: ['UI/Inflight/POS/AccessPOSStorage'], 42 const.groupAssemblyArray: ['UI/Inflight/POS/AccessPOSStorage'], 43 const.groupMobileLaboratory: ['UI/Inflight/POS/AccessPOSStorage'], 44 const.groupCorporateHangarArray: ['UI/Inflight/POS/AccessPOSStorage'], 45 const.groupPersonalHangar: ['UI/Inflight/POS/AccessPOSStorage'], 46 const.groupMobileMissileSentry: ['UI/Inflight/POS/AccessPOSAmmo'], 47 const.groupMobileHybridSentry: ['UI/Inflight/POS/AccessPOSAmmo'], 48 const.groupMobileProjectileSentry: ['UI/Inflight/POS/AccessPOSAmmo'], 49 const.groupMobileLaserSentry: ['UI/Inflight/POS/AccessPOSCrystalStorage'], 50 const.groupShipMaintenanceArray: ['UI/Inflight/POS/AccessPOSVessels'], 51 const.groupStargate: ['UI/Inflight/Jump'], 52 const.groupWormhole: ['UI/Inflight/EnterWormhole'], 53 const.groupWarpGate: ['UI/Inflight/ActivateGate'], 54 const.groupAbyssalTraces: ['UI/Inflight/ActivateGate'], 55 const.groupBillboard: ['UI/Commands/ReadNews'], 56 const.groupAgentsinSpace: ['UI/Chat/StartConversation'], 57 const.groupDestructibleAgentsInSpace: ['UI/Chat/StartConversation'], 58 const.groupMiningDrone: ['UI/Drones/ScoopDroneToBay'], 59 const.groupSalvageDrone: ['UI/Drones/ScoopDroneToBay'], 60 const.groupPlanet: ['UI/PI/Common/ViewInPlanetMode'], 61 const.groupInterstellarShipcaster: ['UI/Inflight/JumpByShipcaster'], 62 const.groupTowableEntities: ['UI/Inflight/SpaceComponents/TowGameObjective/startTowing'], 63 const.groupMercenaryDen: ['UI/Sovereignty/MercenaryDen/ConfigurationWindow/ConfigureMercenaryDen'], 64 const.groupSkyhook: ['UI/PI/Common/AccessCustomOffice', 'UI/OrbitalSkyhook/SkyhookWnd/AccessOrbitalSkyhookOffice'], 65 const.groupInfrastructureHub: ['UI/Menusvc/OpenSovHubConfigWindow', 'UI/Sovereignty/SovHub/ReagentBay/DepositReagents']} 66 ACTIONS_BY_CATEGORYID = {const.categoryShip: ['UI/Inflight/BoardShip'], 67 const.categoryStructure: ['UI/Inflight/DockInStation', 'UI/Inflight/AccessHangarTransfer'], 68 const.categoryDrone: ['UI/Drones/ScoopDroneToBay']} 69 70 class ActiveItemOptionObject(object): 71 72 def __init__(self, iconPath, uniqueUiName, cmdName = None): 73 self.iconPath = iconPath 74 self.uniqueUiName = uniqueUiName 75 self.cmdName = cmdName 76 77 78 ICON_APPROACH = 'res:/UI/Texture/icons/44_32_23.png' 79 ICON_ALIGN_TO = 'res:/UI/Texture/icons/44_32_59.png' 80 ICON_WARP_TO = 'res:/UI/Texture/Icons/44_32_18.png' 81 ICON_ORBIT = 'res:/UI/Texture/icons/44_32_21.png' 82 ICON_KEEP_AT_RANGE = 'res:/UI/Texture/icons/44_32_22.png' 83 ICON_JUMP_OR_ACTIVATE = 'res:/UI/Texture/icons/44_32_39.png' 84 ICON_LOCK_TARGET = 'res:/UI/Texture/icons/44_32_17.png' 85 ICON_DOCK_IN_STATION = 'res:/UI/Texture/icons/44_32_9.png' 86 ICON_BOARD = 'res:/UI/Texture/icons/44_32_40.png' 87 ICON_CARGO = 'res:/UI/Texture/icons/44_32_35.png' 88 ICON_START_TOW = eveicon.tow 89 ICON_STOP_TOW = eveicon.tow 90 ICON_CAMERA_LOOK_AT = 'res:/UI/Texture/icons/44_32_20.png' 91 ICON_CAMERA_TRACK = 'res:/UI/Texture/icons/44_32_65.png' 92 ICON_PLANET_VIEW = 'res:/UI/Texture/icons/77_32_34.png' 93 ICON_EXIT_PLANET_VIEW = 'res:/UI/Texture/icons/77_32_35.png' 94 ICON_SHOW_INFO = 'res:/UI/Texture/icons/44_32_24.png' 95 ICON_START_CONVERSATION = 'res:/UI/Texture/icons/44_32_33.png' 96 ICON_SALVAGE = 'res:/UI/Texture/icons/44_32_5.png' 97 ICON_VIEW_BILLBOARD = 'res:/UI/Texture/icons/44_32_47.png' 98 ICON_WARP_TO_MOON_MINING_POINT = 'res:/UI/Texture/Classes/Moonmining/warpToMiningPoint.png' 99 ICON_DRONE_ENGAGE = 'res:/UI/Texture/icons/44_32_4.png' 100 ICON_DRONE_RETURN = 'res:/UI/Texture/icons/44_32_1.png' 101 ICON_DRONE_RETURN_AND_ORBIT = 'res:/UI/Texture/icons/44_32_3.png' 102 ICON_DRONE_LAUNCH = 'res:/UI/Texture/icons/44_32_2.png' 103 ICON_RETRIEVE = eveicon.retrieve 104 ICON_SETTING_WHEEL = eveicon.settings_wheel 105 ICON_ID_AND_CMD_BY_ACTIONID = {'UI/Commands/ShowInfo': ActiveItemOptionObject(ICON_SHOW_INFO, 'selectedItemShowInfo', 'CmdShowItemInfo'), 106 'UI/Inflight/ApproachObject': ActiveItemOptionObject(ICON_APPROACH, 'selectedItemApproach', 'CmdApproachItem'), 107 'UI/Inflight/AlignTo': ActiveItemOptionObject(ICON_ALIGN_TO, 'selectedItemAlignTo', 'CmdAlignToItem'), 108 'UI/Inflight/OrbitObject': ActiveItemOptionObject(ICON_ORBIT, 'selectedItemOrbit', 'CmdOrbitItem'), 109 'UI/Inflight/Submenus/KeepAtRange': ActiveItemOptionObject(ICON_KEEP_AT_RANGE, 'selectedItemKeepAtRange', 'CmdKeepItemAtRange'), 110 'UI/Inflight/LockTarget': ActiveItemOptionObject(ICON_LOCK_TARGET, 'selectedItemLockTarget', 'CmdLockTargetItem'), 111 'UI/Inflight/UnlockTarget': ActiveItemOptionObject(ICON_LOCK_TARGET, 'selectedItemUnLockTarget', 'CmdUnlockTargetItem'), 112 'UI/Inflight/LookAtObject': ActiveItemOptionObject(ICON_CAMERA_LOOK_AT, 'selectedItemLookAt', 'CmdToggleLookAtItem'), 113 'UI/Inflight/ResetCamera': ActiveItemOptionObject(ICON_CAMERA_LOOK_AT, 'selectedItemResetCamera'), 114 'UI/Inflight/SetAsCameraInterest': ActiveItemOptionObject(ICON_CAMERA_TRACK, 'selectedItemSetInterest', 'CmdToggleCameraTracking'), 115 'UI/Chat/StartConversation': ActiveItemOptionObject(ICON_START_CONVERSATION, 'selectedItemStartConversation'), 116 'UI/Commands/OpenCargo': ActiveItemOptionObject(ICON_CARGO, 'selectedItemOpenCargo'), 117 'UI/PI/Common/AccessCustomOffice': ActiveItemOptionObject(ICON_CARGO, 'selectedItemAccessCustomOffice'), 118 'UI/DustLink/OpenUpgradeHold': ActiveItemOptionObject(ICON_CARGO, 'selectedItemOpenUpgradeHold'), 119 'UI/Inflight/SpaceComponents/ItemTrader/Access': ActiveItemOptionObject(ICON_CARGO, 'selectedItemOpenCargo'), 120 'UI/Inflight/SpaceComponents/UnderConstruction/Access': ActiveItemOptionObject(ICON_CARGO, 'selectedItemOpenCargo'), 121 'UI/PI/Common/ExitPlanetMode': ActiveItemOptionObject(ICON_EXIT_PLANET_VIEW, 'selectedItemExitPlanetMode'), 122 'UI/Inflight/POS/AccessPOSRefinery': ActiveItemOptionObject(ICON_CARGO, 'selectedItemAccessRefinery'), 123 'UI/Inflight/POS/AccessPOSCompression': ActiveItemOptionObject(ICON_CARGO, 'selectedItemAccessCompression'), 124 'UI/Inflight/POS/AccessPOSStrontiumBay': ActiveItemOptionObject(ICON_CARGO, 'selectedItemAccessTrontiumStorage'), 125 'UI/Inflight/POS/AccessPOSFuelBay': ActiveItemOptionObject(ICON_CARGO, 'selectedItemAccessFuelStorage'), 126 'UI/Inflight/POS/AccessPOSAmmo': ActiveItemOptionObject(ICON_CARGO, 'selectedItemAccessAmmunition'), 127 'UI/Inflight/POS/AccessPOSCrystalStorage': ActiveItemOptionObject(ICON_CARGO, 'selectedItemAccessCrystalStorage'), 128 'UI/Inflight/POS/AccessPOSStorage': ActiveItemOptionObject(ICON_CARGO, 'selectedItemAccessStorage'), 129 'UI/Inflight/AccessHangarTransfer': ActiveItemOptionObject(ICON_CARGO, 'selectedItemAccessDropbox'), 130 'UI/Inflight/POS/AccessPOSVessels': ActiveItemOptionObject(ICON_CARGO, 'selectedItemAccessVessels'), 131 'UI/Commands/AccessBountyEscrow': ActiveItemOptionObject(ICON_CARGO, 'selectedItemAccessBountyEscrow'), 132 'UI/Drones/EngageTarget': ActiveItemOptionObject(ICON_DRONE_ENGAGE, 'selectedItemEngageTarget'), 133 'UI/Drones/MineWithDrone': ActiveItemOptionObject(ICON_DRONE_ENGAGE, 'selectedItemMine'), 134 'UI/Drones/Salvage': ActiveItemOptionObject(ICON_SALVAGE, 'selectedItemSalvage'), 135 'UI/Inflight/POS/AnchorObject': ActiveItemOptionObject(ICON_DRONE_ENGAGE, 'selectedItemUnanchor'), 136 'UI/Drones/ReturnDroneAndOrbit': ActiveItemOptionObject(ICON_DRONE_RETURN_AND_ORBIT, 'selectedItemReturnAndOrbit'), 137 'UI/Drones/ReturnDroneToBay': ActiveItemOptionObject(ICON_DRONE_RETURN, 'selectedItemReturnToDroneBay'), 138 'UI/Drones/ScoopDroneToBay': ActiveItemOptionObject(ICON_DRONE_RETURN, 'selectedItemScoopToDroneBay'), 139 'UI/Drones/LaunchDrones': ActiveItemOptionObject(ICON_DRONE_LAUNCH, 'selectedItemLaunchDrones'), 140 'UI/Inflight/BoardShip': ActiveItemOptionObject(ICON_BOARD, 'selectedItemBoardShip'), 141 'UI/Inflight/BoardStructure': ActiveItemOptionObject(ICON_BOARD, 'selectedItemBoardStructure'), 142 'UI/Inflight/DockInStation': ActiveItemOptionObject(ICON_DOCK_IN_STATION, 'selectedItemDock', 'CmdDockOrJumpOrActivateGate'), 143 'UI/Inflight/Jump': ActiveItemOptionObject(ICON_JUMP_OR_ACTIVATE, 'selectedItemJump', 'CmdDockOrJumpOrActivateGate'), 144 'UI/Inflight/JumpUsingBridge': ActiveItemOptionObject(ICON_JUMP_OR_ACTIVATE, 'selectedItemJump', 'CmdDockOrJumpOrActivateGate'), 145 'UI/Inflight/EnterWormhole': ActiveItemOptionObject(ICON_JUMP_OR_ACTIVATE, 'selectedItemEnterWormhole', 'CmdDockOrJumpOrActivateGate'), 146 'UI/Inflight/ActivateGate': ActiveItemOptionObject(ICON_JUMP_OR_ACTIVATE, 'selectedItemActivateGate', 'CmdDockOrJumpOrActivateGate'), 147 'UI/Inflight/ActivateTraceGate': ActiveItemOptionObject(ICON_JUMP_OR_ACTIVATE, 'selectedItemActivateTraceGate', 'CmdDockOrJumpOrActivateGate'), 148 'UI/Commands/ReadNews': ActiveItemOptionObject(ICON_VIEW_BILLBOARD, 'selectedItemReadNews'), 149 'UI/Fleet/JumpThroughToSystem': ActiveItemOptionObject(ICON_JUMP_OR_ACTIVATE, 'selectedItemJumpThroughToSystem', 'CmdDockOrJumpOrActivateGate'), 150 'UI/Fleet/JumpThrough': ActiveItemOptionObject(ICON_JUMP_OR_ACTIVATE, 'selectedItemJumpThroughToSystem', 'CmdDockOrJumpOrActivateGate'), 151 'UI/PI/Common/ViewInPlanetMode': ActiveItemOptionObject(ICON_PLANET_VIEW, 'selectedItemViewInPlanetMode'), 152 'UI/Inflight/WarpToMoonMiningPoint': ActiveItemOptionObject(ICON_WARP_TO_MOON_MINING_POINT, 'selectedItemMoonminingPoint'), 153 'UI/Inflight/WarpToWithinDistance': ActiveItemOptionObject(ICON_WARP_TO, 'selectedItemWarpTo', 'CmdWarpToItem'), 154 'UI/Inflight/Submenus/WarpToWithin': ActiveItemOptionObject(ICON_WARP_TO, 'selectedItemWarpTo', 'CmdWarpToItem'), 155 'UI/Inflight/JumpByShipcaster': ActiveItemOptionObject(ICON_JUMP_OR_ACTIVATE, 'selectedItemShipcasterJump', 'CmdDockOrJumpOrActivateGate'), 156 'UI/Inflight/OpenMoonMaterialBay': ActiveItemOptionObject(ICON_RETRIEVE, 'selectedItemOpenMoonMaterialBay'), 157 'UI/Inflight/SpaceComponents/TowGameObjective/startTowing': ActiveItemOptionObject(ICON_START_TOW, 'selectedItemTowableStartTow'), 158 'UI/Inflight/SpaceComponents/TowGameObjective/stopTowing': ActiveItemOptionObject(ICON_STOP_TOW, 'selectedItemTowableStopTow'), 159 'UI/Sovereignty/MercenaryDen/ConfigurationWindow/ConfigureMercenaryDen': ActiveItemOptionObject(ICON_SETTING_WHEEL, 'selectedConfigureMercenaryDen'), 160 'UI/OrbitalSkyhook/SkyhookWnd/AccessOrbitalSkyhookOffice': ActiveItemOptionObject(ICON_SETTING_WHEEL, 'selectedItemAccessOrbitalSkyhookOffice'), 161 'UI/Menusvc/OpenSovHubConfigWindow': ActiveItemOptionObject(ICON_SETTING_WHEEL, 'selectedItemOpenSovHubConfigWindow'), 162 'UI/Sovereignty/SovHub/ReagentBay/DepositReagents': ActiveItemOptionObject(ICON_CARGO, 'selectedItemOpenSovHubConfigWindow')} 163 RESET_ACTIONS = ('UI/Inflight/UnlockTarget', 'UI/Inflight/ResetCamera', 'UI/Inflight/SpaceComponents/TowGameObjective/stopTowing') 164 CLOSE_MENU_ACTIONS = ('UI/Inflight/OrbitObject', 'UI/Inflight/Submenus/KeepAtRange', 'UI/Inflight/WarpToWithinDistance') 165 POINTER_ACTIONS = ('UI/DustLink/OpenUpgradeHold', 'UI/Inflight/POS/AccessPOSRefinery', 'UI/Inflight/POS/AccessPOSCompression', 'UI/Inflight/POS/AccessPOSStrontiumBay', 'UI/Inflight/POS/AccessPOSFuelBay', 'UI/Inflight/POS/AccessPOSAmmo', 'UI/Inflight/POS/AccessPOSCrystalStorage', 'UI/Inflight/POS/AccessPOSStorage', 'UI/Inflight/POS/AccessPOSVessels', 'UI/Commands/AccessBountyEscrow', 'UI/Inflight/POS/AnchorObject') 166 SUB_MENU_ACTIONS = ['UI/Inflight/MoonMiningPoint']