shipTreeConst.py (7902B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\shipTree\shipTreeConst.py 2 import eve.common.lib.appConst as const 3 TREE_SCALE = 350.0 4 ZOOMED_IN = 1.0 5 ZOOMED_OUT = 0.5 6 NODETYPE_ROOT = 1 7 NODETYPE_GROUP = 2 8 NODETYPE_CONNECTOR = 3 9 NODETYPE_OTHERFACTIONGROUP = 4 10 PAD_SIDE = 400 11 PAD_TOP = 200 12 ANY_FACTION = -1 13 FACTIONS = (const.factionAmarrEmpire, 14 const.factionCaldariState, 15 const.factionGallenteFederation, 16 const.factionMinmatarRepublic, 17 const.factionORE, 18 const.factionGuristasPirates, 19 const.factionSanshasNation, 20 const.factionTheBloodRaiderCovenant, 21 const.factionAngelCartel, 22 const.factionSerpentis, 23 const.factionSistersOfEVE, 24 const.factionMordusLegion, 25 const.factionTriglavian, 26 const.factionEDENCOM, 27 const.factionCONCORDAssembly, 28 const.factionSocietyOfConsciousThought, 29 const.factionDeathless) 30 ICON_BY_FACTIONID = {const.factionAmarrEmpire: 'res:/UI/Texture/Classes/ShipTree/factions/amarr.png', 31 const.factionCaldariState: 'res:/UI/Texture/Classes/ShipTree/factions/caldari.png', 32 const.factionGallenteFederation: 'res:/UI/Texture/Classes/ShipTree/factions/gallente.png', 33 const.factionMinmatarRepublic: 'res:/UI/Texture/Classes/ShipTree/factions/minmatar.png', 34 const.factionORE: 'res:/UI/Texture/Classes/ShipTree/factions/ORE.png', 35 const.factionGuristasPirates: 'res:/UI/Texture/Classes/ShipTree/factions/guristas.png', 36 const.factionSanshasNation: 'res:/UI/Texture/Classes/ShipTree/factions/sansha.png', 37 const.factionTheBloodRaiderCovenant: 'res:/UI/Texture/Classes/ShipTree/factions/bloodRaiders.png', 38 const.factionAngelCartel: 'res:/UI/Texture/Classes/ShipTree/factions/angel.png', 39 const.factionSerpentis: 'res:/UI/Texture/Classes/ShipTree/factions/serpentis.png', 40 const.factionSistersOfEVE: 'res:/UI/Texture/Classes/ShipTree/factions/soe.png', 41 const.factionMordusLegion: 'res:/UI/Texture/Classes/ShipTree/factions/mordus.png', 42 const.factionTriglavian: 'res:/UI/Texture/Classes/ShipTree/factions/triglavianCollective.png', 43 const.factionEDENCOM: 'res:/UI/Texture/Classes/ShipTree/factions/edencom.png', 44 const.factionCONCORDAssembly: 'res:/UI/Texture/Classes/ShipTree/factions/concord.png', 45 const.factionSocietyOfConsciousThought: 'res:/UI/Texture/Classes/ShipTree/factions/soct.png', 46 const.factionDeathless: 'res:/UI/Texture/Classes/ShipTree/factions/deathless.png'} 47 HOMESYSTEM_BY_FACTIONID = {const.factionAmarrEmpire: ('res:/dx9/scene/Universe/a03_cube.red', (0, 0, 1000)), 48 const.factionCaldariState: ('res:/dx9/scene/Universe/c02_cube.red', (0, 0, 1000)), 49 const.factionGallenteFederation: ('res:/dx9/scene/Universe/g03_cube.red', (-629, 223, 742)), 50 const.factionMinmatarRepublic: ('res:/dx9/scene/Universe/m02_cube.red', (0, 0, 1000)), 51 const.factionORE: ('res:/dx9/scene/Universe/g08_cube.red', (477, -628, -613)), 52 const.factionGuristasPirates: ('res:/dx9/scene/Universe/c08_cube.red', (936, 197, -289)), 53 const.factionSanshasNation: ('res:/dx9/scene/Universe/a16_cube.red', (-929, 338, -149)), 54 const.factionTheBloodRaiderCovenant: ('res:/dx9/scene/Universe/a04_cube.red', (0, 0, 1000)), 55 const.factionAngelCartel: ('res:/dx9/scene/Universe/m06_cube.red', (-302, 548, 779)), 56 const.factionSerpentis: ('res:/dx9/scene/Universe/g10_cube.red', (0, 0, 1000)), 57 const.factionSistersOfEVE: ('res:/dx9/scene/Universe/m02_cube.red', (0, 0, 1000)), 58 const.factionMordusLegion: ('res:/dx9/scene/Universe/c02_cube.red', (0, 0, 1000)), 59 const.factionTriglavian: ('res:/dx9/scene/Universe/c02_cube.red', (0, 0, 1000)), 60 const.factionEDENCOM: ('res:/dx9/scene/Universe/c02_cube.red', (0, 0, 1000)), 61 const.factionCONCORDAssembly: ('res:/dx9/scene/Universe/c02_cube.red', (0, 0, 1000)), 62 const.factionSocietyOfConsciousThought: ('res:/dx9/scene/Universe/c02_cube.red', (0, 0, 1000))} 63 64 def GetFactionSceneResPathAndEyePos(factionID): 65 return HOMESYSTEM_BY_FACTIONID.get(factionID) 66 67 68 AUDIOEVENT_BY_FACTION = {const.factionAmarrEmpire: 'isis_faction_amarr', 69 const.factionCaldariState: 'isis_faction_caldari', 70 const.factionGallenteFederation: 'isis_faction_gallente', 71 const.factionMinmatarRepublic: 'isis_faction_minmatar', 72 const.factionORE: 'isis_faction_ore', 73 const.factionGuristasPirates: 'isis_faction_guristas', 74 const.factionSanshasNation: 'isis_faction_sansha', 75 const.factionTheBloodRaiderCovenant: 'isis_faction_bloodraider', 76 const.factionAngelCartel: 'isis_faction_angel', 77 const.factionSerpentis: 'isis_faction_serpentis', 78 const.factionSistersOfEVE: 'isis_faction_sistersofeve', 79 const.factionMordusLegion: 'isis_faction_mordu', 80 const.factionTriglavian: 'isis_faction_mordu', 81 const.factionEDENCOM: 'isis_faction_mordu', 82 const.factionCONCORDAssembly: 'isis_faction_mordu', 83 const.factionSocietyOfConsciousThought: 'isis_faction_mordu', 84 const.factionDeathless: 'isis_faction_deathless'} 85 86 def GetAudioEventIDForFaction(factionID): 87 return AUDIOEVENT_BY_FACTION.get(factionID) 88 89 90 COLOR_TEXT = (0.298, 0.549, 0.69, 1.0) 91 COLOR_TEXT_HILITE = (0.765, 0.914, 1.0, 1.0) 92 COLOR_MASTERED = (0.988, 0.82, 0.494, 1.0) 93 COLOR_HILIGHT = (0.753, 0.898, 0.98, 1.0) 94 COLOR_SHIPGROUP_UNLOCKED = (0.047, 0.063, 0.078, 1.0) 95 COLOR_SHIPGROUP_LOCKED = (0.0085, 0.0146, 0.02, 1.0) 96 COLOR_SHIPICON_LOCKED = (0.042, 0.073, 0.1, 0.1) 97 COLOR_SHIPICON_UNLOCKED = (0.042, 0.073, 0.1, 1.0) 98 COLOR_FRAME = (0.31, 0.369, 0.4, 0.6) 99 COLOR_BG = (0.0259, 0.0491, 0.075, 1.0) 100 COLOR_HOVER_LOCKED = (0.3, 0.3, 0.3, 0.0) 101 COLOR_HOVER_UNLOCKED = (0.31, 0.675, 1.0, 0.0) 102 COLOR_HOVER_MASTERED = (1.0, 0.467, 0.145, 0.0) 103 BG_BY_FACTIONID = {const.factionMinmatarRepublic: 'res:/UI/Texture/Classes/shipTree/factionBG/minmatar.png', 104 const.factionAmarrEmpire: 'res:/UI/Texture/Classes/shipTree/factionBG/amarr.png', 105 const.factionGallenteFederation: 'res:/UI/Texture/Classes/shipTree/factionBG/gallente.png', 106 const.factionCaldariState: 'res:/UI/Texture/Classes/shipTree/factionBG/caldari.png', 107 const.factionORE: 'res:/UI/Texture/Classes/shipTree/factionBG/ORE.png', 108 const.factionGuristasPirates: 'res:/UI/Texture/Classes/shipTree/factionBG/guristas.png', 109 const.factionSanshasNation: 'res:/UI/Texture/Classes/shipTree/factionBG/sanshasNation.png', 110 const.factionTheBloodRaiderCovenant: 'res:/UI/Texture/Classes/shipTree/factionBG/bloodRaiders.png', 111 const.factionAngelCartel: 'res:/UI/Texture/Classes/shipTree/factionBG/angelCartel.png', 112 const.factionSerpentis: 'res:/UI/Texture/Classes/shipTree/factionBG/serpentis.png', 113 const.factionSistersOfEVE: 'res:/UI/Texture/Classes/shipTree/factionBG/SOE.png', 114 const.factionMordusLegion: 'res:/UI/Texture/Classes/shipTree/factionBG/mordus.png', 115 const.factionTriglavian: 'res:/UI/Texture/Classes/shipTree/factionBG/triglavianCollective.png', 116 const.factionEDENCOM: 'res:/UI/Texture/Classes/shipTree/factionBG/edencom.png', 117 const.factionCONCORDAssembly: 'res:/UI/Texture/Classes/shipTree/factionBG/concord.png', 118 const.factionSocietyOfConsciousThought: 'res:/UI/Texture/Classes/shipTree/factionBG/soct.png', 119 const.factionDeathless: 'res:/UI/Texture/Classes/shipTree/factionBG/deathless.png'} 120 groupFilterResults = 100 121 MAIN_FACTIONS = (const.factionAmarrEmpire, 122 const.factionGallenteFederation, 123 const.factionCaldariState, 124 const.factionMinmatarRepublic) 125 PARENT_FACTIONIDS_BY_FACTIONID = {const.factionGuristasPirates: (const.factionCaldariState, const.factionGallenteFederation), 126 const.factionSanshasNation: (const.factionAmarrEmpire, const.factionCaldariState), 127 const.factionTheBloodRaiderCovenant: (const.factionAmarrEmpire, const.factionMinmatarRepublic), 128 const.factionAngelCartel: (const.factionGallenteFederation, const.factionMinmatarRepublic), 129 const.factionSerpentis: (const.factionGallenteFederation, const.factionMinmatarRepublic), 130 const.factionSistersOfEVE: (const.factionAmarrEmpire, const.factionGallenteFederation), 131 const.factionMordusLegion: (const.factionCaldariState, const.factionGallenteFederation), 132 const.factionDeathless: (const.factionCaldariState, const.factionMinmatarRepublic)}